1833838 Members
2797 Online
110063 Solutions
New Discussion

Remove LVOL

 
SOLVED
Go to solution
Daniel Duarte
Frequent Advisor

Remove LVOL

Hi...
I removed a lvol with commands
" umount /dev/vg01/lvol6 "
" lvremove -f /dev/vg01/lvol6 "
When I went to remove from file fstab, there were no entries.
I'am using a cluster, so I think that the LVOL has been mounted by cluster.
How can I remove LVOL from Cluster ?
Do I need remake VGMAP ?
If need, how can remake vgmap ?

Thanks

Daniel Duarte
7 REPLIES 7
Pete Randall
Outstanding Contributor

Re: Remove LVOL

Do you mean lvmtab?

mv /etc/lvmtab /etc/lvmtab.old
vgscan -a


Pete

Pete
Geoff Wild
Honored Contributor
Solution

Re: Remove LVOL

You need to find which package is mounting that lvol - then remove from the cntl file.

If /dev/vg01/lvol6 is indeed in cluster - then so is vg01.

Do NOT use vg01 for standard vg - until it is out of cluster.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Sundar_7
Honored Contributor

Re: Remove LVOL

You dont need to remake VGMAP.

To remove the logical volume from the package control script

# cd /etc/cmcluster
# find . -name "*.cntl" -exec grep -l "/dev/vg01/lvol6" {} \;

Edit the file that is returned as the output from the above command.

You might see something like this

LV[6]=/dev/vg01/lvol6; FS[0]=/pkg1a; FS_MOUNT_OPT[0]="-o rw"

Comment out that entry.
Learn What to do ,How to do and more importantly When to do ?
Daniel Duarte
Frequent Advisor

Re: Remove LVOL

In the package IDEN has the file /etc/cmcluster/iden/iden.fstab.
Do I have just to remove from this file ?

Do I have to remove from the server Standby too ?

When the server reboot, the cluster search this lvol in the file iden.fstab ?

** I have others Lvols in the VG01 **

Daniel Duarte
Prashant Zanwar_4
Respected Contributor

Re: Remove LVOL

Your entry can be in the in package control file of cluster.

usually path for this is /etc/cmcluster//.cntl

You have to update here.

That shall take care of package startup and thus the mount/umount of FS..etc.

Hope this helps
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
Geoff Wild
Honored Contributor

Re: Remove LVOL

Yes - remove from all nodes in the cluster.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Sundar_7
Honored Contributor

Re: Remove LVOL

Daniel,

Looks like your control script has been configured to source this *.fstab file for the logicial volume/mountpoints.

Remove the entry from all the nodes.

You dont have to reboot the system. Whenever the package is started, this file is referred and the logical volumes are mounted.

- Sundar
Learn What to do ,How to do and more importantly When to do ?