Operating System - Linux
1828918 Members
2641 Online
109986 Solutions
New Discussion

Cannot use space on extended LV

 
TJ_22
Occasional Advisor

Cannot use space on extended LV

Hello,

Red Hat Enterprise Linux ES release 3 (Taroon Update 4)

I have used the lvextend command to add 500MB to a logical volume that was at 100%.

I unmounted the the lv and ran:
resize2fs /dev/vg00/usr_local

I then remounted the file system and now I show a little under 30% free:
df .
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/vg00/usr_local 1519896 1010936 432160 71% /usr/local

The problem is when I try and copy a file to a directory under this lv I get the following error:

cp: writing `test': No space left on device

Anyone know what I am doing wrong?

Thanks,

T.J.
9 REPLIES 9
Steven E. Protter
Exalted Contributor

Re: Cannot use space on extended LV

You have extended the logical volume.

Have you extended the filesystem? (extendfs).

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
TJ_22
Occasional Advisor

Re: Cannot use space on extended LV

I thought the resize2fs command would have taken care of that. Also, extendfs is not a valid command on this system.
HugoAlmeida
Trusted Contributor

Re: Cannot use space on extended LV

Hi

Do an df -i. See if you have i-nodes available.
TJ_22
Occasional Advisor

Re: Cannot use space on extended LV

/dev/vg00/usr_local 192000 286 191714 1% /usr/local

Looks like there is plenty
Steven E. Protter
Exalted Contributor

Re: Cannot use space on extended LV

Only 1%, 286 innodes.

What was the response code to the resize command?

Any non-zero response means it failed.

You may need to umount and mount the filesystem to get the space recognized. Booting the system would accomplish the same thing.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
TJ_22
Occasional Advisor

Re: Cannot use space on extended LV

I have already unmounted then remounted the file system. The space is showing as availible when a df is done but when i try to copy a file to it that is when it says it is full. There where no errors when running the resize2fs command.

HugoAlmeida
Trusted Contributor

Re: Cannot use space on extended LV

Hi

You can also try a file system check.
HugoAlmeida
Trusted Contributor

Re: Cannot use space on extended LV


Is the file system mounted as RO?

Can you edit any file in that filesystem?

Do touch to see if you can create a new file.

Try copy a file from that filesystem to itself.
Magnus Andersen
Advisor

Re: Cannot use space on extended LV

What was the return from the lvextend command? Also what version of the linux kernel are you running, what distrubution, what version of LVM, what filestystem?

How does /etc/fstab look.

Sorry for all the questions...