Re: Disk Space Issues

2011-05-10 Thread Tony van der Hoff

On 09/05/11 15:56, Lisi wrote:

On Monday 09 May 2011 10:57:55 Tony van der Hoff wrote:

On 09/05/11 10:48, Daniel Linux wrote:

What you would do after you found a full filesystem? It is just
a general question that was asked in my class of operating
systems and nobody had an answer.


This is the only full solution: sudo rm -rf /


:-)

You don't think that that solution might bring other, worse problems
in on its tail?? ;-)



Sure, but that wasn't the question. This guy wants us to do his study
assignment for him, the correct answer to which is probably expected to 
be at least one side of A4, and requires some thinking about.


I've made one simple suggestion; if he presents it to his prof, he'll 
get all the marks he deserves :(



--
Tony van der Hoff  | mailto:t...@vanderhoff.org
Ariège, France |


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4dc8e92b.30...@vanderhoff.org



Re: Disk Space Issues

2011-05-10 Thread S.Allen
On Mon, May 09, 2011 at 07:34:56PM +0200, Gilles Mocellin wrote:
 
 Just to mention a useful ncurses tool to show and track space usage :
 ncdu.

Cool, thanks! 



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110510121108.GB2027@sda-Latitude-C610



Disk Space Issues

2011-05-09 Thread Daniel Linux
Hi,

Can anybody tell me the steps to troubleshoot disk space issues.

Thanks,

D.A
Why do you live?


Re: Disk Space Issues

2011-05-09 Thread Ron Johnson

On 05/09/2011 03:23 AM, Daniel Linux wrote:

Hi,

Can anybody tell me the steps to troubleshoot disk space issues.



Too generic.  Not enough information.

--
Neither the wisest constitution nor the wisest laws will secure
the liberty and happiness of a people whose manners are universally
corrupt.
Samuel Adams, essay in The Public Advertiser, 1749


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4dc7a78b.2000...@cox.net



Re: Disk Space Issues

2011-05-09 Thread Daniel Linux
Yes, I need generic steps. After running   df -h   I know what filesystem is
almost full. What should I do?

Thanks,

DA


On Mon, May 9, 2011 at 4:36 AM, Ron Johnson ron.l.john...@cox.net wrote:

 On 05/09/2011 03:23 AM, Daniel Linux wrote:

 Hi,

 Can anybody tell me the steps to troubleshoot disk space issues.


 Too generic.  Not enough information.

 --
 Neither the wisest constitution nor the wisest laws will secure
 the liberty and happiness of a people whose manners are universally
 corrupt.
 Samuel Adams, essay in The Public Advertiser, 1749


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a
 subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/4dc7a78b.2000...@cox.net




Re: Disk Space Issues

2011-05-09 Thread Tom Grace

On 09/05/11 09:40, Daniel Linux wrote:

Yes, I need generic steps. After running   df -h   I know what
filesystem is almost full. What should I do?
du -h /fullfilesystem is a good start, possibly with --max-depth to 
limit the output.



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4dc7a947.9020...@deathbycomputers.co.uk



Re: Disk Space Issues

2011-05-09 Thread Daniel Linux
What you would do after you found a full filesystem? It is just a general
question that was asked in my class of operating systems and nobody had an
answer.

Thanks,

On Mon, May 9, 2011 at 4:43 AM, Tom Grace
lists...@deathbycomputers.co.ukwrote:

 On 09/05/11 09:40, Daniel Linux wrote:

 Yes, I need generic steps. After running   df -h   I know what
 filesystem is almost full. What should I do?

 du -h /fullfilesystem is a good start, possibly with --max-depth to limit
 the output.



 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a
 subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/4dc7a947.9020...@deathbycomputers.co.uk




Re: Disk Space Issues

2011-05-09 Thread Ron Johnson


You look for the biggest file.  (I feel a GOML moment approaching.)

On 05/09/2011 03:48 AM, Daniel Linux wrote:

What you would do after you found a full filesystem? It is just a general
question that was asked in my class of operating systems and nobody had an
answer.

Thanks,

On Mon, May 9, 2011 at 4:43 AM, Tom Grace
lists...@deathbycomputers.co.ukwrote:


On 09/05/11 09:40, Daniel Linux wrote:


Yes, I need generic steps. After running   df -h   I know what
filesystem is almost full. What should I do?


du -h /fullfilesystem is a good start, possibly with --max-depth to limit
the output.



--
Neither the wisest constitution nor the wisest laws will secure
the liberty and happiness of a people whose manners are universally
corrupt.
Samuel Adams, essay in The Public Advertiser, 1749


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4dc7abd9.5090...@cox.net



Re: Disk Space Issues

2011-05-09 Thread Lisi
On Monday 09 May 2011 09:48:44 Daniel Linux wrote:
 What you would do after you found a full filesystem? It is just a general
 question that was asked in my class of operating systems and nobody had an
 answer.

I currently have this problem on two of my disks.  As I see it, I have 3 
realistic choices: delete enough stuff to free up a realistic percentage if 
the disks; buy myself 2 new larger disks; and copy a large chunk of stuff I 
want to keep, but only need rarely, onto another (external?) disk.  I am 
trying the last first, and have bought an external drive.  But I haven't yet 
done it, and may not succeed in moving enough!

Lisi


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201105090958.10875.lisi.re...@gmail.com



Re: Disk Space Issues

2011-05-09 Thread Tom Grace

On 09/05/11 09:48, Daniel Linux wrote:

What you would do after you found a full filesystem? It is just a
general question that was asked in my class of operating systems and
nobody had an answer.


It all depends on context, you'll need to add a little more detail. For 
instance:
As an administrator, you'd probably go find big files and go shout at 
their creator.

As an application developer, you'd need to gracefully handle the error.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4dc7acca.1020...@deathbycomputers.co.uk



Re: Disk Space Issues

2011-05-09 Thread Brad Alexander
Depends. Best case, you built your system using LVM and have reserved space.
You can check this using the df command. If your filesystems start with
/dev/mapper, then you are using LVM. You can check for free space using the
vgdisplay command (as root):

# vgdisplay
...Snip...
  Alloc PE / Size   96637 / 377.49 GiB
  Free  PE / Size   80065 / 312.75 GiB

The free PE/Size line shows you the available space. You could then extend
the filesystem that is having issues:

# lvextend -L+10G /dev/VG00/foo

If you are using standard hard drive partitions (/dev/sda1, /dev/sdb2, etc),
then you have to do it the old school way.

Using a tool like df, find a directory tree that is large enough that moving
it off of the filesystem would make a difference, then copy it to a
partition with more space, then symlink it back to its original location.

This is an older and uglier way to do it as you could, over time wind up
with a bunch of these symlinks all over your hard drive.

--b

On Mon, May 9, 2011 at 4:23 AM, Daniel Linux darjona.li...@gmail.comwrote:

 Hi,

 Can anybody tell me the steps to troubleshoot disk space issues.

 Thanks,

 D.A
 Why do you live?



Re: Disk Space Issues

2011-05-09 Thread Michiel Piscaer

Op 9-5-2011 10:48, Daniel Linux schreef:
What you would do after you found a full filesystem? It is just a 
general question that was asked in my class of operating systems and 
nobody had an answer.


Thanks,

On Mon, May 9, 2011 at 4:43 AM, Tom Grace 
lists...@deathbycomputers.co.uk 
mailto:lists...@deathbycomputers.co.uk wrote:


On 09/05/11 09:40, Daniel Linux wrote:

Yes, I need generic steps. After running   df -h   I know what
filesystem is almost full. What should I do?

du -h /fullfilesystem is a good start, possibly with --max-depth
to limit the output.


With # du -h --max-depth=1 you can find what directory is taking all of 
the space. Next is take the right action, by emtying /  deleting the 
file, or moving the directory to an new disk.


Also when you  reply on en mail please place your text below.

Kind regards,

Michiel Piscaer



Re: Disk Space Issues

2011-05-09 Thread Lisi
On Monday 09 May 2011 07:58:22 Michiel Piscaer wrote:
 With # du -h --max-depth=1 you can find what directory is taking all of
 the space. Next is take the right action, by emtying /  deleting the
 file, or moving the directory to an new disk.

Thanks, Michiel.  I had correctly selected the largest directory - but 
incorrectly managed ot find out its size.  I now know that the external HDD 
that I had bought is not big enough, so won't bother to try moving onto 
it. ;-(

Now, if I had asked

Lisi




-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201105091012.29489.lisi.re...@gmail.com



Re: Disk Space Issues

2011-05-09 Thread Brad Rogers
On Mon, 9 May 2011 04:40:56 -0400
Daniel Linux darjona.li...@gmail.com wrote:

Hello Daniel,

 Yes, I need generic steps. After running   df -h   I know what
 filesystem is almost full. What should I do?

Your question is still too vague to give sensible answers to.  Some
options;

1) Buy a new computer.

2) Buy a new hard drive.

