Operating System - HP-UX
1849155 Members
5436 Online
104041 Solutions
New Discussion

Re: upgrading from 9gb disk to 72gb disk on my workstation

 
Eric Firkey
Regular Advisor

upgrading from 9gb disk to 72gb disk on my workstation

I have hpux 10.2 with patches installed on an 9gb disk . I completely copied the disk to to a 72gb drive with SCSI toolbox and sure enough I can start HPUX on my C3600 workstation. However I only have 9gb available for the volume group and I want to have all 72gb available. Is it possible to extend the available disk from 9gb to 72gb roughly? and how do I do it. I tried to extend the volume group with SAM without success.
15 REPLIES 15
Steven E. Protter
Exalted Contributor

Re: upgrading from 9gb disk to 72gb disk on my workstation

Shalom,

Your volume group was laid out and optimized for a 9 GB drive. It allocated extens on that basis.

The proper migration method would have been to use ignite make_recovery to create a backup tape, and during the restore process intervene manually and set new logical volume sizes.

The problem now is to initialize that new disk space, you need to run pvcreate which will not be good for the data you have on the workstation.

If its possible to start the system with both drives, you may be able to carve up the new disk into partitions with LVM and then use dd to copy your data across.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Eric Firkey
Regular Advisor

Re: upgrading from 9gb disk to 72gb disk on my workstation

I'm not sure what you mean by the "data". On the 9gb disk is HPUX 10.2 with OS patches and support plus patches. There are no installed programs or data yet. I just want to transfer this to a 72gb disk because I do not physically have HPUX 10.2 available by disk or ignite to install it from.
A. Clay Stephenson
Acclaimed Contributor

Re: upgrading from 9gb disk to 72gb disk on my workstation

Not a chance. When the volume group was created, the number of extents was set and cannot be subsequently increased. The new disk is allowed to use no more extents than the old so you have tons of unused and unavailable disk. However, if we change your question around and ask can we add the 72GiB disk to another VG then then answer becomes yes. Use your original 9GiB disk as your vg00 and boot from it. Create a second VG (vg01) using your 72GiB disk. The only filesystems/devices which MUST be on the boot disk are /stand, primary swap, and /. The other filesystems can be moved to vg01 although for workstations I tended to put everything OS related in vg01 and then everything application related in vg01.
If it ain't broke, I can fix that.
Eric Firkey
Regular Advisor

Re: upgrading from 9gb disk to 72gb disk on my workstation

So you are saying that you would need to have both the 9gb and 72gb disk in the workstation, correct?
Steven E. Protter
Exalted Contributor

Re: upgrading from 9gb disk to 72gb disk on my workstation

Shalom,

Yes, if you can boot off the old disk with the new disk in the workstation you may be able to carve up the second disk and use dd to copy the data across.

Otherwise I suggest you borrow a bootable, HP supported tape drive, do a make_recovery, boot off the tape drive, interupt the restore process and make the filesystems bigger. This process builds a new volume group and allocates the extents.

A. Clay states what I tried to say in much clearer language.

When I refer to data, I rever to pvcreate destorying everything on your disk.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
A. Clay Stephenson
Acclaimed Contributor

Re: upgrading from 9gb disk to 72gb disk on my workstation

Unless you want to either do a cold install of the OS or an Ignite. Since you already have the OS installed, I would use the 72GiB disk as a secondary disk and put my CAD/CAM/CFD or whatever data on the big disk.
Your box will actually perform better this way because the i/o is better distributed.
If it ain't broke, I can fix that.
Eric Firkey
Regular Advisor

Re: upgrading from 9gb disk to 72gb disk on my workstation

Is make_recovery available for HPUX 10.2? I just tried to run it and it wasn't found.
A. Clay Stephenson
Acclaimed Contributor

Re: upgrading from 9gb disk to 72gb disk on my workstation

Try make_tape_recovery but if you haven't installed Ignite then ...
If it ain't broke, I can fix that.
Eric Firkey
Regular Advisor

Re: upgrading from 9gb disk to 72gb disk on my workstation

I just installed ignite from one of my application CDs and it is now making a tape backup. Appears to be working so far.
Eric Firkey
Regular Advisor

Re: upgrading from 9gb disk to 72gb disk on my workstation

OK, I'm getting closer. when I boot from the tape drive and I'm trying to set up my defaults for installation I get the following error which I don't know how to resolve:

root volume group error
modify volume group parameters
adjust parameters
reduce max physical extents
or max physical volumes
maybe increase physical extent size

also mentions for very large disks, using multiple volumes, which I assume a 72gb drive is a large disk, but I don't know how to use multiple volumes.

Thanks for any help
Emil Velez
Honored Contributor

Re: upgrading from 9gb disk to 72gb disk on my workstation


go into the volume group parameters and change the PE size to something like 16 MB and change the PE per PV to something like 5000 or whatever it will take to make the numbers work. by default is it 4 MB and 2000 PE/PV which is 8 GB or so.
Salai Balakrishnan
New Member

Re: upgrading from 9gb disk to 72gb disk on my workstation

Hi,

It is possible to make second disk bootable with the help of current boot disk.

after making the vg, lv's and copying the OS files to new disk, u need to export the new vg. Then boot from the newdisk in single user mode, import the disk into vg00 and restart.

The server will boot from the new disk and old boot disk can be removed. Also u can utilise the full disk capacity.

If u want, I can send the complete procedure as attachment.
Eric Firkey
Regular Advisor

Re: upgrading from 9gb disk to 72gb disk on my workstation

I changed the PE size to 8 mb and the PE per PV to 10,000 and this didn't work, but 16 mb and 5,000 did work. Why would one work but not the other if they both come out to 80gb? Thanks.
Eric Firkey
Regular Advisor

Re: upgrading from 9gb disk to 72gb disk on my workstation

OK this works in the C3600 with no problems, however if I put this drive in a B2600 I get the following panic and crash during boot up:

LVM: Activation of root volume group failed
Quorum not present or some physical volumes are missing
Could not configure root VG
LVM: Configuration failure
A. Clay Stephenson
Acclaimed Contributor

Re: upgrading from 9gb disk to 72gb disk on my workstation

Why would you expect a drive from one model to boot another? Something as simple as a different hardware path would clobber you.
If it ain't broke, I can fix that.