LVM and VxVM
cancel
Showing results for 
Search instead for 
Did you mean: 

Re: very urgent-500GB of LUNs!!

 
Super Advisor

very urgent-500GB of LUNs!!

Hi all,
I am having a File system of 3.5TB in which some datas are there.I created the same in such way like it is having 7 * 500GB of LUNs ie created aingle VG of 500GB and then extended 6 times to make it to 3.5TB.Now I want to delete one VG of 500GB from the same.How can I able to achieve the same.OS version is HP-UX11.31.Please help..very urgent
9 REPLIES 9
Occasional Advisor

Re: very urgent-500GB of LUNs!!

Hi ,

you can use vgreduce command to remove addede PVs from the VG.

vgreduce vgname pvname

Thx,
Ravi S
Honored Contributor

Re: very urgent-500GB of LUNs!!

You can only remove a physical disk if there are no used extents on it. Use the vgdisplay to make sure all the extents are free extents on the LUN you want to remove with vgreduce.
Valued Contributor

Re: very urgent-500GB of LUNs!!

Hi,

If you have online jfs first reduce file sytem
reduce lv
Then run lvdisplay -v /dev/vgname/lvname | grep -i diskname (one by one)

Here you can find out which disk is free

Then do vgreduce vgname pvname


Chandra
Frequent Advisor

Re: very urgent-500GB of LUNs!!

Hi,

first check unsued pv

pvdisplay -v

if pv is not used then go ahead with vgreduce

vgreduce pvname
“Education is our passport to the future, for tomorrow belongs to those who prepare for it today.”

Re: very urgent-500GB of LUNs!!

Hello

1- If you have onlinejfs proceed in shrink the lv.

# lvreduce -L /dev//

2 -Check what is the pv without PE in current to get it out of this VG

pvdisplay -v /dev/dsk/cxtxdx | grep current

3- if there are not PEs in current status proceed by reducing the VG otherwise you can move the remaining PE to another PV using pvmove thus you can get a free PV to use for other propose.

# vgreduce /dev/
Trusted Contributor

Re: very urgent-500GB of LUNs!!


#vgdisplay -v vg

check which PV <500GB> have parameter =

remove that PV from the VG.

#vgreduce /dev/dsk/c?t?d?
Sanjeev Singh
Super Advisor

Re: very urgent-500GB of LUNs!!

Hi,
Thanx..
I have two LVs in this particular VG.And I want to reduce one of the LV size which is 3.5TB to 3TB.And after that I have to reduce the VG and delete the PV.

I dont have data in this LV.But the other LV is having data.If I reduce the VG,is this will affect my Data VG??
Super Advisor

Re: very urgent-500GB of LUNs!!

It is still possible the other LV is using space on each of the PVs, depends on how it was created and extended over time. Do the vgdisplay -v as suggested to see if the = for a disk in order to be able to delete it from the VG. If all are in use, you may be able to PVMOVE the used space to another PV and free it that way. This only works if you have mirror disk/ux and the LV is not stripped. You can also try to defrag the disk using:

List directory and filesystem fragmentation
fsadm -F vxfs -D -E /
ex fsadm -D -E /home

Defragment directory and filesystem, display summary information for each pass
fsadm -F vxfs -d -e -s /
ex fsadm -d -e -s /home
Super Advisor

Re: very urgent-500GB of LUNs!!

Thanx...Solved..