Unix Technical Forum

Why do I see more disk space than I should?

This is a discussion on Why do I see more disk space than I should? within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> Hi all; I have an E450 running Solaris 2.8, not up to patch level for various reasons. I am ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > Sun Solaris Administration

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008, 11:32 AM
Joe D.
 
Posts: n/a
Default Why do I see more disk space than I should?

Hi all;

I have an E450 running Solaris 2.8, not up to patch level for various
reasons. I am attached via an Emulex HBA to a Network Appliance
storage array. I want to mount the disks as simple slices (Veritas
Volume Manager will not recognize the disks), and I am curious why I
see more space on the file system than I have allocated. Here's an
specific example:

1) created a 107GB LUN on the NetAPP filer
2) set the partition table on the device on the server for slice 0 to
be the whole thing:

Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 6443 106.98GB (6444/0/0)
224354304
1 unassigned wu 0 0
(0/0/0) 0
2 backup wu 0 - 6443 106.98GB (6444/0/0)
224354304
3 unassigned wm 0 0
(0/0/0) 0
4 unassigned wm 0 0
(0/0/0) 0
5 unassigned wm 0 0
(0/0/0) 0
6 unassigned wu 0 0
(0/0/0) 0
7 unassigned wm 0 0
(0/0/0) 0

3) make a new file system specifying 1% minfree:

[root@mcghosng:/] # newfs -m 1 /dev/rdsk/c6t500A098185C60EC2d25s0
newfs: construct a new file system /dev/rdsk/c6t500A098185C60EC2d25s0:
(y/n)? y
/dev/rdsk/c6t500A098185C60EC2d25s0: 224354304 sectors in 6444
cylinders of 16 tracks, 2176 sectors
109548.0MB in 2148 cyl groups (3 c/g, 51.00MB/g, 6208 i/g)

** Note that the geometry shows 109.5 GB in size? **

4) mount it up and check the space:
[root@mcghosng:/] # mount -F ufs /dev/dsk/c6t500A098185C60EC2d25s0 /
mnt

[root@mcghosng:/] # df -k /mnt
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c6t500A098185C60EC2d25s0
110475886 9 109371119 1% /mnt

As you can see, I have 110 GB of space as the size, of which 109 is
available. What gives here?

Any thoughts appreciated. I'm stumped/concerned

Thanks as always.....

Joe D.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-16-2008, 11:32 AM
j.goerke@mobilcom.de
 
Posts: n/a
Default Re: Why do I see more disk space than I should?

In comp.sys.sun.admin Joe D. <newbie_from_newbie@yahoo.com> wrote:
[KB vs MB vs GB]
> Any thoughts appreciated. I'm stumped/concerned


1024 KB = 1 MB
1024 MB = 1 GB
1048576 KB = 1024 MB = 1 GB

Jens
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-16-2008, 11:32 AM
Franco S.
 
Posts: n/a
Default Re: Why do I see more disk space than I should?

On Jun 21, 1:53 pm, "Joe D." <newbie_from_new...@yahoo.com> wrote:
> Hi all;
>
> I have an E450 running Solaris 2.8, not up to patch level for various
> reasons. I am attached via an Emulex HBA to a Network Appliance
> storage array. I want to mount the disks as simple slices (Veritas
> Volume Manager will not recognize the disks), and I am curious why I
> see more space on the file system than I have allocated. Here's an
> specific example:
>
> 1) created a 107GB LUN on the NetAPP filer
> 2) set the partition table on the device on the server for slice 0 to
> be the whole thing:
>
> Part Tag Flag Cylinders Size Blocks
> 0 root wm 0 - 6443 106.98GB (6444/0/0)
> 224354304
> 1 unassigned wu 0 0
> (0/0/0) 0
> 2 backup wu 0 - 6443 106.98GB (6444/0/0)
> 224354304
> 3 unassigned wm 0 0
> (0/0/0) 0
> 4 unassigned wm 0 0
> (0/0/0) 0
> 5 unassigned wm 0 0
> (0/0/0) 0
> 6 unassigned wu 0 0
> (0/0/0) 0
> 7 unassigned wm 0 0
> (0/0/0) 0
>
> 3) make a new file system specifying 1% minfree:
>
> [root@mcghosng:/] # newfs -m 1 /dev/rdsk/c6t500A098185C60EC2d25s0
> newfs: construct a new file system /dev/rdsk/c6t500A098185C60EC2d25s0:
> (y/n)? y
> /dev/rdsk/c6t500A098185C60EC2d25s0: 224354304 sectors in 6444
> cylinders of 16 tracks, 2176 sectors
> 109548.0MB in 2148 cyl groups (3 c/g, 51.00MB/g, 6208 i/g)
>
> ** Note that the geometry shows 109.5 GB in size? **
>
> 4) mount it up and check the space:
> [root@mcghosng:/] # mount -F ufs /dev/dsk/c6t500A098185C60EC2d25s0 /
> mnt
>
> [root@mcghosng:/] # df -k /mnt
> Filesystem kbytes used avail capacity Mounted on
> /dev/dsk/c6t500A098185C60EC2d25s0
> 110475886 9 109371119 1% /mnt
>
> As you can see, I have 110 GB of space as the size, of which 109 is
> available. What gives here?
>
> Any thoughts appreciated. I'm stumped/concerned
>
> Thanks as always.....
>
> Joe D.