3) Buy more RAM.

4) Read
http://www.linuxquestions.org/linux/answers/LinuxQuestions_org/How_To_Ask_a_Question

5) Delete some files.

-- 
 Regards  _
 / )   The blindingly obvious is
/ _)radnever immediately apparent
Who's a sucker now?
Edward The Bear - The Damned


signature.asc
Description: PGP signature


Re: Disk Space Issues

2011-05-09 Thread Stan Hoeppner

On 5/9/2011 1:58 AM, Michiel Piscaer wrote:

Op 9-5-2011 10:48, Daniel Linux schreef:



Yes, I need generic steps. After running df -h I know what
filesystem is almost full. What should I do?

du -h /fullfilesystem is a good start, possibly with --max-depth
to limit the output.



With # du -h --max-depth=1 you can find what directory is taking all of
the space. Next is take the right action, by emtying / deleting the
file, or moving the directory to an new disk.


The first step should be to identify all files that are known to 
compress w/ a decent ratio:


1.  Text (logs)
2.  HTML
3.  etc

A/V files typically don't compress well.  Many binaries don't compress 
well.  Depending on the primary use of the machine in question it may 
have a lot of disk space eaten by highly compressible files.  If so, 
compress those files.


If the files taking up much of the space are infrequently used, move 
them to a D2D backup server, CD/DVD, or to tape.  If they will never be 
used again (large temp files) simply delete them.


