1848453 Members
7632 Online
104029 Solutions
New Discussion

Re: fsadm error

 
carl_46
Advisor

fsadm error

fsadm -F vxfs -b 800000 /var
fsadm: /dev/vg00/rlvol7 is currently 716800 sectors - size will be increased
write failure at block 4994302 : No such device or address

Any ideas?

Regards
7 REPLIES 7
CHRIS_ANORUO
Honored Contributor

Re: fsadm error

Check the size of /var using bdf. If you don't have a enough space there you might get that error, and also if you extended the filesystem to another disk.
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
Andy Monks
Honored Contributor

Re: fsadm error

Seb,

Sounds like the logical volume isn't big enough. You did increase it first?

check with

lvdisplay /dev/vg00/lvol7

It should be 800MB from what you typed into fsadm
Emmanuel Eyer
Frequent Advisor

Re: fsadm error

I agree. First extend your LV and *then* the filesystem in it.
Be also careful about rounding issues in the filesystem sizes. If you are sure to have say 12345678 blocks and it fails, try 12345677. Sometimes works better ;-)

Hope it helps, Emmanuel
Alan Riggs
Honored Contributor

Re: fsadm error

I usually use bc to compute the exact sector size. The number is 1024*MB. Since I generally build by extent rather than MB value, I use 4096 (assuming a generic build).

#echo 4096*92 | bc
376832

for example (a 92 extent lv). Then I plug that value into fsadm -b.
Stefan Preusse
New Member

Re: fsadm error

I use the following method to resize filesystems with OnlineJFS

1) use lvextend to resize the logical volume
2) use the command fsadm to resize the filesystem and compute the new size with $((size_in_mb * 1024))

example:
>bdf | grep var
/dev/vg00/lvol7 770048 600419 159364 79% /var

size of /var is 770048 kbytes
let's assume, i want to increase it to 800 mbytes

>lvextend -L 800 /dev/vg00/lvol7

>fsadm -F vxfs -b $((800 * 1024)) /var
Ramesh Donti
Frequent Advisor

Re: fsadm error

Hi,
/var LV is just 716MB and your are trying to extend the filesystem to 800MB.
First extend the logical volume by issuing the following command.

# lvextend -L 800 /dev/vg00/lvolx /dev/dsk/cxtydz

then retry fsadm command.

whatever may be the block size of the filesystem, you should give the no. of blocks in 1 KB size.

i.e If you want to extend 716MB filesystem to 800MB.
No.of blocks = 800*1024 = 819200

fsadm -F vxfs -b 819200 /var

All the best

Always Keep Smiling
Manju Kampli
Trusted Contributor

Re: fsadm error

first you should extend the Logical Volume before trying to extend File system
use "lvextend -L 800 /dev/vg00/lvol7" and then use "fsadm -F vxfs -b 819200 /dev/vg00/rlvol7" command to extend the file system.

Silly me to mention, you should have Online JFS product installed on the system to perform extending the file system Online.



Never stop "LEARNING"