[DRBD-user] drbd on lvm - resize pv (lvextend drbd)

ap bitte at antworte.me
Mon Oct 25 16:17:01 CEST 2010

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


 Hello list,

 according to <http://www.drbd.org/users-guide/s-nested-lvm.html> I 
 created a nested drbd/lvm resource.
 But - how can the drbd device extended?

 I have: (1: is 100GB)

 # cat /proc/drbd
 version: 8.3.7 (api:88/proto:86-91)
 GIT-hash: ea9e28dbff98e331a62bcbcc63a6135808fe2917 build by 
 phil at fat-tyre, 2010-01-13 17:17:27
  0: cs:WFConnection ro:Primary/Unknown ds:UpToDate/DUnknown C r----
     ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b 
 oos:511948
  1: cs:WFConnection ro:Primary/Unknown ds:UpToDate/DUnknown C r----
     ns:0 nr:0 dw:0 dr:0 al:0 bm:1 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b 
 oos:104854364

 # pvscan -vv

     Wiping cache of LVM-capable devices
     Wiping internal VG cache
     Walking through all physical volumes
   PV /dev/drbd1   VG replicated   lvm2 [100,00 GB / 56,05 GB free]
   PV /dev/md1     VG localvg      lvm2 [1,81 TB / 1,71 TB free]

 And i tried to extend drbd1 with normal LVM commands:

 # lvextend -L+20G /dev/mapper/localvg-r1
   Extending logical volume r1 to 120,00 GB
   Logical volume r1 successfully resized

 # cat /proc/drbd
 version: 8.3.7 (api:88/proto:86-91)
 GIT-hash: ea9e28dbff98e331a62bcbcc63a6135808fe2917 build by 
 phil at fat-tyre, 2010-01-13 17:17:27
  0: cs:WFConnection ro:Primary/Unknown ds:UpToDate/DUnknown C r----
     ns:0 nr:0 dw:0 dr:140 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b 
 oos:511948
  1: cs:WFConnection ro:Primary/Unknown ds:UpToDate/DUnknown C r----
     ns:0 nr:0 dw:0 dr:400 al:0 bm:1 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b 
 oos:104854364

 As you can see - nothing happened, drbd1 is still 100GB. pvscan says 
 the same.

 # pvscan -vv
     Wiping cache of LVM-capable devices
     Wiping internal VG cache
     Walking through all physical volumes
   PV /dev/drbd1   VG replicated   lvm2 [100,00 GB / 56,05 GB free]
   PV /dev/md1     VG localvg      lvm2 [1,81 TB / 1,69 TB free]
   Total: 2 [1,91 TB] / in use: 2 [1,91 TB] / in no VG: 0 [0   ]

 Any help is appreciated.

 ap.





More information about the drbd-user mailing list