Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
(taking this back on-list) On 04/28/2011 05:11 PM, Edwige Odedele wrote: > Thank for response, > > Do you speak French?' if yes it will be easy for me) Barely - what I know wouldn't make things easy for anyone ;-) > > I didn't understand your sentence: " No good: Your DRBD is secondary. > You cannot mount that." > > > > I use cfdisk /dev/sda to create my /dev/sda4 > > > > Root1:~# fdisk -l > > > > Disque /dev/sda: 1887.4 Go, 1887436800000 octets > > 255 têtes, 63 secteurs/piste, 229467 cylindres Unités = cylindres de > 16065 * 512 = 8225280 octets Sector size (logical/physical): 512 bytes / > 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Identifiant > de disque : 0x00000080 > > > > Périphérique Amorce Début Fin Blocs Id Système > > /dev/sda1 1 25 200781 83 Linux > > /dev/sda2 26 3288 26210047+ 83 Linux > > /dev/sda3 3289 3418 1044225 82 Linux swap / Solaris > > /dev/sda4 3419 229467 1815738592+ 83 Linux This is OK. > > > Then I can't create my PV /dev/drbd0 No, you're not nearly finished! > > > root1:~# pvcreate /dev/drbd0 > > Device /dev/drbd0 not found (or ignored by filtering). > > > > > > So my device is : device /dev/drbd0; and my disk is : disk /dev/sda4; > according to my drbd config files > > > > " data " is my drbd ressource name > > > > Has metadata been created on your backing device, by the way? HOW TO KNOW ? If you had, you'd know ;-) "drbdadm attach" should generate an error, as should "drbdadm dump-md", if you haven't, but don't quote me on that. > > > > > You may want to erase sda4 and start your DRBD setup from scratch, using > > the existing config. DO YOU MEAN TO REMOVE DRBD AND INSTALL? No. Follow these steps carefully after your partition is freshly created: http://www.drbd.org/users-guide/s-first-time-up.html You may want to read that whole section, though: http://www.drbd.org/users-guide/ch-configure.html HTH, Felix