HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

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

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".....