The answer the professor is looking for is not the action you end up 
taking, but the logic process you use to figure out what you should 
do--i.e. what steps you take, and how thorough they are, in determining 
the best course of action.


--
Stan


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4dc7b28b.2070...@hardwarefreak.com



Re: Disk Space Issues

2011-05-09 Thread Andrew McGlashan

Hi Lisi,

Lisi wrote:

On Monday 09 May 2011 09:48:44 Daniel Linux wrote:

What you would do after you found a full filesystem? It is just a general
question that was asked in my class of operating systems and nobody had an
answer.


I currently have this problem on two of my disks.  As I see it, I have 3 
realistic choices: delete enough stuff to free up a realistic percentage if 
the disks; buy myself 2 new larger disks; and copy a large chunk of stuff I 
want to keep, but only need rarely, onto another (external?) disk.  I am 
trying the last first, and have bought an external drive.  But I haven't yet 
done it, and may not succeed in moving enough!


Don't count on an external drive surviving.  If the data is important to 
you, then you might want multiple external drives and have one of them 
off-site -- perhaps swap with a family member or colleague?


Data is usually best on some form of protective RAID (not striping 
unless mirrored as well) -- I am preferring RAID6 if I have enough 
drives [6+ makes it worthwhile], RAID1 next and as a third choice, 
RAID5.  But don't forget ... RAID in itself is *NOT* a backup, it simply 
protects against single [up to 2 drives with RAID6] drive failure.


--
Kind Regards
AndrewM

Andrew McGlashan
Broadband Solutions now including VoIP


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4dc7bc7f.3090...@affinityvision.com.au



Re: Disk Space Issues

2011-05-09 Thread Andrew McGlashan

Hi,

Daniel Linux wrote:

Can anybody tell me the steps to troubleshoot disk space issues.


Depending on the size of the file system to start with, you cold use 
find as follows to locate larger files for consideration.


# find /home -size +10M -ls

Generally, larger files once identified can give you a good start.

However, that's just a start ... as others have said, a better 
predefinition of the problem would help.


--
Kind Regards
AndrewM

Andrew McGlashan
Broadband Solutions now including VoIP


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4dc7beb2.4050...@affinityvision.com.au



Re: Disk Space Issues

2011-05-09 Thread Tony van der Hoff

On 09/05/11 10:48, Daniel Linux wrote:

What you would do after you found a full filesystem? It is just a
general question that was asked in my class of operating systems and
nobody had an answer.


This is the only full solution:
sudo rm -rf /


--
Tony van der Hoff  | mailto:t...@vanderhoff.org
Ariège, France |


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4dc7baa3.6080...@vanderhoff.org



