1837650 Members
2742 Online
110117 Solutions
New Discussion

Removing LV with mirror

 
SOLVED
Go to solution
Larry Scheetz
Advisor

Removing LV with mirror

I have two 18G drives mirrored (usable 9g). I want to remove lvol9 and lvol10 for there no longer needed. Is this as easy as using lvremove or is there other steps in this process since it is mirrored? Do I need to change anything else to make changes complete. Thank you for your time.
A Happy heart makes the face cheerful
4 REPLIES 4
A. Clay Stephenson
Acclaimed Contributor

Re: Removing LV with mirror

If you like, you can do an lvreduce to remove the mirror then do an lvremove.
If it ain't broke, I can fix that.
Patrick Wallek
Honored Contributor
Solution

Re: Removing LV with mirror

After you do the lvreduce and lvremove, be sure to take the entries out of your /etc/fstab so the system doesn't try to mount those directories next time you reboot.
S.K. Chan
Honored Contributor

Re: Removing LV with mirror

Just make sure the lvol9 and lvol10 are not NFS mounted before you do .. (assuming vg02)

# lvremove /dev/vg02/lvol9
# lvremove /dev/vg02/lvol10

Command will prompt for confirmation.

Craig Rants
Honored Contributor

Re: Removing LV with mirror

This should work for you.

How to unmirror a logical volume
Note: the following example is using the volume group vg01 and the logical volume lvhome

lvreduce -m 0 /dev/vg01/lvhome

How to remove a Logical Volume
Note: the following example is using the
Umount the filesystem
umount /home
remove the Logical volume
lvremove /dev/vg01/lvhome

GL,
C

"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut