Operating System - HP-UX
1833051 Members
2331 Online
110049 Solutions
New Discussion

Enlarge File System - error

 
SOLVED
Go to solution
Daniel Aquere de Olivei
Regular Advisor

Enlarge File System - error

Hi,

I need enlarge my File System.

I am using this commands:
fsadm -d -e -D -E /var - OK
fsadm -V -b 32457280 /var - NOK

When execute the command "fsadm -b 32457280 /var", appers this message:
"fsadm: /etc/default/fs is used for determining the file system type
vxfs fsadm: /dev/vg00/rlvol8 is currently 31457280 sectors - size will be increased
vxfs fsadm: write failure at block 4581446 : No such device or address"

Any tip.

Thanks.

Daniel
8 REPLIES 8
Jeff_Traigle
Honored Contributor

Re: Enlarge File System - error

Did you use lvextend to extend the underlying logical volume first? Judging by the error, I would say not or, if you did, you didn't calculate properly for the -b argument.
--
Jeff Traigle
Geoff Wild
Honored Contributor

Re: Enlarge File System - error

For ease of admin, do it in MB:

lvextend -L 32768 /dev/vg00/lvol8 (or whatever your /var is)

fsadm -b 32768M /var


That said - looks like you may have a disk issue? write failure at block

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Geoff Wild
Honored Contributor

Re: Enlarge File System - error

After further looking - your disk is fine - you must have forgot the lvextend - or it is smaller then your fsadm command....

Again, stick with MB.....

Do a vgdisplay -v /dev/vg00 - what is size of the lvol for /var?

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Reshma Malusare
Trusted Contributor
Solution

Re: Enlarge File System - error

Hi Daniel,
I suggest following steps to increase file system: Example
1>Log in as root
2>Find out if any space is available:
# /sbin/vgdisplay
3> Check to see where E.g /usr is mounted (/dev/vg00/lvol7 by default):
# /sbin/mount
4> Extend the logical volume:

# /sbin/lvextend -L new_size /dev/vg00/lvol7

For example,
#/sbin/lvextend -L 332 /dev/vg00/lvol7
increases the size of this volume to 332 MB.
5>Unmount /usr:
# /sbin/umount /usr
This is required for the next step, since extendfs/fsadm can only work on unmounted volumes.
6>Extend the file system size to the logical volume size; for example:
/usr/sbin/fsadm [-F vxfs] [-V] [-b newsize] [-r rawdev] mount_point
Check following link for more information:
http://docs.hp.com/en/B9106-90008/fsadm_vxfs.1M.html
7>Remount /usr:
# /sbin/mount /usr



thanks & Regards
Reshma



Asif Sharif
Honored Contributor

Re: Enlarge File System - error

lvextend -L
fsadm -F vxfs -b M
Regards,
Asif Sharif
Asif Sharif
Honored Contributor

Re: Enlarge File System - error

Hi Daniel,

lvextend -L
fsadm -F vxfs -b

Regards,
Asif Sharif
Regards,
Asif Sharif
Daniel Aquere de Olivei
Regular Advisor

Re: Enlarge File System - error

Hi everyone,

Sorry, I am failing...

I have this situation:

[svnnm11 - /] bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 245760 182936 62824 74% /
/dev/vg00/lvol1 298928 42336 226696 16% /stand
/dev/vg00/lvol8 31457280 27459472 3967576 87% /var
/dev/vg00/lvol7 3145728 2210832 927624 70% /usr
/dev/vg00/lvol4 212992 4408 207008 2% /tmp
/dev/vg00/lvol6 5242880 3725776 1505272 71% /opt
/dev/vg00/lvol5 32768 2384 30152 7% /home
/dev/vg00/devlv 4194304 772054 3208411 19% /devel
/dev/vg01/lvol1 286687232 27642104 257075024 10% /OV

I need to increase my /var. I could use bytes of /OV?

How?

Thanks
Daniel Aquere de Olivei
Regular Advisor

Re: Enlarge File System - error

Hi,

Thanks for all tips.

I was forgot resize lvol.

Regards.

Daniel