You are on page 1of 3

IncreaseStand.

doc

Increase the Size of /stand; the Unsupported Method

USE AT YOUR OWN RISK


This procedure is not approved by HP and, if you choose
to use it, you assume full responsibility for the results.

This procedure is used to increase the size of /stand when:

• /stand is on its own logical volume, /dev/vg00/lvol1


• Primary swap and dump are on /dev/vg00/lvol2

1. Verify that /stand is mounted on /dev/vg00/lvol1

bdf

2. Verify that primary swap is using /dev/vg00/lvol2

swapinfo –tm

3. Determine which physical volume contain /dev/vg00/lvol1 and /dev/vg00/lvol2

lvlnboot –v

or Physical Volume:_________________________

lvdisplay –v /dev/vg00/lvol1
lvdisplay –v /dev/vg00/lvol1

4. Confirm that /stand starts at physical extent 00 on the disk in Step 3 and that primary swap follows
immediately after it:

pvdisplay –v <physical_disk_device_file> | more

5. Determine the number of logical extents in /dev/vg00/lvol1

lvdisplay –v /dev/vg00/lvol1 | more

Number of logical extents in /dev/vg00/lvol1:_______________

Plagiarized/Paraphrased by Page 1 of 3 07/19/04


Michael Shapiro
IncreaseStand.doc

6. Determine the number of logical extents in /dev/vg00/lvol2

lvdisplay –v /dev/vg00/lvol2 | more

Number of logical extents in /dev/vg00/lvol2:_______________

7. Reboot the system into maintenance mode

a. shutdown –r now
b. Stop the boot in Boot Admin Mode
c. Boot into ISL
d. hpux –lm

8. Activate vg00

vgchange –a y /dev/vg00

9. Mount /usr

mount /usr

10. Remove primary swap from the LVM boot definitions. If dump is also using the swap volume,
remove it also

lvrmboot –v –s /dev/vg00
lvrmboot –v –d lvol2 /dev/vg00

11. Remove /dev/vg00/lvol2

lvremove /dev/vg00/lvol2

12. If /stand is mounted, unmount it

umount /stand

13. If /stand has 75 physical extents and primary swap has 256 physical extents and I want to increase
the size of /stand to 80 physical extents:

a. lvextend –l 80 /dev/vg00/lvol1
b. extendfs –F hfs /dev/vg00/rlvol1

14. Re-create primary swap with its new smaller size

lvcreate –C y –r n –n lvol2 –l 251 /dev/vg00

Plagiarized/Paraphrased by Page 2 of 3 07/19/04


Michael Shapiro
IncreaseStand.doc

15. Verify that /dev/vg00/lvol1 and /dev/vg00/lvol1 are:

a. Properly laid out on the disk


b. Contiguous
c. The correct size
d. There is no gap between them

pvdisplay –v <physical_disk_device_file> | more

16. Mount /stand

mount /stand

17. Re-create the boot definitions

lvlnboot –b lvol1 /dev/vg00


lvlnboot –s lvol2 /dev/vg00
lvlnboot –d lvol2 /dev/vg00
lvlnboot –R /dev/vg00

18. Verify the boot definitions

lvlnboot -v

19. Reboot the system

reboot –r

20. After rebooting, execute bdf and, if /dev/root is mounted on /:

a. rm /etc/mnttab
b. mountall

Plagiarized/Paraphrased by Page 3 of 3 07/19/04


Michael Shapiro

You might also like