[DRBD-user] Setting up >16TB drive with 8.3.11

Christiaan den Besten chris at prolocation.net
Tue Aug 16 22:22:28 CEST 2011

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Hi !

Since I have to build a NAS with this size anyway I can demo it
should/could work while the hardware is not yet in production anyway :

Using 'CentOS 6.0' on x86_64 box ....

[ on nas1 & nas2 ]

yum install drbd83-utils.x86_64 kmod-drbd83.x86_64
pvcreate /dev/sdb
( 19TB )
pvcreate /dev/sdc
( 20TB )
vgcreate VGDATA /dev/sdb /dev/sdc
lvcreate -n drbddata1 -L+30TB VGDATA

( meta size : (31457280 / 32768)+1 = +/- 1GB .. lets give it 2 )
lvcreate -n drbdmeta1 -L+2GB VGDATA

[root at nas1 ~]# cat /etc/drbd.d/drbdresource1.res
resource drbdresource1 {

  protocol C;

  on nas1.omgevingsloket.nl {
    device /dev/drbd1 minor 1;
    disk /dev/VGDATA/drbddata1;
    address 10.52.61.32:7790;
    flexible-meta-disk /dev/VGDATA/drbdmeta1;
  }

  on nas2.omgevingsloket.nl {
    device /dev/drbd1 minor 1;
    disk /dev/VGDATA/drbddata1;
    address 10.52.61.33:7790;
    flexible-meta-disk /dev/VGDATA/drbdmeta1;
  }

}

[root at nas2 ~]# cat /etc/drbd.d/drbdresource1.res
resource drbdresource1 {

  protocol C;

  on nas1.omgevingsloket.nl {
    device /dev/drbd1 minor 1;
    disk /dev/VGDATA/drbddata1;
    address 10.52.61.32:7790;
    flexible-meta-disk /dev/VGDATA/drbdmeta1;
  }

  on nas2.omgevingsloket.nl {
    device /dev/drbd1 minor 1;
    disk /dev/VGDATA/drbddata1;
    address 10.52.61.33:7790;
    flexible-meta-disk /dev/VGDATA/drbdmeta1;
  }

}

drbdadm create-md drbdresource1
drbdadm up

cat /proc/drbd; sleep 10; cat /proc/drbd

( wait for it to be in Connected : Inconsistent/Inconsistent state ) ...
fix iptables to allow connection on tcp/7790 between hosts ... :)

[ on nas1 ]

drbdadm -- --clear-bitmap new-current-uuid drbdresource1
drbdadm primary drbdresource1

yum install xfsprogs.x86_64
mkfs.xfs /dev/drbd1
mkdir /mnt/example
mount /dev/drbd1 /mnt/example/

.... done ....

[root at nas1 ~]# df -H | grep drbd
/dev/drbd1              33T    35M    33T   1% /mnt/example

[root at nas1 ~]# cat /proc/drbd  | grep version
version: 8.3.11 (api:88/proto:86-96)

So yes, should be doable with 8.3.11 ....

bye,
Chris


On 16-Aug-11 16:19, Jeremy Wilson wrote:
> 
> On 2011-08-16, at 10:17 AM, Lars Ellenberg wrote:
> 
>> You need to use either internal or flexible-external meta data.
>> And you need to run a 64bit linux.
> 
> I did use both of those, no dice.
> 
> _______________________________________________
> drbd-user mailing list
> drbd-user at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-user



More information about the drbd-user mailing list