1752402 Members
5976 Online
108788 Solutions
New Discussion юеВ

Re: Resize PE Size

 
Raul Andrade_1
Frequent Advisor

Resize PE Size

Hi, Im have a next
vg01, PE 4, Max Pe per Pv 4350, but i have 2 disks of 18 and 2 disks of 36, my problem is the disks of 36Gb only used 18Gb
Attach archive with the configuration of vgs
11 REPLIES 11
Patrick Wallek
Honored Contributor

Re: Resize PE Size

It appears that you added the 36GB disks to the VG after it was originally created with 18GB disks? It also appears that you let the vgcreate command compute the VG parameters.

You have a 4MB PE size and a maximum of 4350 PE per PV, for a maximum disk size of 17,400 MB.

So, now you are stuck. There really is no way, other than to recreate the VG, to increase the MAX PE PER PV parameter.

This is why it is almost always best to manually specify the VG parameters in the vgcreate command.
Robert-Jan Goossens
Honored Contributor

Re: Resize PE Size

Hi Raul,

This can not be done online, create a backup on disk/tape, vgexport vg01 and recreate the volume group with a larger PE size. After these actions restore your data from backup.

Best regards,
Robert-Jan
Raul Andrade_1
Frequent Advisor

Re: Resize PE Size

Please help me with a procedure for this one
thanks
Tim D Fulford
Honored Contributor

Re: Resize PE Size


1 - note the size & type of all you LV's use attched script if you want.
2 - backup all data in vg.
3 - destroy vg
- umount all FS
# umount /dev/vg01/
- vgexport vg01
# vgexport vg01
- pvcreate phusical volumes
# pvcreate -f /dev/rdsk/cXtYdZ
4 - Create new vg01
# mkdir /dev/vg01
# mknod /dev/vg01/group c 64 0x010000
5 - Create new VG with "betetr parameters
# vgcreate -e 20000 -p 24 -s 8 vg01 /dev/dsk/cXtYdZ /dev/dsk/cXtyDZ
6 - Create all the logical volumes (above script will do most of the work, but you will need to edit mklv.vg01 to include things like mirroring.
7 - newfs all file systems
8 - mount filesystems
# mount /dev/vg01/
9 - restiore data

Tim
-
Robert-Jan Goossens
Honored Contributor

Re: Resize PE Size

Are those two 36 GB disks empty ??



Mel Burslan
Honored Contributor

Re: Resize PE Size

Step 1
using your tool of choice, backup the contents of all logical volumes under vg01.

Step 2
unmount all logical volumes

Step 3
vgchange -a n vg01

Step 4
vgexport -v vg01

Step 5
mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x010000
vgcreate -s 8 vg01 /dev/dsk/cXtXdX # use a 36 GB device file here
vgextend vg01 /dev/dsk/cYtYdY # repeat this for all the volumes you want in this volume group

Step 6 and further
re-create your logical volumes.
mount filesystems.
restore from your backups.


________________________________
UNIX because I majored in cryptology...
Raul Andrade_1
Frequent Advisor

Re: Resize PE Size

yes i have a data in a all disks
Raul Andrade_1
Frequent Advisor

Re: Resize PE Size

I have a question. Are ther forms to import vg01 with lvols but PE changed??
Robert-Jan Goossens
Honored Contributor

Re: Resize PE Size

No there is no way you can import the data to a new volume group. The steps provided above should help you recover from this situation.

Best regards,
Robert-Jan