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     sys            3 Sep 18 17:41
iqn.1986-03.com.sun:02:b526945f-8964-48bc-fabd-be1b3ba4fa7a.gpxe03
drwxr-xr-x   2 root     sys            3 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.2G    57G     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
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
                        61G   4.2G    57G     7%    /lib/libc.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                   2.1G     4K   2.1G     1%    /tmp
swap                   2.1G    60K   2.1G     1%    /var/run
rpool/ROOT/opensolaris-97/opt
                        65G   3.6M    57G     1%    /opt
rpool/export            65G   2.3G    57G     4%    /export
rpool/export/home       65G    50M    57G     1%    /export/home
rpool                   65G    62K    57G     1%    /rpool
rpool/ROOT              65G    18K    57G     1%    /rpool/ROOT
storage                1.6T    19K   1.6T     1%    /storage
storage/test           1.6T    20K   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     sys            3 Sep 18 17:43
iqn.1986-03.com.sun:02:3795a8d8-ae3b-c506-b5c6-b60f45a8b5e4.gpxe04
drwxr-xr-x   2 root     sys            3 Sep 18 17:44
iqn.1986-03.com.sun:02:43419a0f-158b-4b0a-8aa0-b8984e5814d7.gpxe05
drwxr-xr-x   2 root     sys            3 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     sys            3 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.2G    57G     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
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
                        61G   4.2G    57G     7%    /lib/libc.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                   2.1G     4K   2.1G     1%    /tmp
swap                   2.1G    60K   2.1G     1%    /var/run
rpool/ROOT/opensolaris-97/opt
                        65G   3.6M    57G     1%    /opt
rpool/export            65G   2.5G    57G     5%    /export
rpool/export/home       65G    50M    57G     1%    /export/home
rpool                   65G    62K    57G     1%    /rpool
rpool/ROOT              65G    18K    57G     1%    /rpool/ROOT
storage                1.6T    19K   1.6T     1%    /storage
storage/test           1.6T    20K   1.6T     1%    /storage/test
-bash-3.2# sync
-bash-3.2# df -h
Filesystem             size   used  avail capacity  Mounted on
rpool/ROOT/opensolaris-97
                        65G   4.2G    56G     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
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
                        60G   4.2G    56G     7%    /lib/libc.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                   2.1G     4K   2.1G     1%    /tmp
swap                   2.1G    60K   2.1G     1%    /var/run
rpool/ROOT/opensolaris-97/opt
                        65G   3.6M    56G     1%    /opt
rpool/export            65G   2.9G    56G     5%    /export
rpool/export/home       65G    50M    56G     1%    /export/home
rpool                   65G    62K    56G     1%    /rpool
rpool/ROOT              65G    18K    56G     1%    /rpool/ROOT
storage                1.6T    19K   1.6T     1%    /storage
storage/test           1.6T    20K   1.6T     1%    /storage/test
-bash-3.2# df -h| grep /export
rpool/export            65G   2.9G    56G     5%    /export
rpool/export/home       65G    50M    56G     1%    /export/home
-bash-3.2# ls -la gpxe05
lrwxrwxrwx   1 root     sys           82 Sep 18 17:44 gpxe05
-> 
/export/storage/iqn.1986-03.com.sun:02:43419a0f-158b-4b0a-8aa0-b8984e5814d7.gpxe05
-bash-3.2# ls -la gpxe05/
total 1049005
drwxr-xr-x   2 root     sys            3 Sep 18 17:44 .
drwxr-xr-x   5 root     root           8 Sep 18 17:44 ..
-rw-------   1 root     sys      21474836480 Sep 18 17:46 lun.0
-bash-3.2# df -h
Filesystem             size   used  avail capacity  Mounted on
rpool/ROOT/opensolaris-97
                        65G   4.2G    55G     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
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
                        59G   4.2G    55G     7%    /lib/libc.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                   2.1G     4K   2.1G     1%    /tmp
swap                   2.1G    60K   2.1G     1%    /var/run
rpool/ROOT/opensolaris-97/opt
                        65G   3.6M    55G     1%    /opt
rpool/export            65G   3.7G    55G     7%    /export
rpool/export/home       65G    50M    55G     1%    /export/home
rpool                   65G    62K    55G     1%    /rpool
rpool/ROOT              65G    18K    55G     1%    /rpool/ROOT
storage                1.6T    19K   1.6T     1%    /storage
storage/test           1.6T    20K   1.6T     1%    /storage/test
-bash-3.2# pwd
/export/storage
-bash-3.2# du -hs *
   1K   gpxe02
   1K   gpxe04
   1K   gpxe05
 1.0G
iqn.1986-03.com.sun:02:3795a8d8-ae3b-c506-b5c6-b60f45a8b5e4.gpxe04
 716M
iqn.1986-03.com.sun:02:43419a0f-158b-4b0a-8aa0-b8984e5814d7.gpxe05
 2.0G
iqn.1986-03.com.sun:02:eac3ecc0-054f-65eb-c268-d6a9593eb845.gpxe02
-bash-3.2# du -hs ./
 4.1G   .
