Thursday, January 24, 2013

How to modify an LV and VG RHEL and HP UX

Thanks My freinds for your visits and comments. It always feels great to learn, share and gain from and with you.

How to deactivate a Volume group and a Logical volume?

Deactivating a VG is :-

#vgchange -a n vg01

If we want to Remove cluster awareness from a VG is :-

#vgchange -c n vg01

then we should deactivate a VG

#vgchange -a n vg01


Deactivate an LV logical volume, before removing it is advised.

In my case, i have create usr file system on another VG on my oracle virtual BOX.

[root /]#
[root /]# lvremove /dev/mapper/vgdb-usr
Do you really want to remove active logical volume usr? [y/n]: y^C
  Logical volume usr not removed
[root /]#
[root /]#
[root /]# lvchange -a n /dev/mapper/vgdb-usr
[root /]# lvremove /dev/mapper/vgdb-usr
  Logical volume "usr" successfully removed
[root /]#
now you should remove a VGif needed or demand of the situation.

No comments: