Re: [CentOS] df

2019-05-23 Thread Paul Heinlein
On Thu, 23 May 2019, Stephen John Smoogen wrote: On Thu, 23 May 2019 at 16:43, Paul Heinlein wrote: On Thu, 23 May 2019, Stephen John Smoogen wrote: I might actually be able to have a workable answer: alias drf='/usr/bin/df -x tmpfs' /usr/bin/df \ -x autofs -x binfmt_misc -x cgroup

Re: [CentOS] df

2019-05-23 Thread Stephen John Smoogen
On Thu, 23 May 2019 at 16:43, Paul Heinlein wrote: > On Thu, 23 May 2019, Stephen John Smoogen wrote: > > > I might actually be able to have a workable answer: > > > > alias drf='/usr/bin/df -x tmpfs' > > /usr/bin/df \ >-x autofs -x binfmt_misc -x cgroup -x configfs -x debugfs \ >-x

Re: [CentOS] df

2019-05-23 Thread mark
Stephen John Smoogen wrote: > > On Thu, 23 May 2019 at 16:22, mark wrote: > > >> >> I *swear*, I may get aggravated enough to write a drh - d *real* h. >> Between C7, with all the /tmpfs, and this debian 18.04 that has a dozen >> /snap all showing up All I want it to display is physical

Re: [CentOS] df

2019-05-23 Thread Paul Heinlein
On Thu, 23 May 2019, Stephen John Smoogen wrote: I might actually be able to have a workable answer: alias drf='/usr/bin/df -x tmpfs' /usr/bin/df \ -x autofs -x binfmt_misc -x cgroup -x configfs -x debugfs \ -x devpts -x devtmpfs -x efivarfs -x hugetlbfs -x mqueue \ -x nfsd -x proc -x

Re: [CentOS] df

2019-05-23 Thread Stephen John Smoogen
I might actually be able to have a workable answer: alias drf='/usr/bin/df -x tmpfs' On Thu, 23 May 2019 at 16:22, mark wrote: > > I *swear*, I may get aggravated enough to write a drh - d *real* h. > Between C7, with all the /tmpfs, and this debian 18.04 that has a dozen > /snap all showing

[CentOS] df

2019-05-23 Thread mark
I *swear*, I may get aggravated enough to write a drh - d *real* h. Between C7, with all the /tmpfs, and this debian 18.04 that has a dozen /snap all showing up All I want it to display is physical drive partition space mark ___ CentOS

Re: [CentOS] df -h shows system at 100% used, but there is space left

2009-04-29 Thread Flaherty, Patrick
Has anyone seen output like this before? Notice on my /dev/md0 That it reports 100% used, but also 5.3 Gb available. What would cause this? # df -h FilesystemSize Used Avail Use% Mounted on /dev/sda2 71G 1.6G 66G 3% / /dev/sda1 99M 22M

Re: [CentOS] df -h shows system at 100% used, but there is space left

2009-04-29 Thread Tom Brown
Has anyone seen output like this before? Notice on my /dev/md0 That it reports 100% used, but also 5.3 Gb available. What would cause this? # df -h FilesystemSize Used Avail Use% Mounted on /dev/sda2 71G 1.6G 66G 3% / /dev/sda1 99M 22M

Re: [CentOS] df -h shows system at 100% used, but there is space left

2009-04-25 Thread Kai Schaetzl
Dnk wrote on Fri, 24 Apr 2009 10:04:38 -0700: What does that command do exactly? what about using man? Kai -- Kai Schätzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com ___ CentOS mailing list

Re: [CentOS] df -h shows system at 100% used, but there is space left

2009-04-25 Thread Dnk
On 25-Apr-09, at 1:31 PM, Kai Schaetzl mailli...@conactive.com wrote: Dnk wrote on Fri, 24 Apr 2009 10:04:38 -0700: What does that command do exactly? what about using man? Kai -- Been there, done that since I had gotten back to a Linux box. :-) I was out and about when I read

Re: [CentOS] df -h shows system at 100% used, but there is space left

2009-04-25 Thread Eric Sisolak
The amount shown under Avail does not include the reserve, even if it is set. If the reserve is used, then avail (and Use%) become a negative value. For example it might say -2.5GB Available. The Size does include the reserve however. I agree with Jake that this is due to it rounding 99.5%

[CentOS] df -h shows system at 100% used, but there is space left

2009-04-24 Thread dnk
Has anyone seen output like this before? Notice on my /dev/md0 That it reports 100% used, but also 5.3 Gb available. What would cause this? # df -h FilesystemSize Used Avail Use% Mounted on /dev/sda2 71G 1.6G 66G 3% / /dev/sda1 99M 22M 73M 23%

Re: [CentOS] df -h shows system at 100% used, but there is space left

2009-04-24 Thread Laurentiu Coica
On Fri, Apr 24, 2009 at 7:43 PM, dnk d.k.emailli...@gmail.com wrote: Has anyone seen output like this before? Notice on my /dev/md0 That it reports 100% used, but also 5.3 Gb available. What would cause this? Because when an ext2/3 file system is formated by default 5% is reserved for root Use

Re: [CentOS] df -h shows system at 100% used, but there is space left

2009-04-24 Thread Dnk
On 24-Apr-09, at 10:00 AM, Laurentiu Coica laurentiu.co...@gmail.com wrote: On Fri, Apr 24, 2009 at 7:43 PM, dnk d.k.emailli...@gmail.com wrote: Has anyone seen output like this before? Notice on my /dev/md0 That it reports 100% used, but also 5.3 Gb available. What would cause this?

Re: [CentOS] df -h shows system at 100% used, but there is space left

2009-04-24 Thread Jake
On Fri, Apr 24, 2009 at 12:43 PM, dnk d.k.emailli...@gmail.com wrote: Has anyone seen output like this before? Notice on my /dev/md0 That it reports 100% used, but also 5.3 Gb available. What would cause this? # df -h Filesystem            Size  Used Avail Use% Mounted on /dev/sda2        

Re: [CentOS] df -h shows system at 100% used, but there is space left

2009-04-24 Thread Robert Heller
At Fri, 24 Apr 2009 09:43:57 -0700 CentOS mailing list centos@centos.org wrote: Has anyone seen output like this before? Notice on my /dev/md0 That it reports 100% used, but also 5.3 Gb available. What would cause this? # df -h FilesystemSize Used Avail Use% Mounted on

Re: [CentOS] df to get total disk usage on all filesystems?

2008-08-14 Thread MHR
On Wed, Aug 13, 2008 at 8:56 PM, Lunix1618 [EMAIL PROTECTED] wrote: Hi, This is work well on my laptop that running Fedora 9 with no LVM but on CentOS 5.2 with LVM it cann't calculate the LVM volume, below is output of my system : [EMAIL PROTECTED] ~]# df -kPl Filesystem

Re: [CentOS] df to get total disk usage on all filesystems?

2008-08-14 Thread Stephen Harris
On Thu, Aug 14, 2008 at 01:12:58AM -0700, MHR wrote: On Wed, Aug 13, 2008 at 8:56 PM, Lunix1618 [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] ~]# df -kPl Filesystem 1024-blocks Used Available Capacity Mounted on /dev/mapper/VolGroup00-LogVol00 274405432 18584656 241656808

Re: [CentOS] df to get total disk usage on all filesystems?

2008-08-14 Thread Lunix1618
Stephen Harris wrote: And, remember, that the output of df might have changed in between times you ran df and you ran the awk command; there's only 7Mbytes difference. Did someone delete a 7Mbyte file? Send email? Finish a print job? Or... could be plenty of reasons for the used amount to go

Re: [CentOS] df to get total disk usage on all filesystems?

2008-08-14 Thread Stephen Harris
On Thu, Aug 14, 2008 at 09:34:35PM +0700, Lunix1618 wrote: Stephen Harris wrote: 18167 Mb used But the whole system used only 18 MB ? That's not true. *blink* That's 18167 Mbytes reported there (or 18Gbytes). Which is correct. -- rgds Stephen

Re: [CentOS] df to get total disk usage on all filesystems?

2008-08-14 Thread Lunix1618
Stephen Harris wrote: On Thu, Aug 14, 2008 at 01:12:58AM -0700, MHR wrote: On Wed, Aug 13, 2008 at 8:56 PM, Lunix1618 [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] ~]# df -kPl Filesystem 1024-blocks Used Available Capacity Mounted on /dev/mapper/VolGroup00-LogVol00 274405432

Re: [CentOS] df to get total disk usage on all filesystems?

2008-08-14 Thread MHR
On Thu, Aug 14, 2008 at 3:50 AM, Stephen Harris [EMAIL PROTECTED] wrote: On Thu, Aug 14, 2008 at 01:12:58AM -0700, MHR wrote: On Wed, Aug 13, 2008 at 8:56 PM, Lunix1618 [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] ~]# df -kPl Filesystem 1024-blocks Used Available Capacity Mounted

Re: [CentOS] df to get total disk usage on all filesystems?

2008-08-14 Thread Nifty Cluster Mitch
On Thu, Aug 14, 2008 at 10:09:23AM -0700, MHR wrote: On Thu, Aug 14, 2008 at 3:50 AM, Stephen Harris [EMAIL PROTECTED] wrote: On Thu, Aug 14, 2008 at 01:12:58AM -0700, MHR wrote: On Wed, Aug 13, 2008 at 8:56 PM, Lunix1618 [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] ~]# df -kPl Filesystem

Re: [CentOS] df to get total disk usage on all filesystems?

2008-08-14 Thread MHR
On Thu, Aug 14, 2008 at 2:36 PM, Nifty Cluster Mitch [EMAIL PROTECTED] wrote: $ cat /tmp/checkspace #!/bin/bash df -Pkl /tmp/checkingdiskspce echo -e \nInput is: cat /tmp/checkingdiskspce echo -e \nAdding up the bits cat /tmp/checkingdiskspce | awk '/^\/dev\// { used += $3/1024 } END {

Re: [CentOS] df to get total disk usage on all filesystems?

2008-08-14 Thread Nifty Cluster Mitch
On Thu, Aug 14, 2008 at 02:45:43PM -0700, MHR wrote: On Thu, Aug 14, 2008 at 2:36 PM, Nifty Cluster Mitch [EMAIL PROTECTED] wrote: $ cat /tmp/checkspace #!/bin/bash df -Pkl /tmp/checkingdiskspce echo -e \nInput is: cat /tmp/checkingdiskspce echo -e \nAdding up the bits cat

Re: [CentOS] df to get total disk usage on all filesystems?

2008-08-14 Thread nate
Nifty Cluster Mitch wrote: I did notice in this discussion that no one looked at inode counts. A filesystem might be full for want of an inode I cannot recall if ext[23] will allocate additional inodes dynamically like xfs will. ext3 doesn't(at least not by default). I had a system fill

Re: [CentOS] df to get total disk usage on all filesystems?

2008-08-14 Thread Stephen Harris
On Thu, Aug 14, 2008 at 03:23:24PM -0700, Nifty Cluster Mitch wrote: On Thu, Aug 14, 2008 at 02:45:43PM -0700, MHR wrote: On Thu, Aug 14, 2008 at 2:36 PM, Nifty Cluster Mitch $ cat /tmp/checkspace #!/bin/bash df -Pkl /tmp/checkingdiskspce echo -e \nInput is: cat

Re: [CentOS] df to get total disk usage on all filesystems?

2008-08-13 Thread Lunix1618
Stephen Harris wrote: On Mon, Aug 11, 2008 at 12:07:09PM -0700, Aleksey Tsalolikhin wrote: value. I suggest using the -P switch to df, so you don't have to deal with multi-line output per filesystem. Ugh, hasn't RedHat fixed that? Sun have (for a long time) automatically done this

[CentOS] df to get total disk usage on all filesystems?

2008-08-11 Thread Sean Carolan
Is there a flag for the df command to get the total disk space used on all filesystems as one number? I have a server with a lot of mounted shares. I'm looking for a simple way to measure rate of data growth across all shares as one total value. ___

Re: [CentOS] df to get total disk usage on all filesystems?

