Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Disk Space 4.0d
@ 1999-09-28  4:00 HxMan
  1999-09-29  4:00 ` Keith Moodie
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: HxMan @ 1999-09-28  4:00 UTC (permalink / raw)


We are starting to run low on disk space on our 2100 server.... We do
have a RAID pedistal with 2.1 gig drives....... I would like to know
if there is any way to find out what file systems expands what
disks.... Also the command df -k 
Filesystem  1024-blocks        Used   Available Capacity  Mounted on
/dev/re1c      12192746     9401811     1571660    86%    /data

So to figure out megabytes I divide by 1024?????

So what does the above translate to......

Thanks



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Disk Space 4.0d
  1999-09-28  4:00 Disk Space 4.0d HxMan
@ 1999-09-29  4:00 ` Keith Moodie
  1999-09-29  4:00 ` Ed Wensell III aka THE StormRaiser
  1999-10-03  4:00 ` Marco Benton
  2 siblings, 0 replies; 4+ messages in thread
From: Keith Moodie @ 1999-09-29  4:00 UTC (permalink / raw)


Hi,
You may like to try the script below it gives output like

> free

Wed Sep 29 09:29:10 EST 1999
Filesystem       GB      Free   Used%
/                 177        79     51%                         rz18a
/v1             2.603     1.190     50%                         rz16h
/v2            33.918     3.684     90%                        viper1
/usr            7.566     0.914     88%                          usr0
/dev/fd             0         0    100%                            fd


#!/bin/sh
#
# free  display disk space in GB and free space
#

echo ""
date
df -ikn | nawk '

/tmp_mnt/ { next}
/\/proc/ { next}

{
if ( substr($0,1,4) == "File")
{print "Filesystem       GB      Free   Used%"}
else
    {
    fsys = $1;
    tot  = $2/1024;
    used = $3/1024;
    free = $4/1024;
    if ( tot > 1024 )
    {
        # > 1 GB print like "  1.123"
        tot   = sprintf( "%7.3f", tot / 1024.0);
        used  = sprintf( "%7.3f", used / 1024.0);
        free  = sprintf( "%7.3f", free / 1024.0);
    }
    else
    {
        # < 1 GB print like "    123"
        tot    = sprintf( "%7d", tot);
        used   = sprintf( "%7d", used);
        free   = sprintf( "%7d", free);
    }
    cap  = $5;
    iusd = $6;
    ifre = $7;
    icap = $8;
    mnt  = $9;
    imsg = ""
    if ( match ( icap, "[5-9][0-9]") > 0) imsg = "Inodes " icap;
    f_sys = fsys;
    gsub( "/dev/", "", f_sys);
    gsub( "usr0#", "", f_sys);    #pretty up the names of ADVFS domains
    gsub( "viper1#", "", f_sys);
    gsub( "viper2#", "", f_sys);
    gsub( "viper3#", "", f_sys);
    gsub( "viper4#", "", f_sys);
    gsub( "elite#", "", f_sys);
    #printf ( "%-12s  %6.3f %6d   %6s    %s\n", mnt, tot, free, cap,
imsg);
    printf ( "%-12s  %s   %s  %6s    %15s %10s\n", mnt, tot, free, cap,
imsg, f_sys);
    }
}
END{ print "" }
'

# End of script


HxMan wrote:
> 
> We are starting to run low on disk space on our 2100 server.... We do
> have a RAID pedistal with 2.1 gig drives....... I would like to know
> if there is any way to find out what file systems expands what
> disks.... Also the command df -k
> Filesystem  1024-blocks        Used   Available Capacity  Mounted on
> /dev/re1c      12192746     9401811     1571660    86%    /data
> 
> So to figure out megabytes I divide by 1024?????
> 
> So what does the above translate to......
> 
> Thanks

-- 

