Re: [zfs-discuss] Inconsistent df and du output ?

2008-09-22 Thread Ralf Ramge
Juris Krumins wrote:

 > lun.0 file, which is at least 20Gb big resides on /export/storage. Why
 > df shows only 4.9 GB ?

---
-bash-3.2# ls -la
total 4194871
drwxr-xr-x   2 root sys3 Sep 18 17:28 .
drwxr-xr-x   5 root root   8 Sep 18 17:44 ..
-rw---   1 root sys  2147483648 Sep 18 17:42 lun.0
---

Let's make the total file size a bit more human readable: 2,147,483,648 
byte.

That's 2 GB, not 20. Try `ls -alh`.

Concerning df:

---
-bash-3.2# df -h
Filesystem size   used  avail capacity  Mounted on
[...]
rpool/export65G   4.8G54G 9%/export
[...]
---

Looks good to me.

Or did I miss something and understood you wrong?

-- 

Ralf Ramge
Senior Solaris Administrator, SCNA, SCSA

Tel. +49-721-91374-3963
[EMAIL PROTECTED] - http://web.de/

1&1 Internet AG
Brauerstraße 48
76135 Karlsruhe

Amtsgericht Montabaur HRB 6484

Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas 
Gottschlich, Matthias Greve, Robert Hoffmann, Markus Huhn, Oliver Mauss, 
Achim Weiss
Aufsichtsratsvorsitzender: Michael Scheeren
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Inconsistent df and du output ?

2008-09-20 Thread Robert Milkowski
Hello Juris,

I haven't really look closely to your email but aren't you creating
sparse files?

-- 
Best regards,
 Robertmailto:[EMAIL PROTECTED]
   http://milek.blogspot.com

___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


[zfs-discuss] Inconsistent df and du output ?

2008-09-19 Thread Juris Krumins
Please, take a look at the following console log.
Maybe I don't understand something, but why /export mountpoint mark as
beeing used only  2.3 GB of space, while there are file, which are at
least 20Gb big ?.
As you cna see, there is no zfs compression turned on.
2.3 GB 
 

-bash-3.2# ls -la
total 29
drwxr-xr-x   4 root root   6 Sep 18 17:41 .
drwxr-xr-x   4 root root   4 Sep 17 19:43 ..
lrwxrwxrwx   1 root sys   82 Sep 18 17:28 gpxe02
-> 
/export/storage/iqn.1986-03.com.sun:02:eac3ecc0-054f-65eb-c268-d6a9593eb845.gpxe02
lrwxrwxrwx   1 root sys   82 Sep 18 17:41 gpxe03
-> 
/export/storage/iqn.1986-03.com.sun:02:b526945f-8964-48bc-fabd-be1b3ba4fa7a.gpxe03
drwxr-xr-x   2 root sys3 Sep 18 17:41
iqn.1986-03.com.sun:02:b526945f-8964-48bc-fabd-be1b3ba4fa7a.gpxe03
drwxr-xr-x   2 root sys3 Sep 18 17:28
iqn.1986-03.com.sun:02:eac3ecc0-054f-65eb-c268-d6a9593eb845.gpxe02
-bash-3.2# df -h
Filesystem size   used  avail capacity  Mounted on
rpool/ROOT/opensolaris-97
65G   4.2G57G 7%/
/devices 0K 0K 0K 0%/devices
/dev 0K 0K 0K 0%/dev
ctfs 0K 0K 0K 0%/system/contract
proc 0K 0K 0K 0%/proc
mnttab   0K 0K 0K 0%/etc/mnttab
swap   2.1G   308K   2.1G 1%/etc/svc/volatile
objfs0K 0K 0K 0%/system/object
sharefs  0K 0K 0K 0%/etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
61G   4.2G57G 7%/lib/libc.so.1
fd   0K 0K 0K 0%/dev/fd
swap   2.1G 4K   2.1G 1%/tmp
swap   2.1G60K   2.1G 1%/var/run
rpool/ROOT/opensolaris-97/opt
65G   3.6M57G 1%/opt
rpool/export65G   2.3G57G 4%/export
rpool/export/home   65G50M57G 1%/export/home
rpool   65G62K57G 1%/rpool
rpool/ROOT  65G18K57G 1%/rpool/ROOT
storage1.6T19K   1.6T 1%/storage
storage/test   1.6T20K   1.6T 1%/storage/test
-bash-3.2# ls -la
total 37
drwxr-xr-x   5 root root   8 Sep 18 17:44 .
drwxr-xr-x   4 root root   4 Sep 17 19:43 ..
lrwxrwxrwx   1 root sys   82 Sep 18 17:28 gpxe02
-> 
/export/storage/iqn.1986-03.com.sun:02:eac3ecc0-054f-65eb-c268-d6a9593eb845.gpxe02
lrwxrwxrwx   1 root sys   82 Sep 18 17:43 gpxe04
-> 
/export/storage/iqn.1986-03.com.sun:02:3795a8d8-ae3b-c506-b5c6-b60f45a8b5e4.gpxe04
lrwxrwxrwx   1 root sys   82 Sep 18 17:44 gpxe05
-> 
/export/storage/iqn.1986-03.com.sun:02:43419a0f-158b-4b0a-8aa0-b8984e5814d7.gpxe05
drwxr-xr-x   2 root sys3 Sep 18 17:43
iqn.1986-03.com.sun:02:3795a8d8-ae3b-c506-b5c6-b60f45a8b5e4.gpxe04
drwxr-xr-x   2 root sys3 Sep 18 17:44
iqn.1986-03.com.sun:02:43419a0f-158b-4b0a-8aa0-b8984e5814d7.gpxe05
drwxr-xr-x   2 root sys3 Sep 18 17:28
iqn.1986-03.com.sun:02:eac3ecc0-054f-65eb-c268-d6a9593eb845.gpxe02
-bash-3.2# cd gpxe05
-bash-3.2# ls -la
total 141629
drwxr-xr-x   2 root sys3 Sep 18 17:44 .
drwxr-xr-x   5 root root   8 Sep 18 17:44 ..
-rw---   1 root sys  21474836480 Sep 18 17:45 lun.0
-bash-3.2# cd ..
-bash-3.2# df -h
Filesystem size   used  avail capacity  Mounted on
rpool/ROOT/opensolaris-97
65G   4.2G57G 7%/
/devices 0K 0K 0K 0%/devices
/dev 0K 0K 0K 0%/dev
ctfs 0K 0K 0K 0%/system/contract
proc 0K 0K 0K 0%/proc
mnttab   0K 0K 0K 0%/etc/mnttab
swap   2.1G   308K   2.1G 1%/etc/svc/volatile
objfs0K 0K 0K 0%/system/object
sharefs  0K 0K 0K 0%/etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
61G   4.2G57G 7%/lib/libc.so.1
fd   0K 0K 0K 0%/dev/fd
swap   2.1G 4K   2.1G 1%/tmp
swap   2.1G60K   2.1G 1%/var/run
rpool/ROOT/opensolaris-97/opt
65G   3.6M57G 1%/opt
rpool/export65G   2.5G57G 5%/export
rpool/export/home   65G50M57G 1%/export/home
rpool   65G62K57G 1%/rpool
rpool/ROOT  65G18K57G 1%/rpool/ROOT
storage1.6T19K   1.6T 1%/storage
storage/test   1.6T20K   1.6T 1%/storage/test
-bash-3.2# sync
-bash-3.2