Operating System - Linux
1828667 Members
1890 Online
109984 Solutions
New Discussion

Re: How to remove physical volume

 
M.sureshkumar
Regular Advisor

How to remove physical volume

Hi,

Actually, two physical volume(i.e two 8 gb hard disk) in one volume group,how to remove one physical volume(i.e one 8 gb hard disk)from this volume group without SAM.Any command is availble for this problem.
3 REPLIES 3
Mark Grant
Honored Contributor

Re: How to remove physical volume

You would be better off in the hpux forum but anyway.

Firstly you need to make sure you have no filesystems or logical volumes on it.

"lvremove /dev/vgXX/lvolX" will do this.

Then all you need to do is "vgreduce vgXX /dev/dsk/XXXXXX"

If you are in a service guard cluster, you will need to vgexport the volume group and re-import it on the other nodes in the cluster.
Never preceed any demonstration with anything more predictive than "watch this"
Shaikh Imran
Honored Contributor

Re: How to remove physical volume

Hi,
Make sure that there is nothing on the Disk
then give
#vgreduce /dev/VG01 /dev/dsk/cXtXdX
where /dev/dsk/cXtXdX is the disk device file which you want to remove.

I'll sleep when i am dead.
Mobeen_1
Esteemed Contributor

Re: How to remove physical volume

Suresh,
I agree with Mark, he has the right sequence in there for you.

First remove the logical volume and then reduce the volume group, that should be it.

rgds
Mobeen