Hi, you would need to create an empty partition on both nodes, and you need to create the filesystem on the drbd device. In your drbd.conf resource configuration you need to put
device /dev/drbd0 for example. After both nodes are connected you need to make mkfs.ext3 /dev/drbd0 Read the following http://www.drbd.org/docs/install/ On 04.05.2010 20:22, Bernie Wu wrote: > Hi List, > We are currently using DRBD Version: 0.7.22 with SLES10-SP2. > We have a database file "/dbms01" that we want to mirror. > > /etc/fstab shows : > /dev/vgora_dbms/lvdbms01 /dbms01 ext3 acl,user_xattr > 1 2 > > "df -h' shows : > /dev/mapper/vgora_dbms-lvdbms01 > 23G 3.1G 18G 15% /dbms01 > > This file is part of a volume group. "vgdisplay -v vgora_dbms" shows: > # vgdisplay -v vgora_dbms > Using volume group(s) on command line > Finding volume group "vgora_dbms" > --- Volume group --- > VG Name vgora_dbms > System ID > Format lvm2 > Metadata Areas 1 > Metadata Sequence No 2 > VG Access read/write > VG Status resizable > MAX LV 0 > Cur LV 1 > Open LV 1 > Max PV 0 > Cur PV 1 > Act PV 1 > VG Size 22.49 GB > PE Size 4.00 MB > Total PE 5758 > Alloc PE / Size 5735 / 22.40 GB > Free PE / Size 23 / 92.00 MB > VG UUID HvIuvP-TED0-TbRe-Tf4Y-EJEp-pwgR-5pYCrc > > --- Logical volume --- > LV Name /dev/vgora_dbms/lvdbms01 > VG Name vgora_dbms > LV UUID NZnEkz-QGPE-PQNE-up2q-vvOX-HW3o-77sTD4 > LV Write Access read/write > LV Status available > # open 1 > LV Size 22.40 GB > Current LE 5735 > Segments 1 > Allocation inherit > Read ahead sectors 0 > Block device 253:0 > > --- Physical volumes --- > PV Name /dev/dasde1 > PV UUID ANv89l-9wQT-DHak-OMn2-7jpk-x2O1-y4fpyY > PV Status allocatable > Total PE / Free PE 5758 / 23 > > I get this error when I try to start drbd with "# drbdadm up all " : > ioctl(,GET_VERSION,) failed: Inappropriate ioctl for device > Command 'drbdsetup /dev/mapper/vgora_dbms-lvdbms01 disk > /dev/vgora_dbms/lvdbms01 internal -1 --on-io-error=detach' terminated with > exit code 20 > > Part of my drdb.conf looks like this : > resource drbd0 { > . > on host1 { > device /dev/mapper/vgora_dbms-lvdbms01; > disk /dev/vgora_dbms/lvdbms01; > > What am I doing wrong ? > Any help would be much appreciated. > TIA > Bernie Wu > > > ________________________________ > The information contained in this e-mail message is intended only for the > personal and confidential use of the recipient(s) named above. This message > may be an attorney-client communication and/or work product and as such is > privileged and confidential. If the reader of this message is not the > intended recipient or an agent responsible for delivering it to the intended > recipient, you are hereby notified that you have received this document in > error and that any review, dissemination, distribution, or copying of this > message is strictly prohibited. If you have received this communication in > error, please notify us immediately by e-mail, and delete the original > message. > _______________________________________________ > Linux-HA mailing list > [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems > _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