Keith Moodie
moodiek@dnr.qld.gov.au



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Disk Space 4.0d
  1999-09-28  4:00 Disk Space 4.0d HxMan
  1999-09-29  4:00 ` Keith Moodie
@ 1999-09-29  4:00 ` Ed Wensell III aka THE StormRaiser
  1999-10-03  4:00 ` Marco Benton
  2 siblings, 0 replies; 4+ messages in thread
From: Ed Wensell III aka THE StormRaiser @ 1999-09-29  4:00 UTC (permalink / raw)


HxMan wrote:
> 
> We are starting to run low on disk space on our 2100 server.... We do
> have a RAID pedistal with 2.1 gig drives....... I would like to know
> if there is any way to find out what file systems expands what
> disks.... 

This is not an expert answer. Accept any corrections from more
experienced people. With that said...

As far as file systems go, LSM and AdvFS are both capable of spanning
disks and can be enlarged while online/mounted. Both are software
solutions available on D/T64 UNIX 4.0B (A??). Both also require
additional licensing to get them to do any real work. AdvFS only
provides disk spanning and mirroring, whereas LSM provides (somewhat)
true RAID and striping capabilities. Both will also take a little of
your CPU and memory to do their thing. The additional AdvFS licenses are
on the CSLG if you are an educational type.

You state you have a "RAID pedestal". Is this RAID pedestal connected to
a RAID controller? If so, you should be able to use the controller to
adjust the size and types of volumes on the pedestal. Then it is up to
the RAID controller to manage the volumes and the drives, not the
operating system. All the operating system sees are device names
representing the volumes. If you have it, read the documentaion for your
hardware. If not, most documentation can be found online.

> Also the command df -k
> Filesystem  1024-blocks        Used   Available Capacity  Mounted on
> /dev/re1c      12192746     9401811     1571660    86%    /data
> 
> So to figure out megabytes I divide by 1024?????

Pretty much. The numbers displayed by df -k are binary kilobytes (1024
byte blocks). There is a faster way of figuring out the numbers though.
 
> So what does the above translate to......

Well, you can do the math (~ = approx):

	12192746 KB/1024 = ~11906 MB/1024 = ~11 GB (total)
	9401811 KB/1024 = ~9181 MB/1024 = ~8.9 GB (in use)
	1571660 KB/1024 = ~1534 MB/1024 = ~1.4 GB (free)

The "faster" way is to just use "marketing" kilobytes:

		GGG,MMM,KKK
		 12,192,746
		  9,401,811
		  1,571,660

		G = Gigabytes (1000 Megs)
		M = Megabytes (1000 Kilos)
		K = Kilobytes (1000 Bytes)

So 12,192,746 can be figured quickly as approximately 12GB. 1,571,660 is
quickly estimated as 1.5GB. If you want to use the default df, which
displays numbers in 512 byte blocks, divide the numbers by two and apply
to the template. Here's a snippet from my system:

Filesystem   512-blocks        Used   Available Capacity  Mounted on
/dev/rz1c       8042248     3677192     3560830    51%    /u1

8,042,248 divided by 2 is 4,021,128, which means the total size of the
disk is around 4GB. There's about 1.8GB in use, and about 1.7GB left. 

If all else fails, simply leave the numbers alone and refer to them as
"blocks". No matter how they are displayed, having an "Available" of 0
and/or a "Capacity" of 110% is always a bad thing. When dealing with
filesystems that contain many many many small files (like a Usenet spool
or E-mail store), make sure to also keep an eye on your inodes (df -i).
 
> Thanks

Hope it helps... Regardless of how VMS... er... verbose it is.

-- 

Until soon...
Ed Wensell III
Systems and Operations Support, Pellissippi State
E-mail hint: A college with a dot net domain?



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Disk Space 4.0d
  1999-09-28  4:00 Disk Space 4.0d HxMan
  1999-09-29  4:00 ` Keith Moodie
  1999-09-29  4:00 ` Ed Wensell III aka THE StormRaiser
@ 1999-10-03  4:00 ` Marco Benton
  2 siblings, 0 replies; 4+ messages in thread
From: Marco Benton @ 1999-10-03  4:00 UTC (permalink / raw)


this is a RAID pedestal?  "re" devices are usually SWXCR/KZPSC based
internal RAID controllers. so there must be a few BA35x cabs hanging off
it...

your output looks like you're using UFS.  so you are pretty much stuck!
AdvFS will allow you to expand volumes on the fly (except root).  you might
have to use LSM to bind some volumes together to get more space.  but that
requires a license (NET-SUPP-xxx or LSM-xx).

if you have the latest firmware for the SWXCR/KZPSC-AC you can bind 2 RAID
sets together...  i can't remember exactly which model does that.

you're correct in your calculation to figure out GB from 1024K bytes.  so
you have roughly 1.5 GB free on the partition.

HxMan <hx_101@hotmail.com> wrote in message
news:37f51547.84822970@news.dal.ca...
> We are starting to run low on disk space on our 2100 server.... We do
> have a RAID pedistal with 2.1 gig drives....... I would like to know
> if there is any way to find out what file systems expands what
> disks.... Also the command df -k
> Filesystem  1024-blocks        Used   Available Capacity  Mounted on
> /dev/re1c      12192746     9401811     1571660    86%    /data
>
> So to figure out megabytes I divide by 1024?????
>
> So what does the above translate to......
>
> Thanks





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1999-10-03  4:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-09-28  4:00 Disk Space 4.0d HxMan
1999-09-29  4:00 ` Keith Moodie
1999-09-29  4:00 ` Ed Wensell III aka THE StormRaiser
1999-10-03  4:00 ` Marco Benton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox