1823999 Members
3566 Online
109667 Solutions
New Discussion юеВ

Expanding VAR

 
David Young_12
Occasional Contributor

Expanding VAR

Made a mistake making VAR to small. How do I expand VAR without crashing the
system once you KILL the proccesses that have access to it?
3 REPLIES 3
Paul Heffels_1
Frequent Advisor

Re: Expanding VAR

Hi David,

This issue has been covered here before. Do a search on "expanding /var" in
this section. Pick the post from Ishmael Lesolame, and you'll probably want to
read the reply from Javier Juarez. I Think this will answer your question.

Good luck!
Sy-hoang Truong_1
Occasional Advisor

Re: Expanding VAR

You must shutdown the system in the single user mode :
shutdown -y 0
if not mimorring
umount /dev/vg00/lvol1 e.g.
lvextend -L larger_size /dev/vg00/lvol1
extendfs -F hfs /dev/vg00/rvol1
After that, you can mount the file system /var
mount /dev/vg00/lvol1 /var
if mimorring, you should do lvchange first

Gook luck
Ishmael Lesolame_1
Occasional Advisor

Re: Expanding VAR

I am sure you have succesfully expanded your /var. But I thought I may throw in
my experience with the instructions.

All worked well until I had to run extendfs. I got an error message like "can
not extend /var/dev/rlvol8 because it is a non-hfs system" even without the -F
option. Yet /var was an hfs. I got frustrated and inadvertently slashed out (a
couple of directories from) my /var with newfs. Thank God I had a backup.

Strange enough I did another resizing on a vxfs but extendfs ran smoothly
without a quibble.

Strange but true!!! special thanks to those who contributed to my posting.

Ishmael