2008-08-11 Thread Stephen Harris
Is there a flag for the df command to get the total disk space used on all filesystems as one number? I have a server with a lot of mounted shares. I'm looking for a simple way to measure rate of data growth across all shares as one total value. Not directly, but you can add up all the

Re: [CentOS] df to get total disk usage on all filesystems?

2008-08-11 Thread Aleksey Tsalolikhin
Dear Sean, No, there isn't. You'd have to parse the df output to get that value. I suggest using the -P switch to df, so you don't have to deal with multi-line output per filesystem. The following will return kilobytes of disk space used (third column in the df -kP output): df -kP |grep

Re: [CentOS] df to get total disk usage on all filesystems?

2008-08-11 Thread Sean Carolan
df -kl | awk '/^\/dev\// { avail += $3/1024 } END { printf(%d Mb used\n,avail)} ' Awesome, this is going into my bag of goodies. Thanks! ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] df to get total disk usage on all filesystems?

2008-08-11 Thread Stephen Harris
On Mon, Aug 11, 2008 at 12:07:09PM -0700, Aleksey Tsalolikhin wrote: value. I suggest using the -P switch to df, so you don't have to deal with multi-line output per filesystem. Ugh, hasn't RedHat fixed that? Sun have (for a long time) automatically done this if stdout is not a terminal.

Re: [CentOS] df to get total disk usage on all filesystems?

2008-08-11 Thread Dirk H. Schulz
As long as you only want the absolute amount of data (not the percentage of total file space that is used) you could use du -sh / on that server. --On 11. August 2008 14:00:09 -0500 Sean Carolan [EMAIL PROTECTED] wrote: Is there a flag for the df command to get the total disk space used on

Re: [CentOS] df to get total disk usage on all filesystems?

2008-08-11 Thread Spiro Harvey, Knossos Networks Ltd
Sean Carolan wrote: Is there a flag for the df command to get the total disk space used on all filesystems as one number? I have a server with a lot of mounted shares. I'm looking for a simple way to measure rate of data growth across all shares as one total value. You've had a few replies

[CentOS] df command reports inaccurate results?

2008-07-23 Thread Sean Carolan
Can anyone help make sense of this? This is an ext3 partition. It's only showing 403GB out of 426GB used, but then it says only 632MB available? Where'd the extra ~25GB go? [EMAIL PROTECTED] df -H /disks/vrac5 Filesystem Size Used Avail Use% Mounted on /dev/sdb2

Re: [CentOS] df command reports inaccurate results?

2008-07-23 Thread Ralph Angenendt
Sean Carolan wrote: Can anyone help make sense of this? This is an ext3 partition. It's only showing 403GB out of 426GB used, but then it says only 632MB available? Where'd the extra ~25GB go? Those are the ~ 5% which are automatically reserved for root ... man tune2fs Ralph

Re: [CentOS] df command reports inaccurate results?

2008-07-23 Thread William L. Maltby
On Wed, 2008-07-23 at 15:09 +0200, Ralph Angenendt wrote: Sean Carolan wrote: Can anyone help make sense of this? This is an ext3 partition. It's only showing 403GB out of 426GB used, but then it says only 632MB available? Where'd the extra ~25GB go? Those are the ~ 5% which are

Re: [CentOS] df command reports inaccurate results?

2008-07-23 Thread Jens Larsson
Also, when making the file system, reducing the amount reserved for root is usually safe on today's larger drives, especially on a relatively stable system/user base/file/system usage. I gather this can't be done after creation? Kai Remember: You can tune a file system, but you can't

Re: [CentOS] df command reports inaccurate results?

2008-07-23 Thread William L. Maltby
On Wed, 2008-07-23 at 16:38 +0200, Jens Larsson wrote: Also, when making the file system, reducing the amount reserved for root is usually safe on today's larger drives, especially on a relatively stable system/user base/file/system usage. I gather this can't be done after

Re: [CentOS] df command reports inaccurate results?

2008-07-23 Thread Ralph Angenendt
Kai Schaetzl wrote: William L. Maltby wrote on Wed, 23 Jul 2008 09:26:21 -0400: Also, when making the file system, reducing the amount reserved for root is usually safe on today's larger drives, especially on a relatively stable system/user base/file/system usage. I gather this can't