1752689 Members
5552 Online
108789 Solutions
New Discussion юеВ

increase /var/audit

 
SOLVED
Go to solution
David_246
Trusted Contributor

increase /var/audit

Hi,

I am ashamed to tell, but until now I never increaed a LVM Volum for HP. Did it multiple times for Solaris, but never HP.

Can you please help me out and confirm I do it right ?

vgdisplay -v vg00 shows me :
PE Size (Mbytes) 8
Total PE 8680
Alloc PE 2546
Free PE 6134

bdf /var/audit shows me :
/dev/vg00/lvol10 204800 162200 39988 80% /var/audit

I'dd like to increase the volume to 2.5 Gb :

lvextend -L 2560 /dev/vg00/lvol10
extendfs -F vxfs /dev/vg00/lvol10 # it's vxfs, as looked up in /etc/mnttab

Do I forget steps, do I do things wrong ?
Please let me know before I start.

Best Regs David
@yourservice
7 REPLIES 7
Pete Randall
Outstanding Contributor

Re: increase /var/audit

David,

The only thing I see that you missed is that you're going to need to unmount the volume first:

umount /var/audit

then lvextend and extendfs.


Pete


Pete
Uday_S_Ankolekar
Honored Contributor

Re: increase /var/audit

If you have online JFS you can do it online
(check with swlist whether you have online JFS)
you can use then fsadm to extend the File system.

fsadm -F vxfs -b newsize /filesystem

for extendfs you need to umount the file system and /var can not be unmounted easily while system is up and running.

Goodluck
-USA..
Good Luck..
blal
Frequent Advisor

Re: increase /var/audit


Hi David,

Nothing to be ashamed, u r right.But hope u have only one disk in vg00, if this is a mirrored logical volume you may have to ,
extend the volume to one disk providing pv path(/dev/dsk/c?t?d?) in lvextend and then increase the mirror copy by using m 1 option .
(u can use lvdisplay command to find the mirror details)

Pls note that you have to unmount the file system before doing the lvextend.

(or if u have online JFS installed ,can check using swlist ) you can incarease the size by fsadm -b nesizeM /var/audit )

Good luck.

Regards,
baiju.
Live and let live.
James R. Ferguson
Acclaimed Contributor
Solution

Re: increase /var/audit

Hi David:

If you do not have OnlineJFS licensed, then you will need to unmount the filesystem before your 'extendfs' it.

If you do have OnlineJFS, then no unmount is necessary. Too, substitute the following for the 'extendfs':

# fsadm -b 2621440 /var/audit

The value of 2621440 is derived by multiplying the desired size by 1024 (the block size).

You can determine whether or not you have OnlineJFS by looking for it thusly:

# swlist |grep -i OnlineJFS

Regards!

...JRF...
Elena Leontieva
Esteemed Contributor

Re: increase /var/audit

David,

If you have OnlineJFS and are going to use fsadm, you may just do it as follows:

fsadm -F vxfs -b 2500m /var/audit

Elena.
James R. Ferguson
Acclaimed Contributor

Re: increase /var/audit

Hi (again) David:

BTW, you could also specify your 'fsadm' command thusly:

# fsadm -b $((2560*1024)) /var/audit

Regards!

...JRF...
Srinivas Thokala_1
Frequent Advisor

Re: increase /var/audit

Hi David,

use the following:
first check for the available space in VG
#vgdisplay -v /dev/vg00
Increase the file system size.
#lvextend -L 2500 /dev/vg00/lvol10
use below command if Online JFS is installed.
#fsadm -F vxfs -b 2500M /mount-point
Where 'M' indicates size in megabytes

-Srini
Srinivas Thokala