Operating System - HP-UX
1850102 Members
2749 Online
104050 Solutions
New Discussion

Upgrade HP-UX 11.0 to 11i - DISK SPACE REQUIRED

 
SOLVED
Go to solution
jerry1
Super Advisor

Upgrade HP-UX 11.0 to 11i - DISK SPACE REQUIRED

I have been looking through the docs
on upgrading from 11.0 to 11.11 v1.

How can I extend the / /usr /opt partitions without unmounting them. Since they cannot be
unmounted while in use??

8 REPLIES 8
Pete Randall
Outstanding Contributor
Solution

Re: Upgrade HP-UX 11.0 to 11i - DISK SPACE REQUIRED

Jerry,

The only way is to re-boot in single-user mode.

As an alternative, consider cold installing 11i rather than upgrading. It's generally the preference of the Forums membership because it's much more reliable, gives you the chance to re-size root LVs, clean out your patch database, and so on, and so on.


Pete

Pete
Robert Bennett_3
Respected Contributor

Re: Upgrade HP-UX 11.0 to 11i - DISK SPACE REQUIRED

Installing 11i cold is a much cleaner way than going through the upgrade. I have never gone through the upgrade process personally - I have always done it through a cold install - but there are numerous "failure" stories documented in the ITRC attributed to the upgrade process.


Just a note of caution.
"All there is to thinking is seeing something noticeable which makes you see something you weren't noticing which makes you see something that isn't even visible." - Norman Maclean
Leif Halvarsson_2
Honored Contributor

Re: Upgrade HP-UX 11.0 to 11i - DISK SPACE REQUIRED

Hi,
Do you really need to extend the root volume (/). HP-UX 11.11 v1 does not use very much space on /. A fresh installed server, only about 9-10MB.

/usr /opt on the other hand may need to be increased space but, can be extended with OnlineJFS.

I have never upgraded to 11.11 myslf (as most administrators I prefer a fresh install) but I don't belive it is possible to upgrade without rebooting and, not possible to upgrade without shutting down applications.
jerry1
Super Advisor

Re: Upgrade HP-UX 11.0 to 11i - DISK SPACE REQUIRED

The partition on vg00 are very small and the requirements from a recent document post has large requirements for up-grading. I think I am going to do a clean install. That has aways been my way but others are afraid of breaking something or not being able to recovery something they were not aware of.

Does anyone have the quick and dirty check
list of what to save from boot vg00 for new installs.
I have outputs for boot disk address and mirrors.
Will have vgexport of other volume groups
to import.
Of course have hostname, IP, mask, copies of sendmail.cf, crons.



Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 102400 91079 10753 89% /
/dev/vg00/lvol1 99669 58367 31335 65% /stand
/dev/vg00/lvol7 1024000 771350 237859 76% /var
/dev/vg00/lvol6 1024000 816251 194777 81% /usr
/dev/vg00/lvol5 1024000 3003 958775 0% /tmp
Senthil Kumar .A_1
Honored Contributor

Re: Upgrade HP-UX 11.0 to 11i - DISK SPACE REQUIRED

What about Users list from /etc/passwd, if not the system users..

Do take vgdisplay -v and lvdisplay -v of all the LV's, could be useful..if you do not have back file created through vgcfgrestore...in case we need to restore the LVM setup..

TAR backup on tape of the entire VG00 would always be handy... you could always mount the tape and restore the required file.. Make sure you take it as relative path..

Ex:
cd /
tar -cvf /dev/rmt/0m ./

Regards.
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Andrew Rutter
Honored Contributor

Re: Upgrade HP-UX 11.0 to 11i - DISK SPACE REQUIRED

hi

you will need to go into single user mode to extend them, unless you have online jfs installed.

look at this manual before you upgrade

http://www.docs.hp.com/en/5187-3614/5187-3614.pdf

and look at chapter 3 for minimum partition sizes for install or upgrade.

If you do the upgrade you will still need to reboot the system a few times as well as a cold install will need after restoring all your apps. Do a complete backup first though before you start.

andy
Pete Randall
Outstanding Contributor

Re: Upgrade HP-UX 11.0 to 11i - DISK SPACE REQUIRED

Jerry,

