Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Dec 04, 2012 3:42 am 
Offline
Newbie

Joined: Tue Dec 04, 2012 3:12 am
Posts: 3
After using this guide, http://library.linode.com/linode-platform/custom-instances/custom-distro-howto, I'm running Slackware 14 64bit. It's been running fine for the past few weeks, but just now as I was trying to add some photos to a web page I'm hosting, I starting running into some strange errors:
Code:
cp: writing '../my/photo.jpg': No space left on device
cp: failed to extend '../my/photo.jpg': No space left on device


The output from df seems to confirm that there's no room to copy my photo:

Code:
# df
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/xvda        3883200 3880244         0 100% /


But I know that there should be plenty of space left:

Code:
# fdisk -l

Disk /dev/xvda: 21.2 GB, 21206401024 bytes
255 heads, 63 sectors/track, 2578 cylinders, total 41418752 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

    Device Boot      Start         End      Blocks   Id  System

Disk /dev/xvdb: 268 MB, 268435456 bytes
255 heads, 63 sectors/track, 32 cylinders, total 524288 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes



I think the 3883200 KB is about the size of the initial VM I set up on my local machine in order to install the OS and set things up before I uploaded it to linode. I think that maybe the OS doesn't realize it's got more space now.

Does anyone have any advice about which settings or config file to look into further?

Thanks.


Top
   
PostPosted: Tue Dec 04, 2012 7:14 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
From Finnix, run 'resize2fs' to expand your filesystem. That should do it (assuming you're using ext3/4).

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
PostPosted: Tue Dec 04, 2012 7:31 am 
Offline
Senior Member
User avatar

Joined: Thu Feb 16, 2012 9:01 pm
Posts: 52
or shutdown and run the resize from the linode manager.


Top
   
PostPosted: Tue Dec 04, 2012 12:47 pm 
Offline
Newbie

Joined: Tue Dec 04, 2012 3:12 am
Posts: 3
Thanks! Though it looks like I can just run 'resize2fs' from the currently installed system, rather than having to reboot into Finnix or shutdown and resize from the linode manager.

I guess I'll find out if that won't work...


Top
   
PostPosted: Tue Dec 04, 2012 12:53 pm 
Offline
Newbie

Joined: Tue Dec 04, 2012 3:12 am
Posts: 3
Nice! Thanks hoopycat & dan. I ran 'resize2fs' from Slackware, and it seems to have done the trick:

Code:
# df
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/xvda        3883200 3126648    559292  85% /

# resize2fs /dev/xvda
resize2fs 1.42.6 (21-Sep-2012)
Filesystem at /dev/xvda is mounted on /; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 2
The filesystem on /dev/xvda is now 5177344 blocks long.

# df
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/xvda       20393244 3129484  16400672  17% /


Top
   
PostPosted: Tue Dec 04, 2012 4:36 pm 
Offline
Senior Member

Joined: Wed Oct 20, 2010 12:35 pm
Posts: 111
Location: United Kingdom
Still looks like you need to clean out your log files a bit to free up some space. Make sure you have logrotate properly configured so that your drive does not get filled up with random rubbish.


Top
   
PostPosted: Thu Dec 06, 2012 8:57 pm 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
There was a bug where using mysql and django sessions caused massive disk use. I had this problem and switched to postgres.

http://djangosnippets.org/snippets/1273/

James


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group