Hi, I'm doing the following actions on my solaris 10 system. Please let me know 
if zfs will do the following things: -

Question1: - Will zfs employ ordinary raid0 stripes while creating the file 
dust?

Question2: - Since most of my file /exp/dust1 (~74% = 1 - 400MB/1500MB) reside 
on /tank/mnt-pt/file4, will zfs employ stripes while creating this file?
================================================================
zpool create exp /tank/mnt-pt/file1 /tank/mnt-pt/file2 /tank/mnt-pt/file3
# df -h
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c0d0s0         15G   8.3G   6.4G    57%    /
/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.3G  1012K   2.3G     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap3.so.1
                        15G   8.3G   6.4G    57%    /lib/libc.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                   2.3G    44K   2.3G     1%    /tmp
swap                   2.3G    92K   2.3G     1%    /var/run
/dev/dsk/c0d0s4         15G    15M    15G     1%    /second_root
/dev/dsk/c0d0s7         32G   4.0G    28G    13%    /export/home
tank                    16G   5.9G    10G    37%    /tank
/dev/dsk/c2t1d0s2       17G   4.7G    12G    29%    /tank/mnt-pt
exp                    3.4G     1K   3.4G     1%    /exp

# zpool status
pool: exp
 state: ONLINE
 scrub: none requested
config:

        NAME                  STATE     READ WRITE CKSUM
        exp                   ONLINE       0     0     0
          /tank/mnt-pt/file1  ONLINE       0     0     0
          /tank/mnt-pt/file2  ONLINE       0     0     0
          /tank/mnt-pt/file3  ONLINE       0     0     0

# mkfile 3000m /exp/dust <=== Here I have eaten up 3 GB out of 3.4 GB available

Question1: - Will zfs employ ordinary raid0 stripes while creating the file 
dust?

# zpool add exp /tank/mnt-pt/file4 <== I'm adding another disk to the pool
# zpool status
pool: exp
 state: ONLINE
 scrub: none requested
config:

        NAME                  STATE     READ WRITE CKSUM
        exp                   ONLINE       0     0     0
          /tank/mnt-pt/file1  ONLINE       0     0     0
          /tank/mnt-pt/file2  ONLINE       0     0     0
          /tank/mnt-pt/file3  ONLINE       0     0     0
          /tank/mnt-pt/file4  ONLINE       0     0     0


# df -h
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c0d0s0         15G   8.3G   6.4G    57%    /
/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.3G  1012K   2.3G     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap3.so.1
                        15G   8.3G   6.4G    57%    /lib/libc.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                   2.3G    44K   2.3G     1%    /tmp
swap                   2.3G    92K   2.3G     1%    /var/run
/dev/dsk/c0d0s4         15G    15M    15G     1%    /second_root
/dev/dsk/c0d0s7         32G   4.0G    28G    13%    /export/home
tank                    16G   5.9G    10G    37%    /tank
/dev/dsk/c2t1d0s2       17G   4.7G    12G    29%    /tank/mnt-pt
exp                    4.6G   2.9G   1.7G    64%    /exp <=== Capacity 
increased to 4.6 GB

# mkfile 1500m /exp/dust1 <=== I add another file which to eat up more space
# df -h
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c0d0s0         15G   8.3G   6.4G    57%    /
/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.3G  1012K   2.3G     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap3.so.1
                        15G   8.3G   6.4G    57%    /lib/libc.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                   2.3G    44K   2.3G     1%    /tmp
swap                   2.3G    92K   2.3G     1%    /var/run
/dev/dsk/c0d0s4         15G    15M    15G     1%    /second_root
/dev/dsk/c0d0s7         32G   4.0G    28G    13%    /export/home
tank                    16G   5.9G    10G    37%    /tank
/dev/dsk/c2t1d0s2       17G   4.7G    12G    29%    /tank/mnt-pt
exp                    4.6G   4.4G   192M    96%    /exp <=== Now capacity used 
is 96%

Question2: - Since most of my file /exp/dust1 (~74% = 1 - 400MB/1500MB) reside 
on /tank/mnt-pt/file4, will zfs employ stripes while creating this file?


=========================================================================
 
 
This message posted from opensolaris.org
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to