Re: Disk Space Issues

2011-05-09 Thread Darac Marjal
On Mon, May 09, 2011 at 04:59:40AM -0400, Brad Alexander wrote:
Depends. Best case, you built your system using LVM and have reserved
space. You can check this using the df command. If your filesystems start
with /dev/mapper, then you are using LVM. You can check for free space
using the vgdisplay command (as root):
 
# vgdisplay
...Snip...
  Alloc PE / Size   96637 / 377.49 GiB
  Free  PE / Size   80065 / 312.75 GiB
 
The free PE/Size line shows you the available space. You could then extend
the filesystem that is having issues:
 
# lvextend -L+10G /dev/VG00/foo

You probably want to add '-r' to that command to resize the filesystem
on the device, or else you'll need to also run
resize2fs/resize_reiserfs/xfs_growfs as appropriate.



signature.asc
Description: Digital signature


Re: Disk Space Issues

2011-05-09 Thread Brad Alexander
Yeah, good idea. Answering questions at 5am before coffee is
contraindicated. :)

--b

On Mon, May 9, 2011 at 7:04 AM, Darac Marjal mailingl...@darac.org.ukwrote:

 On Mon, May 09, 2011 at 04:59:40AM -0400, Brad Alexander wrote:
 Depends. Best case, you built your system using LVM and have reserved
 space. You can check this using the df command. If your filesystems
 start
 with /dev/mapper, then you are using LVM. You can check for free space
 using the vgdisplay command (as root):
 
 # vgdisplay
 ...Snip...
   Alloc PE / Size   96637 / 377.49 GiB
   Free  PE / Size   80065 / 312.75 GiB
 
 The free PE/Size line shows you the available space. You could then
 extend
 the filesystem that is having issues:
 
 # lvextend -L+10G /dev/VG00/foo

 You probably want to add '-r' to that command to resize the filesystem
 on the device, or else you'll need to also run
 resize2fs/resize_reiserfs/xfs_growfs as appropriate.




Re: Disk Space Issues

2011-05-09 Thread Lisi
On Monday 09 May 2011 10:57:55 Tony van der Hoff wrote:
 On 09/05/11 10:48, Daniel Linux wrote:
  What you would do after you found a full filesystem? It is just a
  general question that was asked in my class of operating systems and
  nobody had an answer.

 This is the only full solution:
 sudo rm -rf /

:-)

You don't think that that solution might bring other, worse problems in on its 
tail?? ;-)

Lisi


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201105091456.27367.lisi.re...@gmail.com



Re: Disk Space Issues

2011-05-09 Thread godo

On 2011-05-09 10:48, Daniel Linux wrote:

What you would do after you found a full filesystem? It is just a
general question that was asked in my class of operating systems and
nobody had an answer.

Thanks,



Hi,
I'm not expert at all, but I will first check which directory is to large.
For example var can be to large because old logs or because something 
create them rapidly. That happens to me and kernel and sys log was ~6GB 
each!

Check tmp directory (system and user's); clean all garbage.

If everything is ok run to shop and by bigger hdd :-)

--
Bye,
Goran Dobosevic
Hrvatski: www.dobosevic.com
 English: www.dobosevic.com/en/
Registered Linux User #503414


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4dc80b0c.1020...@dobosevic.com



Re: Disk Space Issues

2011-05-09 Thread Gilles Mocellin
Le lundi 09 mai, Michiel Piscaer écrivit :

 Op 9-5-2011 10:48, Daniel Linux schreef:
 What you would do after you found a full filesystem? It is just a
 general question that was asked in my class of operating systems
 and nobody had an answer.
 
 Thanks,
 
 On Mon, May 9, 2011 at 4:43 AM, Tom Grace
 lists...@deathbycomputers.co.uk
 mailto:lists...@deathbycomputers.co.uk wrote:
 
 On 09/05/11 09:40, Daniel Linux wrote:
 
 Yes, I need generic steps. After running   df -h   I know what
 filesystem is almost full. What should I do?
 
 du -h /fullfilesystem is a good start, possibly with --max-depth
 to limit the output.
 
 
 With # du -h --max-depth=1 you can find what directory is taking all
 of the space. Next is take the right action, by emtying /  deleting
 the file, or moving the directory to an new disk.
[...]

Just to mention a useful ncurses tool to show and track space usage :
ncdu.



signature.asc
Description: Digital signature