1836441 Members
3708 Online
110100 Solutions
New Discussion

Re: Unmount Volume Group

 

Unmount Volume Group

Hello everybody,
the LUN under a Volume Group was removed by using LUN Management in Launcher. The LUNs are in a VA7410.

I forgot to unmount the vg before removing its LUN. How can I get out the vg when I issue "bdf" ?
Christian Aguilar
10 REPLIES 10
Robert-Jan Goossens
Honored Contributor

Re: Unmount Volume Group

Hi Cristian,

removing /dev/vgbackup from your system?

# umount /dev/vgbackup/lvol1
probably you should force the umount with the -f option
# vgchange -a n /dev/vgbackup
# vgexport /dev/vgbackup

Regards,
Robert-Jan

Re: Unmount Volume Group

Hi,
i got these messages:
rc01dbs:/ (120) root% umount /dev/vgbackup/lvol1
umount: cannot find /dev/vgbackup/lvol1 in /etc/mnttab
cannot unmount /dev/vgbackup/lvol1
rc01dbs:/ (121) root% vgchange -a n /dev/vgbackup
vgchange: Couldn't deactivate volume group "/dev/vgbackup":
Device busy

any advice?
Christian Aguilar
Robert-Jan Goossens
Honored Contributor

Re: Unmount Volume Group

# umount -f /d/backup

Regards,
Robert-Jan
Robert-Jan Goossens
Honored Contributor

Re: Unmount Volume Group

Don't forget to remove this filesystem from the /etc/fstab.

Re: Unmount Volume Group

rc01dbs:/ (122) root% umount -f /d/backup
umount: illegal option -- f
usage: umount [-V] [-v] { special | directory }
umount [-F FStype] [-v] [-h host] -a
rc01dbs:/ (123) root%
Christian Aguilar

Re: Unmount Volume Group

rc01dbs:/var/opt/install/data (127) root% more /etc/fstab
# System /etc/fstab file. Static information about the file systems
# See fstab(4) and sam(1M) for further details on configuring devices.
/dev/vg00/lvol3 / vxfs delaylog 0 1
/dev/vg00/lvol1 /stand hfs defaults 0 1
/dev/vg00/lvol4 /opt vxfs delaylog 0 2
/dev/vg00/lvol5 /tmp vxfs delaylog 0 2
/dev/vg00/lvol6 /var vxfs delaylog 0 2
/dev/vg00/lvol7 /usr vxfs delaylog 0 2
/dev/vg00/lvnmsopt /d/nmsopt vxfs delaylog 0 2
/dev/vg00/lvldap /var/opt/netscape vxfs delaylog 0 2
rc01dbs:/var/opt/install/data (128) root%


I unmounted the FS already, but i still see the vgbackup in the /etc/lvmtab. How can i take it out from this file?
Christian Aguilar
Hasan  Atasoy
Honored Contributor

Re: Unmount Volume Group

hi ;
you can delete related parts from lvmtab by
vgexport vgbackup


Hasan.

Re: Unmount Volume Group

Hello,
i tried this and i got this messages:

rc01dbs:/ (176) root% vgexport vgbackup
vgexport: Volume group "vgbackup" is still active.
vgexport: Couldn't export volume group "vgbackup".
Christian Aguilar
Jannik
Honored Contributor

Re: Unmount Volume Group

this might work but I have never tried it myself!

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=668176

It is a quick and dirty :-)
jaton
Hasan  Atasoy
Honored Contributor

Re: Unmount Volume Group

hi
vgchange -a n vgbackup
vgexport vgbackup


Hasan.