[DRBD-user] Shrink an LVM partition and create a new one for the /drbd mount ?
keith1christian at gmail.com
Sat Jun 16 00:12:34 CEST 2012
I have a pre-configured server using LVM, with one large logical
volume using all disk space beyond the /boot partition, and a separate
/drbd partition is needed.
Normally, I remove LVM and create a /drbd partition after formatting
the RAID array.
That isn't an easy option here, as the machine is pre-configured with
the OS, etc.
Am I correct that the analog to a physical /drbd partition under LVM
is the creation of a logical volume in a volume group?
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol01
VG Name VolGroup00
The lvcreate command failed, not enough free extents:
$ lvcreate -v --size 1g --name LogVol02 VolGroup00
Setting logging type to disk
Finding volume group "VolGroup00"
Insufficient free extents (0) in volume group VolGroup00: 32 required
I'll have to shrink LogVol01 to make room for a LogVol02 on which
/drbd will be mounted.
Does this sound like the correct way of creating a partition for /drbd
in this situation?
More information about the drbd-user