cancel
Showing results for 
Search instead for 
Did you mean: 

increase the fs.

SOLVED
Go to solution
fizan
Super Advisor

increase the fs.

/var if often violaitng, so in the vg00 4gb space is remaining, so planned to increase the /var by another 2gb, more logs are getting generated, so planned to increase the partition size.
uname -a
HP-UX elect B.11.23 U ia64 0783459695 unlimited-user license

fstyp /dev/vg00/lvol7
vxfs

PE Size (Mbytes) 8
Total PE 8456
Alloc PE 7898
Free PE 558

LV Name /dev/vg00/lvol7
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 4600
Current LE 575
Allocated PE 1150
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c2t1d0s2 575 575
/dev/dsk/c2t0d0s2 575 575
9 REPLIES
fizan
Super Advisor

Re: increase the fs.

please provide us the steps that i need to follow while increasing the space, whether it is advicable to increase the space bcoz only 4gb left in vg00.
Pete Randall
Outstanding Contributor

Re: increase the fs.

I'm guessing you're asking how to do this?

Take a look at the EXAMPLES section of the lvextend man page, in particular the section labeled "Increase the size of a file system existing on a logical volume:".


Pete

Pete
Pete Randall
Outstanding Contributor

Re: increase the fs.

OK, that was what you were asking.

For your second question, "is it advisable?", you would have to decide. Personally, I would say yes. The other vg00 file systems should not experience much growth and, unless you want to devote a lot of your time to cleaning out /var, it makes sense to utilize your extra space where it is needed.


Pete

Pete
fizan
Super Advisor

Re: increase the fs.

whether i need to unmount /var before increasing, if so after lvextend i want to use extendfs or fsadm? for increaing /var.
Pete Randall
Outstanding Contributor

Re: increase the fs.

Here's the relevant man page section:

Increase the size of a file system existing on a logical volume:

First, increase the size of the logical volume.

lvextend -L 400 /dev/vg06/lvol3

Unmount the file system.

umount /dev/vg06/lvol3

Extend the file system to occupy the entire (larger) logical volume.

extendfs /dev/vg06/rlvol3

Remount the file system.

mount /dev/vg06/lvol3 /mnt


When I read that, it tells me you have to unmount. Maybe it says something different when you read it.


Pete

Pete
Raj D.
Honored Contributor
Solution

Re: increase the fs.

Fizan,

- Do you have online JFS on the system.
If yes, you dont need to unmount the filesystem.

Check:
# swlist -l product | grep -i OnlineJfs





Following steps needed to extend the FS by another 2GB (2048MB):

1. Check if you have free space & equal free space on both disk:
# vgdisplay -v vg00 | grep -e 'Free PE' -e dsk | grep -v Alt

From above output looks 4.4GB free space available , so you can go ahead:


2. # lvextend -L 6648 /dev/vg00/lvol7 #[4600+2048 = 6648MB the new size will be. ]

3. # fsadm -b 6648M /var

4. # bdf /var #To check.



Cheers,
Raj.


" If u think u can , If u think u cannot , - You are always Right . "
fizan
Super Advisor

Re: increase the fs.

raj,

online jfs is not installed i grep no output came, so i will go head with the steps and increase the size.

Thanks
fizan
Super Advisor

Re: increase the fs.

got the excat solution!!

Thanks.
fizan
Super Advisor

Re: increase the fs.

then,

/var its under mirroring whether before increasing the /var mirror has to be breaked.