[DRBD-user] Shrink an LVM partition and create a new one for the /drbd mount ?

Pascal BERTON pascal.berton3 at free.fr
Sat Jun 16 09:32:21 CEST 2012

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


Hi Keith!

It does. Don't forget to shrink your filesystem(s) first. You'll find a
whole lot of howtos on the net to achieve that depending on the filesystem
you actually use.

Pascal.

-----Message d'origine-----
De : drbd-user-bounces at lists.linbit.com
[mailto:drbd-user-bounces at lists.linbit.com] De la part de Keith Christian
Envoyé : samedi 16 juin 2012 00:13
À : drbd-user at lists.linbit.com
Objet : [DRBD-user] Shrink an LVM partition and create a new one for the
/drbd mount ?

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?



$ lvdisplay
  --- 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?


Thanks!


====Keith
_______________________________________________
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