-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     sys            3 Sep 18 17:43
iqn.1986-03.com.sun:02:3795a8d8-ae3b-c506-b5c6-b60f45a8b5e4.gpxe04
drwxr-xr-x   2 root     sys            3 Sep 18 17:44
iqn.1986-03.com.sun:02:43419a0f-158b-4b0a-8aa0-b8984e5814d7.gpxe05
drwxr-xr-x   2 root     sys            3 Sep 18 17:28
iqn.1986-03.com.sun:02:eac3ecc0-054f-65eb-c268-d6a9593eb845.gpxe02
-bash-3.2# cd /export/storage/iqn.1986-03.com.sun\:02\:
iqn.1986-03.com.sun:02:3795a8d8-ae3b-c506-b5c6-b60f45a8b5e4.gpxe04/
iqn.1986-03.com.sun:02:43419a0f-158b-4b0a-8aa0-b8984e5814d7.gpxe05/
iqn.1986-03.com.sun:02:eac3ecc0-054f-65eb-c268-d6a9593eb845.gpxe02/
6a9593eb845.gpxe02/rt/storage/iqn.1986-03.com.sun\:02
\:eac3ecc0-054f-65eb-c2
68-d6

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     sys            3 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
-bash-3.2# pwd
/export/storage/iqn.1986-03.com.sun:02:eac3ecc0-054f-65eb-c268-d6a9593eb845.gpxe02
pxe04/3.2# cd
../iqn.1986-03.com.sun\:02\:3795a8d8-ae3b-c506-b5c6-b60f45a8b5e4.gp
-bash-3.2# ls -la
total 2714247
drwxr-xr-x   2 root     sys            3 Sep 18 17:43 .
drwxr-xr-x   5 root     root           8 Sep 18 17:44 ..
-rw-------   1 root     sys      21474836480 Sep 18 17:48 lun.0
-bash-3.2# pwd
/export/storage/iqn.1986-03.com.sun:02:3795a8d8-ae3b-c506-b5c6-b60f45a8b5e4.gpxe04
-bash-3.2# df -h
Filesystem             size   used  avail capacity  Mounted on
rpool/ROOT/opensolaris-97
                        65G   4.2G    54G     8%    /
/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
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
                        58G   4.2G    54G     8%    /lib/libc.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                   2.1G     4K   2.1G     1%    /tmp
swap                   2.1G    60K   2.1G     1%    /var/run
rpool/ROOT/opensolaris-97/opt
                        65G   3.6M    54G     1%    /opt
rpool/export            65G   4.8G    54G     9%    /export
rpool/export/home       65G    50M    54G     1%    /export/home
rpool                   65G    62K    54G     1%    /rpool
rpool/ROOT              65G    18K    54G     1%    /rpool/ROOT
storage                1.6T    19K   1.6T     1%    /storage
storage/test           1.6T    20K   1.6T     1%    /storage/test
-bash-3.2# zfs get all rpool/export
NAME          PROPERTY         VALUE                  SOURCE
rpool/export  type             filesystem             -
rpool/export  creation         Tue Sep 16 11:46 2008  -
rpool/export  used             5.27G                  -
rpool/export  available        53.8G                  -
rpool/export  referenced       5.22G                  -
rpool/export  compressratio    1.00x                  -
rpool/export  mounted          yes                    -
rpool/export  quota            none                   default
rpool/export  reservation      none                   default
rpool/export  recordsize       128K                   default
rpool/export  mountpoint       /export                local
rpool/export  sharenfs         off                    default
rpool/export  checksum         on                     default
rpool/export  compression      off                    default
rpool/export  atime            on                     default
rpool/export  devices          on                     default
rpool/export  exec             on                     default
rpool/export  setuid           on                     default
rpool/export  readonly         off                    default
rpool/export  zoned            off                    default
rpool/export  snapdir          hidden                 default
rpool/export  aclmode          groupmask              default
rpool/export  aclinherit       restricted             default
rpool/export  canmount         on                     default
rpool/export  shareiscsi       off                    default
rpool/export  xattr            on                     default
rpool/export  copies           1                      default
rpool/export  version          3                      -
rpool/export  utf8only         off                    -
rpool/export  normalization    none                   -
rpool/export  casesensitivity  sensitive              -
rpool/export  vscan            off                    default
rpool/export  nbmand           off                    default
rpool/export  sharesmb         off                    default
rpool/export  refquota         none                   default
rpool/export  refreservation   none                   default
rpool/export  primarycache     all                    default
rpool/export  secondarycache   all                    default
-bash-3.2# zfs get all rpool/export| grep comp
rpool/export  compressratio    1.00x                  -
rpool/export  compression      off                    default


Big files have been removed.

-bash-3.2# df -h
Filesystem             size   used  avail capacity  Mounted on
rpool/ROOT/opensolaris-97
                        65G   4.2G    59G     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
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
                        63G   4.2G    59G     7%    /lib/libc.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                   2.1G     4K   2.1G     1%    /tmp
swap                   2.1G    60K   2.1G     1%    /var/run
rpool/ROOT/opensolaris-97/opt
                        65G   3.6M    59G     1%    /opt
rpool/export            65G   289M    59G     1%    /export
rpool/export/home       65G    50M    59G     1%    /export/home
rpool                   65G    62K    59G     1%    /rpool
rpool/ROOT              65G    18K    59G     1%    /rpool/ROOT
storage                1.6T    19K   1.6T     1%    /storage
storage/test           1.6T    20K   1.6T     1%    /storage/test
-bash-3.2# cd /export/storage/
-bash-3.2# du -hs /export/storage
 289M   /export/storage
-bash-3.2# df -h
Filesystem             size   used  avail capacity  Mounted on
rpool/ROOT/opensolaris-97
                        65G   4.2G    59G     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
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
                        63G   4.2G    59G     7%    /lib/libc.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                   2.1G     4K   2.1G     1%    /tmp
swap                   2.1G    60K   2.1G     1%    /var/run
rpool/ROOT/opensolaris-97/opt
                        65G   3.6M    59G     1%    /opt
rpool/export            65G   492M    59G     1%    /export
rpool/export/home       65G    50M    59G     1%    /export/home
rpool                   65G    62K    59G     1%    /rpool
rpool/ROOT              65G    18K    59G     1%    /rpool/ROOT
storage                1.6T    19K   1.6T     1%    /storage
storage/test           1.6T    20K   1.6T     1%    /storage/test

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

Reply via email to