1751791 Members
5011 Online
108781 Solutions
New Discussion юеВ

Re: how to umount the vg

 
SOLVED
Go to solution
rajesh73
Super Advisor

how to umount the vg

$strings lvmtab
/dev/vg00
/dev/dsk/c2t1d0
/dev/vg01
/dev/dsk/c5t0d1
/dev/dsk/c7t0d1
/dev/vg02
/dev/dsk/c5t0d2
$ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
==========================================================================
disk 0 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-C
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 73.4GMAU3073NC
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
disk 2 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 73.4GMAU3073NC
/dev/dsk/c2t1d0 /dev/rdsk/c2t1d0
disk 3 0/6/1/0.2.0.0.0.0.1 sdisk CLAIMED DEVICE COMPAQ HSV110 (C)COMPAQ
/dev/dsk/c5t0d1 /dev/rdsk/c5t0d1
disk 5 0/6/1/0.2.0.0.0.0.2 sdisk NO_HW DEVICE COMPAQ HSV110 (C)COMPAQ
/dev/dsk/c5t0d2 /dev/rdsk/c5t0d2
disk 4 0/6/1/0.2.1.0.0.0.1 sdisk CLAIMED DEVICE COMPAQ HSV110 (C)COMPAQ
/dev/dsk/c7t0d1 /dev/rdsk/c7t0d1
disk 6 0/6/1/0.2.1.0.0.0.2 sdisk NO_HW DEVICE COMPAQ HSV110 (C)COMPAQ
/dev/dsk/c7t0d2 /dev/rdsk/c7t0d2
$bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 212992 118128 94192 56% /
/dev/vg00/lvol1 298928 75800 193232 28% /stand
/dev/vg00/lvol8 4718592 2962576 1742344 63% /var
/dev/vg00/lvol7 4718592 1129848 3560792 24% /usr
/dev/vg00/lvol4 1048576 472824 572104 45% /tmp
/dev/vg00/oralv 8388608 2876293 5175180 36% /oracle
/dev/vg00/lvol6 5636096 1866224 3740464 33% /opt
/dev/vg00/lvol5 32768 15968 16720 49% /home
/dev/vg01/lvol3 20971520 3472 20640432 0% /cddump

question:

the above example lvmtab output shows vg02.how to remove the vg02.

vgdisplay command also display vg02.but vg02 currently not used.

kindly help how to umount this drive.

5 REPLIES 5
Patrick Wallek
Honored Contributor
Solution

Re: how to umount the vg

The easiest way:

vgexport /dev/vg02
Patrick Wallek
Honored Contributor

Re: how to umount the vg

I typed a submitted too quickly:

You should probably make sure the VG is not active.

Deactivate VG:

vgchange -a n vg02

Remove VG:

vgexport vg02
nijokj
Trusted Contributor

Re: how to umount the vg

Incase you want to keep the vg's configuration for future use first make a map file using this command.

vgexport -p -s -m /tmp/vg02.map /dev/vg02

after that deactivate vg

vgchange -a n /dev/vg02

and export it

vgexport /dev/vg02
rajesh73
Super Advisor

Re: how to umount the vg

previously this vg02 is used.
i have one doubt this mount directly deleted from storage but i thing server side vgexport not done.

kindly find the below procedure correct or not

1.vgchange -a n /dev/vg02

2.vgexport /dev/vg02

kindly advice this is correct or not.
Ismail Azad
Esteemed Contributor

Re: how to umount the vg

Hi,

Yes this is the right procedure. You say that vg02 is not currently used and hence I would think you don't have a mounted filesystem. In case there is one mounted filesystem on an L.V in that V.G, you will have to fire a umount // and then as you mentioned. In case it is "not in use at all", the steps are right.

Regards
Ismail Azad
Read, read and read... Then read again until you read "between the lines".....