I'm attaching a little script I use to copy all the "system" files when setting up a new server. Some of these are very specific to us, but it should serve as a good starting point for your checklist.


Pete

Pete
Basheer_2
Trusted Contributor

Re: Upgrade HP-UX 11.0 to 11i - DISK SPACE REQUIRED

Jerry,
I prepared complete steps to extend /var /usr /opt. I will be doing this, this saturday. If you want to know how it went let me know I will share.
These are the complete steps

Extending a filesystem with Base JFS or HFS: extend /var /usr /opt


Extend /var and make it 4.5 GB = 4608 MB ( 4.5 * 1024)

Extend /usr and make it 2.75 GB = 2816 MB ( 2.75 * 1024)

Extend /opt and make it 3.6 GB = 3712 MB ( 3.6 * 1024)



2 Disks Added to system, each is 17GB, Total Avail = 34GB, Since we will be mirroring, only Half is Avail = 17360MB

File System Current Size MB Add More - MB (Mulitples of 32) New Size (HP-Reco) Total Avail = 17360
/var 2048 2560 4608 MB = 4.5GB 17360 - 2560 = 14800
/usr 1536 1280 2816 MB = 2.75 GB 14800 - 1280 = 13520
/opt 2048 1664 3712 MB = 3.625GB 13520 - 1664 = 11856



Tot to extend = 5504, Free Space Avail = 17360 - 5504 = 11856MB



1) Find out how many free extents are in the volume group:

#vgdisplay vg00

--- 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 4

Act PV 4

Max PE per PV 4350

VGDA 8

PE Size (Mbytes) 4

Total PE 17360

Alloc PE 8680

Free PE 8680

Total PVG 0

Total Spare PVs 0

Total Spare PVs in use 0


2) The above output shows 8680 physical extents free. Each extent (PE Size) is 4mb in size for a total of (8680*4 = 34720) mb available to extend. We will be mirroring so 34720/2 = 17360MB Avail.

NOTE: /, primary swap and /stand cannot be extended because they must be contiguous.


3) Determine if the filesystem is vxfs or hfs:

grep -E â var usr opt /etc/fstab

/dev/vg00/lvol6 /opt vxfs delaylog 0 2

/dev/vg00/lvol8 /usr vxfs delaylog 0 2

/dev/vg00/lvol9 /var vxfs delaylog 0 2

4) Determine the current size of the filesystem:

bdf /var
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol9 2097152 1209649 834379 59% /var

/dev/vg00/lvol8 1572864 1035131 504125 67% /usr

/dev/vg00/lvol6 2097152 1488421 570743 72% /opt


/var 2048 MB (2097152/1024)

/usr 1536 MB (1572864/1024)

/opt 2048 MB (2097152/1024)



5) Extend file systmes (Add in Multiples of 32MB)



/var Make it 4.5GB â HP Recommended, current size is 2048MB add 2560MB more

/usr Make it 2.6GB â HP Recommended, current size is 1536MB add 1280MB more

/opt Make it 3.6GB â HP Recommended, current size is 2048MB add 1664MB more



(1KB = 1024 bytes, 1MB = 1024 * 1024 = 1048576 bytes, 1GB = 1024 MB)



4.5GB = 4.5 * 1024 = 4608 MB
2.75GB = 2.75 * 1024 = 2816 MB

3.6GB = 3.6 * 1024 = 3712 MB



Go Into Single User Mode (For /var its a must)

shutdown â ry 0

interrupt boot (Press and Hold Esc Key)
bo pri
interact with ISL: Y
ISL>hpux â is -lm


lvextend -L 4608 /dev/vg00/lvol9 NOTE: 2048 + 2560 = 4608
lvextend -L 2816 /dev/vg00/lvol8 NOTE: 1536 + 1280 = 2816
lvextend -L 3712 /dev/vg00/lvol6 NOTE: 2048 + 1664 = 3712


7) Extend the filesystem: (vxfs)

extendfs -F vxfs /dev/vg00/rlvol9
extendfs -F vxfs /dev/vg00/rlvol8
extendfs -F vxfs /dev/vg00/rlvol6

NOTE: extendfs must be used on the raw logical volume


8) If you had to shutdown in step f, then reboot the system: reboot
9) Verify the filesystem is the larger size: bdf