Operating System - HP-UX
1826417 Members
3866 Online
109692 Solutions
New Discussion

Re: Wasted space on Boot Phisical Volume

 
SOLVED
Go to solution
Alessandro Pilati
Esteemed Contributor

Wasted space on Boot Phisical Volume

Hi,
I would be happy to know if is possible ( and how ) to use wasted space in a 73 Gbytes SCSI disk that I copied from a Boot SCSI Disk of 36Gbytes.
Now I boot correctly from the 73G disk, but there are other 36Gb that I'm not using...

Here it is the situation:

#ioscan -kfneC disk

disk 1 0/1/1/1.2.0 sdisk CLAIMED DEVICE HP 73.4GST373453LC
/dev/dsk/c3t2d0 /dev/dsk/c3t2d0s2 /dev/rdsk/c3t2d0 /dev/rdsk/c3t2d0s2
/dev/dsk/c3t2d0s1 /dev/dsk/c3t2d0s3 /dev/rdsk/c3t2d0s1 /dev/rdsk/c3t2d0s3
Acpi(HWP0002,100)/Pci(1|1)/Scsi(Pun2,Lun0)/HD(Part1,Sig2A08A9AC-FE07-11D9-8002-D6217B60E588)/\EFI\HPUX\HPUX.EFI

# vgdisplay
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 9
Open LV 9
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4238
VGDA 2
PE Size (Mbytes) 8
Total PE 4228
Alloc PE 2764
Free PE 1464
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0


So, PE Size (8Mb) * Total PE (4228) = 33824 Mbytes

But...
# diskinfo -b /dev/rdsk/c3t2d0
71687369

Thank you in advance,
Alex
if you don't try, you'll never know if you are able to
8 REPLIES 8
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Wasted space on Boot Phisical Volume

You will have to create a make_tape_recovery tape (or make_net_recovery) and Ignite from it. The max PE's value is set when the VG is created and can't be increased later.
If it ain't broke, I can fix that.
Simon Hargrave
Honored Contributor

Re: Wasted space on Boot Phisical Volume

You cannot change the Max PE or PE size of a volume group once it has been created. You will have to backup and re-create your volume group from scratch. Since this is vg00 you will need to make an Ignite backup to tape.
Florian Heigl (new acc)
Honored Contributor

Re: Wasted space on Boot Phisical Volume

1. the vg needs to be regenerated
2. if You do that by simply making an ignite image and recovering it, everything works automatically and will be fine.
3. the only other usage probably is about as supported as running hp-ux 11.11 on a visualize graphics board's pa-risc CPUs.:
the disktab still works, You could use the non allocated part of /dev/dsk/c3t2d0 as a swapspace or even format it. with some experience from 9.X times, it might not even be completely suicidal and might actually work. but please just don't do it and invest the 3 hrs to go the ignite way. :>>
yesterday I stood at the edge. Today I'm one step ahead.
Alessandro Pilati
Esteemed Contributor

Re: Wasted space on Boot Phisical Volume

Clay,
isn't possible to use a management external to LVM ? For example use /dev/dsk/c3t2d0s3 or s4 or s5, to manage that space externally to the LVM so avoiding restore an Ignite boot image creating the VG with different PE Size?
Or the whole disk is LVM assigned? ( wasted space included ) ?
if you don't try, you'll never know if you are able to
DCE
Honored Contributor

Re: Wasted space on Boot Phisical Volume

The max PE per PV is fixed at vg creation, and cannot be modified. The only way to increase it is to destroy the volume group and reccreate it - the easiest method is use ignite, as others have recommended.

It is always a good idea when initially creating a volume to allow for new (larger) disks to be added ata later date. Therefore you want to change either PE or max PE per PV (or a combination of both) at vg creation time to allow for future, larger, disks
Simon Hargrave
Honored Contributor

Re: Wasted space on Boot Phisical Volume

Your disk isn't sliced/partitioned so you cannot manage part of it outside LVM.
Alessandro Pilati
Esteemed Contributor

Re: Wasted space on Boot Phisical Volume

Thank you for the assistance.
Alessandro
if you don't try, you'll never know if you are able to
Mahesh Kumar Malik
Honored Contributor

Re: Wasted space on Boot Phisical Volume

Hi Alex

VG settings have limitation on PE size and max PE. Technically VG of max 36Gb can be created. So balance space in disk can not be used. You will have to use ignite recovery tape to recreate VG00 with PE size of say 16Mb in order to use full capacity of disk

Regards
Mahesh