Operating System - HP-UX
1832592 Members
2768 Online
110043 Solutions
New Discussion

I can not Increase the file system /var

 
SOLVED
Go to solution
Guillermo Giron
Occasional Contributor

I can not Increase the file system /var

I need increase the file system /var but I have two volume groups vg00 is full an vg01 is empty.

How can I increase te file system /var

Please Help me

Regards
5 REPLIES 5
Chris Xu
Trusted Contributor
Solution

Re: I can not Increase the file system /var

I take your case is no free space in vg00 and vg01 is not used. If so, one way to solve your problem is to wipe out vg01 (vgexport vg01), and then add the disk(s) from vg01 to vg00 (vgextend vg00 device). Now you will have free space in vg00 to increase /var filesystem. If your system has OnlineJFS, you can do all these online. Otherwise, you have to accomplish that in single user mode.

Chris
Rashid Hamid
Regular Advisor

Re: I can not Increase the file system /var

Hi

Yes Chris idea is good. you shoud remove vg01 and take phsyical volume from vg01 into vg00.
To increase /var you must have onlineJFS, so you can increase it on fly. Otherwise, you have to go to single user mode to increase it

Regards
Rashid

I'm Parit Madirono/Parit Betak Boyz
Hoang Chi Cong_1
Honored Contributor

Re: I can not Increase the file system /var

Hi!
I have recommend to make_tape_recovery to backup the system. It is more safe.
Yes, you can wipe the vg01 and then add more disk to vg00.
But as my experience, you shoud do it in singe-user mode.
In theory, if you have Online-JFS you can extend one LV withow umount filesystem but with var, usr, root, stand you can not extend it because, if you want to extend one filesystem, have to make sure that there is no one access to that filesystem (check with the fuser -cu /filesystem_mount_point command).

Of course, if you do not have Online-JFS, you must do it in single-user mode.

Can check in this thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=272086

Regard,
HoangChiCong

Looking for a special chance.......
Hoang Chi Cong_1
Honored Contributor

Re: I can not Increase the file system /var

Oh..just abit quickly....

How many disk do you have in vg01?
If more than one disk, you can remove one of the PV from vg01 and then add that disk to vg00. It is more faster!

vgreduce /dev/vg01 /dev/dsk/cXtXdX

Remember that, you should scan all of the names of the physical volumes structure which store in /etc/lvmtab with vgscan -a command.
Please post again when success!
Thanks.
Regard,
HoangChiCong

Looking for a special chance.......
Guillermo Giron
Occasional Contributor

Re: I can not Increase the file system /var

Thks all for your help