df -h /mnt

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-16-2008, 11:32 AM
Thomas H Jones II
 
Posts: n/a
Default Re: Why do I see more disk space than I should?

In article <1182430411.424408.264410@m36g2000hse.googlegroups .com>,
Joe D. <newbie_from_newbie@yahoo.com> wrote:
>Hi all;
>
>I have an E450 running Solaris 2.8, not up to patch level for various
>reasons. I am attached via an Emulex HBA to a Network Appliance
>storage array. I want to mount the disks as simple slices (Veritas
>Volume Manager will not recognize the disks), and I am curious why I
>see more space on the file system than I have allocated. Here's an
>specific example:
>
>1) created a 107GB LUN on the NetAPP filer
>2) set the partition table on the device on the server for slice 0 to
>be the whole thing:
>
>Part Tag Flag Cylinders Size Blocks
> 0 root wm 0 - 6443 106.98GB (6444/0/0)
>224354304
> 1 unassigned wu 0 0
>(0/0/0) 0
> 2 backup wu 0 - 6443 106.98GB (6444/0/0)
>224354304
> 3 unassigned wm 0 0
>(0/0/0) 0
> 4 unassigned wm 0 0
>(0/0/0) 0
> 5 unassigned wm 0 0
>(0/0/0) 0
> 6 unassigned wu 0 0
>(0/0/0) 0
> 7 unassigned wm 0 0
>(0/0/0) 0
>
>3) make a new file system specifying 1% minfree:
>
>[root@mcghosng:/] # newfs -m 1 /dev/rdsk/c6t500A098185C60EC2d25s0
>newfs: construct a new file system /dev/rdsk/c6t500A098185C60EC2d25s0:
>(y/n)? y
>/dev/rdsk/c6t500A098185C60EC2d25s0: 224354304 sectors in 6444
>cylinders of 16 tracks, 2176 sectors
> 109548.0MB in 2148 cyl groups (3 c/g, 51.00MB/g, 6208 i/g)
>
>** Note that the geometry shows 109.5 GB in size? **
>
>4) mount it up and check the space:
>[root@mcghosng:/] # mount -F ufs /dev/dsk/c6t500A098185C60EC2d25s0 /
>mnt
>
>[root@mcghosng:/] # df -k /mnt
>Filesystem kbytes used avail capacity Mounted on
>/dev/dsk/c6t500A098185C60EC2d25s0
> 110475886 9 109371119 1% /mnt
>
>As you can see, I have 110 GB of space as the size, of which 109 is
>available. What gives here?
>
>Any thoughts appreciated. I'm stumped/concerned


110475886KB / 1024 / 1024 = 105.358GB

-tom
--

"You can only be -so- accurate with a claw-hammer." --me
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-16-2008, 11:32 AM
Thomas H Jones II
 
Posts: n/a
Default Re: Why do I see more disk space than I should?

In article <1182431287.064513.54970@q69g2000hsb.googlegroups. com>,
Franco S. <franco_spencer@yahoo.com> wrote:
>On Jun 21, 1:53 pm, "Joe D." <newbie_from_new...@yahoo.com> wrote:
>> Hi all;
>>
>> I have an E450 running Solaris 2.8, not up to patch level for various
>> reasons.

>
>df -h /mnt


Didn't thing "-h" was added to `df` until Solaris 9?

-tom
--

"You can only be -so- accurate with a claw-hammer." --me
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-16-2008, 11:32 AM
Joe D.
 
Posts: n/a
Default Re: Why do I see more disk space than I should?

D'OH! Thanks, all; I didn't do the math until after I sent the post
(obviously)!

No coffee yet : )

Sorry for wasting your time; many thanks again. Hope at least you'll
get half a laff from it with your colleagues. "You won't believe
what some bozo posted to the group this morning..."

Joe D.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-16-2008, 11:32 AM
Richard B. Gilbert
 
Posts: n/a
Default Re: Why do I see more disk space than I should?

