Labels

hpunix (63) marathi kavita (52) linux (21) solaris11 (11) AWS (5) numerology (5)

Friday, October 10, 2014

Steps to remove/destroy VG + HPUX

Steps to remove/destroy VG:

1. Do vgdisplay -v and not down lvs present in that VG.

   #vgdisplay -v vg16 |grep -i "LV Name"


2. Unmount all mount points present in that VG by using #umount

3. remove all lvs belongs to that VG by using #lvremove

4. deactivate that VG #vgchange -a n vg16

5. Remove that VG #vgremove vg16


or we can directly run vgremove command after unmounting FS.


We may get below error while unmounting filesystems:

[root@testing ~]# umount /u01/app
umount: /u01/app: device is busy
umount: /u01/app: device is busy

solution: check the mount points is in used or not

#fuser -cu /u01/app  ***** -c = to display the use of mount-points

#fuser -ku /u01/app  **** -k = to display the use of mount-points


While running vgremove command we may get below error:

[root@testing ~]# vgremove -f vg16
  Can't remove open logical volume "swap02"


[root@testing ~]# cat /proc/swaps
Filename                                Type            Size    Used    Priority
/dev/mapper/vg00-swap01               partition       3071992 12      -1
/dev/mapper/vg16-swap02               partition       26214392        0       -2

[root@testing ~]# swapoff /dev/mapper/vg16-swap02


Thanks...
Kiran Jadhav


**Let's Share our knowledge and keep visiting here**

No comments:

Post a Comment