Operating System - HP-UX
1839548 Members
3326 Online
110147 Solutions
New Discussion

swapping root disk on D class

 
SOLVED
Go to solution
steve_586
Frequent Advisor

swapping root disk on D class

Hi ,

I need to swap out the root disk on a Dclass server for a larger capacity drive. Vg00 only has this one disk. What is the best route to do this? Ignite? dd one disk to the other? Re-install of O.S. ?
Many thanks

4 REPLIES 4
Mark Grant
Honored Contributor
Solution

Re: swapping root disk on D class

This will depend on on the number of physical extents on the new disk and the maximum number of extents that was used when vg00 was created.

If your new disk will exceed the maximum number of extents configured in vg00 then you will be best off using ignite. Otherwise, much of your new disk will be unused. Ignite allows you to change these settings during a build.

If you have mirror/ux installed and the number of physical extents isn't going to be a problem then your best bet would be to mirror one disk onto the other and then make the new one bootable with "lvlnboot"
Never preceed any demonstration with anything more predictive than "watch this"
melvyn burnard
Honored Contributor

Re: swapping root disk on D class

I would say your best and safest method would be to use Ignite.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
KapilRaj
Honored Contributor

Re: swapping root disk on D class

Take a full system backup

1. Boot into LVM maintanance mode
2. vgchage -a y vg00;mount -a
3. pvcreate -B /dev/rdsk/cXtZdX
4. mkboot /dev/rdsk/cXtXdX
5. mkboot -a "hpux" /dev/rdsk/cXtXdX
6. vgcreate /dev/vgboot /dev/dsk/cXtXdX (mkdir;mknod refer to new VG creation)
7. lvcreate -L -C y -r n -n lvol2 /dev/vgboot
...
...
create all the filesystems on the new disk from the old one.. Please make sure that all the logical volume characteristics are the same.
8. newfs them all (Note create all with same type as that of original
9. mount them under /new_root /new_boot etc ...
10. Update boot definitions ....
11. lvlnboot -b /dev/vgboot/lvol1
12. lvlnboot -r /dev/vgboot/lvol3
13. lvlnboot -s /dev/vgboot/lvol2
14. lvlnboot -d /dev/vgboot/lvol2
15. lvlnboot -R
16. Copy the data across "cd ;find . -xdev -depth -print |cpio -pxdm

17. lvlnboot -v ; check both the disks are having boot definitions...
18. cp /new_root/etc/fstab /tmp/fstab;cat /tmp/fstab |sed "s;vg00;vgboot;g" > /new_root/etc/fstab

19. rm /etc/mnttab /new_root/etc/mnttab
20. Shutdown the node ;
21. Take out the old boot disk
22. Change the bot path and boot through the new one !!

You will need to work out and hcange some bits if system configuration is diffrent !. Use ur brain not mine....

Kaps
Nothing is impossible
steve_586
Frequent Advisor

Re: swapping root disk on D class

Thanks for all the helpfull info.
I think i will go for the ignite route as it looks to be the safest and easiest.

Thank you for taking out the time to help :)