Joe D. wrote:
> Hi all;
>
> I have an E450 running Solaris 2.8, not up to patch level for various
> reasons. I am attached via an Emulex HBA to a Network Appliance
> storage array. I want to mount the disks as simple slices (Veritas
> Volume Manager will not recognize the disks), and I am curious why I
> see more space on the file system than I have allocated. Here's an
> specific example:
>
> 1) created a 107GB LUN on the NetAPP filer
> 2) set the partition table on the device on the server for slice 0 to
> be the whole thing:
>
> Part Tag Flag Cylinders Size Blocks
> 0 root wm 0 - 6443 106.98GB (6444/0/0)
> 224354304
> 1 unassigned wu 0 0
> (0/0/0) 0
> 2 backup wu 0 - 6443 106.98GB (6444/0/0)
> 224354304
> 3 unassigned wm 0 0
> (0/0/0) 0
> 4 unassigned wm 0 0
> (0/0/0) 0
> 5 unassigned wm 0 0
> (0/0/0) 0
> 6 unassigned wu 0 0
> (0/0/0) 0
> 7 unassigned wm 0 0
> (0/0/0) 0
>
> 3) make a new file system specifying 1% minfree:
>
> [root@mcghosng:/] # newfs -m 1 /dev/rdsk/c6t500A098185C60EC2d25s0
> newfs: construct a new file system /dev/rdsk/c6t500A098185C60EC2d25s0:
> (y/n)? y
> /dev/rdsk/c6t500A098185C60EC2d25s0: 224354304 sectors in 6444
> cylinders of 16 tracks, 2176 sectors
> 109548.0MB in 2148 cyl groups (3 c/g, 51.00MB/g, 6208 i/g)
>
> ** Note that the geometry shows 109.5 GB in size? **
>
> 4) mount it up and check the space:
> [root@mcghosng:/] # mount -F ufs /dev/dsk/c6t500A098185C60EC2d25s0 /
> mnt
>
> [root@mcghosng:/] # df -k /mnt
> Filesystem kbytes used avail capacity Mounted on
> /dev/dsk/c6t500A098185C60EC2d25s0
> 110475886 9 109371119 1% /mnt
>
> As you can see, I have 110 GB of space as the size, of which 109 is
> available. What gives here?
>
> Any thoughts appreciated. I'm stumped/concerned
>
> Thanks as always.....
>
> Joe D.
>


A file system, even an empty file system, occupies disk space. Every
file the file system will support will require at least one inode. Each
and every inode occupies some modest amount of disk space. If I ever
knew exactly how much, I have long since forgotten. So that's where
your space has gone. Research into the internal workings of a UFS file
system is left as an exercise for the student!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-16-2008, 11:32 AM
Franco S.
 
Posts: n/a
Default Re: Why do I see more disk space than I should?

On Jun 21, 2:10 pm, fer...@xanthia.com (Thomas H Jones II) wrote:
> In article <1182431287.064513.54...@q69g2000hsb.googlegroups. com>,
>
> Franco S. <franco_spen...@yahoo.com> wrote:
> >On Jun 21, 1:53 pm, "Joe D." <newbie_from_new...@yahoo.com> wrote:
> >> Hi all;

>
> >> I have an E450 running Solaris 2.8, not up to patch level for various
> >> reasons.

>
> >df -h /mnt

>
> Didn't thing "-h" was added to `df` until Solaris 9?
>
> -tom
> --
>
> "You can only be -so- accurate with a claw-hammer." --me


Oops, should of "read" the OP instead of "scanning" it

:-Z

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-16-2008, 11:32 AM
Kjetil Torgrim Homme
 
Posts: n/a
Default Re: Why do I see more disk space than I should?

[j.goerke@mobilcom.de]:
>
> 1024 KB = 1 MB
> 1024 MB = 1 GB
> 1048576 KB = 1024 MB = 1 GB


please get your units right. there is no such thing as "KB", it's
either kB (1000 bytes) or KiB (1024 bytes).

1024 B = 1 KiB
1024 KiB = 1 MiB
1048576 KiB = 1 GiB

1000 B = 1 kB
1000 kB = 1 MB
1000000 kB = 1 GB

--
Kjetil T.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 01-16-2008, 11:32 AM
Richard B. Gilbert
 
Posts: n/a
Default Re: Why do I see more disk space than I should?

Kjetil Torgrim Homme wrote:
> [j.goerke@mobilcom.de]:
>
>> 1024 KB = 1 MB
>> 1024 MB = 1 GB
>> 1048576 KB = 1024 MB = 1 GB

>
>
> please get your units right. there is no such thing as "KB", it's
> either kB (1000 bytes) or KiB (1024 bytes).
>
> 1024 B = 1 KiB
> 1024 KiB = 1 MiB
> 1048576 KiB = 1 GiB
>
> 1000 B = 1 kB
> 1000 kB = 1 MB
> 1000000 kB = 1 GB
>


This convention if, in fact, it is a convention, is a new one to me.
Perhaps I've been doing it wrong for the last forty years?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:18 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com