Operating System - HP-UX
1833513 Members
2851 Online
110061 Solutions
New Discussion

Removing a disk from a logical volume

 
SOLVED
Go to solution
raiden
Regular Advisor

Removing a disk from a logical volume

Guys,

Can anyone of you suggest how to remove a disk from a logical volume. I have just now added the disk to the volume group and extended a logical volume on it. But I have not yet extended the FS, so the disk has no FS.

Now I need to remove the disk. Please suggest what commans should i execute
4 REPLIES 4
Peter Nikitka
Honored Contributor
Solution

Re: Removing a disk from a logical volume

Hi,

have a look at the man page of 'lvreduce'.
It's save to do that, in case you had not done a call to extendfs, yet.
But having a backup would make me more confident ....


mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Sp4admin
Trusted Contributor

Re: Removing a disk from a logical volume

lvreduce the logical volume then you remove the voulme group with vgreduce (vg##) and then pvremove to remove the disk.

sp,
raiden
Regular Advisor

Re: Removing a disk from a logical volume

Thanks,

I did lvreduce on the VG. Actually i was worried if this command could affect the LE's which had a FS. But it worked well.

lvreduce -l 8090 /dev/vgora4/lvol1
raiden
Regular Advisor

Re: Removing a disk from a logical volume

Problem Solved