Operating System - HP-UX
1753962 Members
7521 Online
108811 Solutions
New Discussion юеВ

Re: Reducing the size of /stand

 
SOLVED
Go to solution
WW393114
Advisor

Reducing the size of /stand

Hi Experts,

Can any one please help me in reducing the size of /stand. Please tell me how can i do it other than taking igntie backup and restoring.

Thanks in advance.
6 REPLIES 6
EmmanuelK2
Advisor

Re: Reducing the size of /stand

Hello,

Extending the size of /stand can be achieved if the system is in lvm maintenance mode. The solution at this url is a good start point for you.

http://wiki-ux.info/wiki/How_to_extend_stand_file_system_in_LVM_maintenance_mode

This however shrinks your primary swap space, and you will thus need to create more device/file system swap.

Regards,
Emmanuel
EmmanuelK2
Advisor
Solution

Re: Reducing the size of /stand

Hello,

Reducing the size of /stand can be achieved if the system is in lvm maintenance mode.
The following is a step by step followthrough:

Boot your machine in LVM maintenance mode
ISL>hpux -lm
#
Once in maintenance mode, activate vg00
# vgchange -a y /dev/vg00

Check the current size
# lvdisplay /dev/vg00/lvol1

Temporarily remove the pointers in the Boot Disk Reserved Area (BDRA)
# lvrmboot -s /dev/vg00
# lvrmboot -d lvol2 /dev/vg00
# lvremove -f /dev/vg00/lvol2

Reduce /dev/vg00/lvol1
# lvreduce -l /dev/vg00/lvol1

Confirm the new size
# lvdisplay /dev/vg00/lvol1

Update and verify the BDRA pointers
# lvlnboot -b /dev/vg00/lvol1
# lvlnboot -s /dev/vg00/lvol2
# lvlnboot -d /dev/vg00/lvol2
# lvlnboot -r /dev/vg00/lvol3
# lvlnboot ├в v

Reboot.
# reboot

If you intend to use the reclaimed space for swap;
Unmount and extend the /stand file system

# umount /stand
# extendfs ├в F hfs /dev/vg00/rlvol1
# mount /stand

Regards,
Emmanuel
Dennis Handly
Acclaimed Contributor

Re: Reducing the size of /stand

Any reason why you think it is too big?
Tim Nelson
Honored Contributor

Re: Reducing the size of /stand

beware that if you attempt to lvreduce the lvol in maintenance mode that you probably will corrupt your filesystem and render the system unbootable.

I would suggest using Ignite to backup and restore your OS with new sizings.

WW393114
Advisor

Re: Reducing the size of /stand

Thanks for all your replies. It really helped me , and lastly i did not take risk and restored with ignite.

Can you pls tell me what problems i may face if i reduce the /stand directly.

Thanks all
Ismail Azad
Esteemed Contributor

Re: Reducing the size of /stand

Hi,

> Risks/problems

Never take your system from LVM maintenance mode directly to runlevel3.. same goes for the failsafe mode. Reducing/extending the contiguous extents on /stand involves playing around with primary swap and most of the time removing it! This can be one of the most dangerous things if not recreated again. Do REMEMBER this!!

Regards
Ismail Azad
Read, read and read... Then read again until you read "between the lines".....