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

Dan Barker dbarker at visioncomm.net
Sat Jun 16 15:10:23 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.


Sounds like your root file system is in LogVol01. Makes working on it nearly
impossible. A good live-CD with LV tools is rescatux
(www.supergrubdisk.org/rescatux). Good luck! I just used it to reorganize
some root LVs on RHEL 5.

Dan


-----Original Message-----
From: drbd-user-bounces at lists.linbit.com
[mailto:drbd-user-bounces at lists.linbit.com] On Behalf Of Pascal BERTON
Sent: Saturday, June 16, 2012 3:32 AM
To: 'Keith Christian'; drbd-user at lists.linbit.com
Subject: Re: [DRBD-user] Shrink an LVM partition and create a new one for
the /drbd mount ?

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

_______________________________________________
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