How to move the entire system to a new larger drive?

Hi,
I have a problem again and I hope that someone on this forum will help me in solving it. My English is weak, but I'll try to describe it clearly.
I have an old computer ( HP B180) with HP-UX 10.20. I've done the hard disk image using G4L and replaced the drive. Old drive has 4.3 GB and 9.1 GB is new. I do not have access to an area more than 4.3 GB.
How to extend the file system on the entire surface of the disk? Now I have a LVM. How to extended VG00 to 9.1 GB?
Maybe there is a way to easily move the system to a new larger hard drive?

Regards.

Hi there!

Do you want to move the whole volume group to this new hard drive or you just want to extend the existing volume group? As you have LVM setup, it's easy to extend the VG and the LVs on it. Later we can extend the filesystem as well.

From memory G4L is a great tool, but it could be used the wrong way - if you have cloned the disk you 9Gb disk will look like a 4.3 Gb disk to the O/S and you may have to use SAM to rewrite the partition table.

If you just copied an image to somewhere else then you can copy it back and just use vgextend to increase the size of the volume group with lvextend or whatever is required to sort the system out.

Regards

dave

You should have used the make_recovery tool...
The trouble with the volume group is if you let the OS default values set for a group, you will be unable to add disks twice the size for you have max PP per PV fixed at the creation...
I always give 3-4 times the calculated value at creation to not get stuck with that...

Alternative would be to create a vg01 and migrate non system stuff there, on a 10.20 OS configured with 500MB /dev/vg00/lvol2 swap of 500 MB you would need 200MB for /stand , about 1500 for /var you are quite confortable...

Hi all,
Thanks for the reply. I'm sorry I have not written but I had a few days off.
Let me add some details about my drive.
I ask you for help in getting to the blocked part of the disk.
I've never worked with HP-UX - I'm a little green.
I have experience with Linux, but without LVM.
Can you guide me step by step how to modify the configuration of the drive?
May create a copy using the "make_recovery tool" would be easier for me?
Regards.

Well type

 vgdisplay -v vg00 |more 

It will display something like:

--- Volume groups ---
VG Name                     /dev/vg00
VG Write Access             read/write
VG Status                   available
Max LV                      255
Cur LV                      8
Open LV                     8
Max PV                      16
Cur PV                      2
Act PV                      2
Max PE per PV               2000
VGDA                        4
PE Size (Mbytes)            4
Total PE                    2046
Alloc PE                    1914
Free PE                     132
Total PVG                   0

What I show you in bold is the limiting factor, for it is set at creation time... multiply that value by certainly 4... and you get the max size of our PV (disk)...
No other way out except a re-install... If you have a tape device (DAT) connect it to the station and reboot, it should find the device and configure it.. I never tried make_recovery on disc - not saying it does not work but Im not much of a help here... maybe in depth at your man pages, I will try to look on my side

Cant you have both disks installed in your B180?

Hi,
command "vgdisplay-v vg00 | more" gives me: ( screen )
Ehh I do not have the strength to this ...
Regards.

p.s.
I have one drive, but if necessary I will install a second.

You are doomed...
There is no pvextend .. but there is a

  pvchange -x y /dev/dsk/c0t0d0 

Give the correct value of the disk... block device ( no rdsk...)
e.g.

aph:/home/vbe $ vgdisplay -v vg00|grep dsk
   PV Name                     /dev/dsk/c0t5d0
   PV Name                     /dev/dsk/c0t8d0

then use the returned value e.g /dev/dsk/c0t5d0
and see using pvdisplay what it changes...
I promise nothing... because I see no way how to extend PE and this option of pvchange I never had to use... The idea is vg00 has max PE /pv of 2000 meaning that if we can extend we should be able to reach almost 8 GB...
Have you looked at your make_recovery man pages?
Do you have a DAT unit to use?