LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-20-2014, 12:10 AM   #1
jojanmpaul
Member
 
Registered: Sep 2012
Location: Bangalore
Posts: 80

Rep: Reputation: Disabled
failed: No space left on device (28)


Hello,

I am getting the following the "failed: No space left on device (28)" error while copying files to the server,

disc usage status is following,

df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LVroot 12G 3.9G 7.1G 36% /
tmpfs 1.9G 0 1.9G 0% /dev/shm
/dev/sda1 194M 34M 150M 19% /boot
/dev/mapper/VolGroup00-LVtmp 3.9G 72M 3.6G 2% /tmp
/dev/mapper/VGdata-LVdata 24G 8.0G 15G 36% /data

df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/VolGroup00-LVroot 761856 131403 630453 18% /
tmpfs 490585 1 490584 1% /dev/shm
/dev/sda1 51200 39 51161 1% /boot
/dev/mapper/VolGroup00-LVtmp 256000 32 255968 1% /tmp
/dev/mapper/VGdata-LVdata 1572864 1572864 0 100% /data

I am not able to copy any fine under /data directory, but it shows 15G available, could you please suggest me how to handle this.
 
Old 06-20-2014, 12:39 AM   #2
jojanmpaul
Member
 
Registered: Sep 2012
Location: Bangalore
Posts: 80

Original Poster
Rep: Reputation: Disabled
Hello,

I think there may be Reserved space for root on a filesystem.

Please let me know how to increase the same.
 
Old 06-20-2014, 01:11 AM   #3
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,385

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
You may have free space but you have no free inodes to allocate it.
 
Old 06-20-2014, 01:13 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,848

Rep: Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823
The reserved space is not relevant here - you can eliminate it using tune2fs.
Your problem is you have run out inodes as you are apparently aware. If this is an ext[234] filesystem, you must reformat the filesystem (see the mke2fs "-i" option).
Back the current data up, re-format with more inodes, restore, then copy in your new data.

You must have a significant number of files.
 
Old 06-20-2014, 06:07 AM   #5
jojanmpaul
Member
 
Registered: Sep 2012
Location: Bangalore
Posts: 80

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
The reserved space is not relevant here - you can eliminate it using tune2fs.
Your problem is you have run out inodes as you are apparently aware. If this is an ext[234] filesystem, you must reformat the filesystem (see the mke2fs "-i" option).
Back the current data up, re-format with more inodes, restore, then copy in your new data.

You must have a significant number of files.
I have tried the following, but no luck,

mke2fs -I 128 /dev/mapper/VGdata-LVdata

tune2fs -l /dev/mapper/VGdata-LVdata | grep Inode
Inode count: 1572864
Inodes per group: 8192
Inode blocks per group: 256
Inode size: 128
 
Old 06-20-2014, 07:54 AM   #6
JeremyBoden
Member
 
Registered: Nov 2011
Posts: 939

Rep: Reputation: 174Reputation: 174
deleted.

Last edited by JeremyBoden; 06-20-2014 at 07:56 AM.
 
Old 06-20-2014, 08:30 AM   #7
jojanmpaul
Member
 
Registered: Sep 2012
Location: Bangalore
Posts: 80

Original Poster
Rep: Reputation: Disabled
Hi,

I have recreated the LVM too, again fails.
 
Old 06-20-2014, 08:34 AM   #8
JeremyBoden
Member
 
Registered: Nov 2011
Posts: 939

Rep: Reputation: 174Reputation: 174
Fails?
Does the actual LVM creation fail?
When you created the 15G partition did you create it with more inodes?
 
Old 06-20-2014, 09:36 AM   #9
jojanmpaul
Member
 
Registered: Sep 2012
Location: Bangalore
Posts: 80

Original Poster
Rep: Reputation: Disabled
Hello,

Thank you for all of you for helping me at right time with good tips. The following command helped me to get rid of this issue.

mke2fs -i 8192 /dev/mapper/VGdata-LVdata
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] /etc/profile write to 1 failed [No space left on device] cdhar Linux - Newbie 2 03-18-2013 05:54 AM
write to 1 failed [No space left on device] cyberchip Linux - Software 3 10-16-2012 11:55 AM
write to 1 failed [No space left on device] cyberchip Linux - Kernel 1 10-04-2012 02:51 PM


All times are GMT -5. The time now is 01:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration