Operating System - HP-UX
1833750 Members
2700 Online
110063 Solutions
New Discussion

problem with resizing the file systems / LV

 
SOLVED
Go to solution
bunty.....
Frequent Advisor

problem with resizing the file systems / LV

I need to extend the size of a file system,
i was trying these commands:
this is the error:

# lvextend -L 15000 /dev/vg01/opt_oracle
Warning: rounding up logical volume size to extent boundary at size "15008" MB.
Logical volume "/dev/vg01/opt_oracle" has been successfully extended.

Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf

# fsadm -F vxfs -b 15000M /opt/oracle
vxfs fsadm: /dev/vg01/ropt_oracle is currently 524288 sectors - size will be increased
vxfs fsadm: attempt to resize /dev/vg01/opt_oracle failed with errno 28
vxfs fsadm: Retry the operation after freeing up some space

Please suggest what to do?
bunty
13 REPLIES 13
Robert-Jan Goossens_1
Honored Contributor
Solution

Re: problem with resizing the file systems / LV

Hi,

# bdf | grep /opt/oracle
will probably give you 100 % full filesystem

Can you move a file inside the /opt/oracle filesystem (few mb)to a temp filesystem and try the fsadm command again ?

Robert-Jan
Chris Bentley
Advisor

Re: problem with resizing the file systems / LV

Shouldn't the fsadm command be

# fsadm -F vxfs -b 15368192 /opt/oracle

ie 15008 x 1024
Piergiacomo Perini
Trusted Contributor

Re: problem with resizing the file systems / LV

Hi Bunty,

i think that in fsadm command
you have not to use

15000M

but the size in Kbytes.

Hth
regards
James R. Ferguson
Acclaimed Contributor

Re: problem with resizing the file systems / LV

Hi Bunty:

Recheck your calculations. Error #28 is "ENOSPC" which means "No Space left on the device.

Regards!

...JRF...
bunty.....
Frequent Advisor

Re: problem with resizing the file systems / LV

# bdf | grep /opt/oracle
it is 100% utilized
Deoncia Grayson_1
Honored Contributor

Re: problem with resizing the file systems / LV

Your fsadm command was wrong, do a bdf /opt/oracle and list out put here, the -b in the fsadm is the bytes size so it should differ from lvextend command,

for example:

lvextend -L 15000 /dev/vg01/opt_oracle

fsadm -F vxfs -b 15360000 /opt/oracle
If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
Patrick Wallek
Honored Contributor

Re: problem with resizing the file systems / LV

Actually, the command is fine. Specifying the size in MB followed by an M or an m is fine. You should have used 15008M though since the LV size was rounded up to 15008 MB by the lvextend command.

Your real issue is that the device is 100% full. fsadm does not work well if there is no space left on the device. You will need to figure out some way to free up some space temporarily, by moving some files to another mount point or removing some files, run the fsadm command again, and then move the files back.
bunty.....
Frequent Advisor

Re: problem with resizing the file systems / LV

same problem with this command
:
# fsadm -F vxfs -b 15360000 /opt/oracle
vxfs fsadm: /dev/vg01/ropt_oracle is currently 524288 sectors - size will be increased
vxfs fsadm: attempt to resize /dev/vg01/ropt_oracle failed with errno 28
vxfs fsadm: Retry the operation after freeing up some space.
Chris Bentley
Advisor

Re: problem with resizing the file systems / LV

Does this work?

# fsadm -F vxfs -b 15368192 /opt/oracle
Patrick Wallek
Honored Contributor

Re: problem with resizing the file systems / LV

YOu need to somehow free up some space on the device. fsadm does not work well when the device is completely full.
Piergiacomo Perini
Trusted Contributor

Re: problem with resizing the file systems / LV

it's seems that Olympian are right
(as usual :-)

regards
bunty.....
Frequent Advisor

Re: problem with resizing the file systems / LV

thanks a lot.

i moved some file from there and then tried again.

this is the solution
thanks

bunty
bunty.....
Frequent Advisor

Re: problem with resizing the file systems / LV

1st move some file then use fsadm command