Operating System - HP-UX
1847893 Members
1659 Online
104021 Solutions
New Discussion

Change system disk 2GB for 9GB on 10.20

 
SOLVED
Go to solution
irbaboon
Advisor

Change system disk 2GB for 9GB on 10.20

I have an E35 box with 10.20 instaled.

How to change a system disk (2GB) for another with 9GB.


Thanks.
2 REPLIES 2
Patrick Wallek
Honored Contributor
Solution

Re: Change system disk 2GB for 9GB on 10.20

If you have a tape drive and have disk space, download and install the Ignite/UX "A" version which is for 10.X systems ONLY. You can still get it here:

http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=IGNITEUX

Click on the "receive for free" button, fill out the form and download.

Once it is installed, create a make_tape_recovery tape. They syntax I use is:

# /opt/ignite/bin/make_tape_recovery -a /dev/rmt/0mn -I -v -m tar -x inc_entire=vg00

The /dev/rmt/0mn should be whatever your tape drive is.

I would create a couple of tapes. Once that is done, you can install the 9GB disk, boot from the tape and have it reinstall your system. At that point everything should be back to how your expect.

I have done this several times and never had a problem.
KapilRaj
Honored Contributor

Re: Change system disk 2GB for 9GB on 10.20

Ignite is an option and safe.. If u want to do something diffrent here it is .. If u have LVM.

Old Disk :- /dev/dsk/c0t6d0 2 G
New Disk :- /dev/dsk/c0t5d0 9 G

Tasks to be performes Prior to the Outage :-
============================================

01. Install the new disk
02. Prepare new disk for LVM with BDRA

pvcreate -B /dev/rdsk/c0t5d0

03. Create New root volume group

mkdir /dev/vgboot
mknod /dev/vgboot/group c 64 0x020000
vgcreate /dev/vgboot /dev/dsk/c0t5d0

04. Prepare the disks for booting

mkboot /dev/rdsk/c0t5d0

mkboot -a "hpux " /dev/rdsk/c0t5d0

05. Create the new logical volumes

lvcreate -L -C y -r n /dev/vgboot
lvcreate -L -C y -r n /dev/vgboot
lvcreate -L -C y -r n /dev/vgboot

.... # Continue to create all the Logical volumes in your vg00 (rootvg) and get everything.

Get an Outage :-
=================
1. Boot the system into LVM Maintanance Mode.
2. Create new mount points

mkdir -p /newboot /newroot ...... for all the filesystems in root vg except swap lv.

3. Mount the new filesystems

mount /dev/vgboot/lvol1 /newboot
mount /dev/vgboot/lvol3 /newroot
... # Continue for all the filesystems ...
... #

4. Transfer data from old to new one

cd /;find . -depth -xdev -print |cpio -pxdm /newroot # ROOT
cd /stand;find . -depth -xdev -print |cpio -pxdm /newboot # BOOT
...... # Continue for all the filesystems
...... #

5. Update the Boot definitions on the new disks

lvlnboot -r /dev/vgboot/newroot
lvlnboot -b /dev/vgboot/newboot
lvlnboot -s /dev/vgboot/newswap
lvlnboot -d /dev/vgboot/newswap
lvlnboot -R /dev/vgboot

6. Update filesystem map

cat /newroot/etc/fstab |sed -e "s/vg00/vgboot/g" >/newroot/etc/fstab.new
cp /newroot/etc/fstab /newroot/etc/fstab.old
cp /newroot/etc/fstab.new /newroot/etc/fstab

7. Shutdown the node
8. Disconnect the 2 GB drive
9. From IPL Change the boot path to the new disk
10. Start the System;it will reboot once of its own.

Regds,

Kaps
Nothing is impossible