1838598 Members
3962 Online
110128 Solutions
New Discussion

Re: LVM

 
Gopinath rao_1
Occasional Contributor

LVM

1. I have a volume with max PV at 16 and we have 13 disks in the Volume. we need to add 10 more disks to the same volume . i would like know the procedure to do this.

2. we have deleted a volume from one of our HP-ux 11.01 server and removed the disk array. ioscan displays these disk device as NO Hardware. Can i delete the device entries ?
3 REPLIES 3
John Poff
Honored Contributor

Re: LVM

Hi,

The only way to set the Max PV for a volume group is when it is created. You will have to backup your data, create a new volume group with a larger Max PV value and then restore your data to the new VG.

For the second problem, it sounds like you might need to use 'rmsf' to remove the device files.

JP
Ian Dennison_1
Honored Contributor

Re: LVM

Max PVs is set at Volume Group create time, and cannot be adjusted 'on the fly'. You will need to recreate the Volume Group OR create a new Volume Group with these 10 disks in.

Which disk array did you remove? The XP Family of arrays use NO_HW disks as place holders for the SCSI LUNs, so these should probably not be removed.

Share and Enjoy! Ian
Building a dumber user
Sridhar Bhaskarla
Honored Contributor

Re: LVM

Hi Gopinath,

1. You will need to recreate the volume group. Export/import is not going to work. So, I would suggest you create a new volume group using the 10 disks. Specify -p 255 while creating the volume group so that you won't get into issues later. Create new file systems and then copy data from the old volume group. Also consider using higher values for -s and -l options of vgcreate. Man vgcreate for more details.

2. You will need to reboot the server to get rid of NO_HW in ioscan. But having it will not affect the server.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try