FrontPage

g7# df -h
Filesystem          Size    Used   Avail Capacity  Mounted on
zfspool/root        220G    6.5G    213G     3%    /
devfs               1.0k    1.0k      0B   100%    /dev
tank                456G     40k    456G     0%    /tank
zfspool/root/tmp    213G     62k    213G     0%    /tmp
zfspool/root/var    214G    222M    213G     0%    /var
devfs               1.0k    1.0k      0B   100%    /var/named/dev
g7# zpool create tank raidz ada1 ada2 ada3
invalid vdev specification
use '-f' to override the following errors:
/dev/ada1 is part of active pool 'tank'
g7#
g7#
g7# zpool create tank raidz ada1 ada2 ada3
invalid vdev specification
use '-f' to override the following errors:
/dev/ada1 is part of active pool 'tank'
g7#
g7#
g7#
g7# zpool create -f tank raidz ada1 ada2 ada3
invalid vdev specification
the following errors must be manually repaired:
/dev/ada1 is part of active pool 'tank'
g7#
g7#
g7# zpool
missing command
usage: zpool command args ...
where 'command' is one of the following:
        create [-fn] [-o property=value] ...
            [-O file-system-property=value] ...
            [-m mountpoint] [-R root] <pool> <vdev> ...
        destroy [-f] <pool>
        add [-fn] <pool> <vdev> ...
        remove <pool> <device> ...
        labelclear [-f] <vdev>
        list [-H] [-o property[,...]] [-T d|u] [pool] ... [interval [count]]
        iostat [-v] [-T d|u] [pool] ... [interval [count]]
        status [-vx] [-T d|u] [pool] ... [interval [count]]
        online <pool> <device> ...
        offline [-t] <pool> <device> ...
        clear [-nF] <pool> [device]
        attach [-f] <pool> <device> <new-device>
        detach <pool> <device>
        replace [-f] <pool> <device> [new-device]
        split [-n] [-R altroot] [-o mntopts]
            [-o property=value] <pool> <newpool> [<device> ...]
        scrub [-s] <pool> ...
        import [-d dir] [-D]
        import [-d dir | -c cachefile] [-F [-n]] <pool | id>
        import [-o mntopts] [-o property=value] ...
            [-d dir | -c cachefile] [-D] [-f] [-m] [-N] [-R root] [-F [-n]] -a
        import [-o mntopts] [-o property=value] ...
            [-d dir | -c cachefile] [-D] [-f] [-m] [-N] [-R root] [-F [-n]]
            <pool | id> [newpool]
        export [-f] <pool> ...
        upgrade
        upgrade -v
        upgrade [-V version] <-a | pool ...>
        history [-il] [<pool>] ...
        get <"all" | property[,...]> <pool> ...
        set <property=value> <pool>
g7#
g7#
g7#
g7#
g7# zpool destory tank
unrecognized command 'destory'
usage: zpool command args ...
where 'command' is one of the following:
        create [-fn] [-o property=value] ...
            [-O file-system-property=value] ...
            [-m mountpoint] [-R root] <pool> <vdev> ...
        destroy [-f] <pool>
        add [-fn] <pool> <vdev> ...
        remove <pool> <device> ...
        labelclear [-f] <vdev>
        list [-H] [-o property[,...]] [-T d|u] [pool] ... [interval [count]]
        iostat [-v] [-T d|u] [pool] ... [interval [count]]
        status [-vx] [-T d|u] [pool] ... [interval [count]]
        online <pool> <device> ...
        offline [-t] <pool> <device> ...
        clear [-nF] <pool> [device]
        attach [-f] <pool> <device> <new-device>
        detach <pool> <device>
        replace [-f] <pool> <device> [new-device]
        split [-n] [-R altroot] [-o mntopts]
            [-o property=value] <pool> <newpool> [<device> ...]
        scrub [-s] <pool> ...
        import [-d dir] [-D]
        import [-d dir | -c cachefile] [-F [-n]] <pool | id>
        import [-o mntopts] [-o property=value] ...
            [-d dir | -c cachefile] [-D] [-f] [-m] [-N] [-R root] [-F [-n]] -a
        import [-o mntopts] [-o property=value] ...
            [-d dir | -c cachefile] [-D] [-f] [-m] [-N] [-R root] [-F [-n]]
            <pool | id> [newpool]
        export [-f] <pool> ...
        upgrade
        upgrade -v
        upgrade [-V version] <-a | pool ...>
        history [-il] [<pool>] ...
        get <"all" | property[,...]> <pool> ...
        set <property=value> <pool>
g7#
g7#
g7# zpool destroy tank
g7#
g7# ll
total 53
-rw-r--r--   1 root  wheel   798 Aug  8 11:34 .cshrc
-rw-r--r--   1 root  wheel   263 Aug  8 11:37 .profile
-r--r--r--   1 root  wheel  6200 Aug  8 11:37 COPYRIGHT
drwxr-xr-x   2 root  wheel    46 Aug  8 11:34 bin
drwxr-xr-x   8 root  wheel    43 Aug  8 11:37 boot
dr-xr-xr-x   7 root  wheel   512 Dec 28 22:33 dev
-rw-------   1 root  wheel  4096 Aug 18 12:49 entropy
drwxr-xr-x  20 root  wheel   109 Dec 28 13:33 etc
drwxr-xr-x  20 root  wheel   108 Aug  8 11:34 etc.old
drwxr-xr-x   3 root  wheel    48 Aug  8 11:33 lib
drwxr-xr-x   3 root  wheel     6 Aug  8 11:34 libexec
drwxr-xr-x   2 root  wheel     2 Jan  3  2012 media
drwxr-xr-x   2 root  wheel     2 Jan  3  2012 mnt
dr-xr-xr-x   2 root  wheel     2 Jan  3  2012 proc
drwxr-xr-x   2 root  wheel   141 Aug  8 11:33 rescue
drwxr-xr-x  10 root  wheel    20 Dec 21 07:57 root
drwxr-xr-x   2 root  wheel   131 Aug  8 11:34 sbin
lrwxr-xr-x   1 root  wheel    11 Aug  8 11:32 sys -> usr/src/sys
drwxrwxrwt   7 root  wheel    60 Dec 28 13:34 tmp
drwxr-xr-x  16 root  wheel    17 Dec 28 13:30 usr
drwxr-xr-x  26 root  wheel    26 Dec 28 22:33 var
g7#
g7#
g7# zpool status
  pool: zfspool
 state: ONLINE
 scan: none requested
config:
        NAME        STATE     READ WRITE CKSUM
        zfspool     ONLINE       0     0     0
          ada0p3    ONLINE       0     0     0
errors: No known data errors
g7#
g7#
g7#
g7# cpool create tank raidz1 ada1 ada2 ada3
cpool: Command not found.
g7# zpool create tank raidz1 ada1 ada2 ada3
g7#
g7#
g7# df -h
Filesystem          Size    Used   Avail Capacity  Mounted on
zfspool/root        220G    6.5G    213G     3%    /
devfs               1.0k    1.0k      0B   100%    /dev
zfspool/root/tmp    213G     62k    213G     0%    /tmp
zfspool/root/var    214G    222M    213G     0%    /var
devfs               1.0k    1.0k      0B   100%    /var/named/dev
tank                456G     40k    456G     0%    /tank
g7#
g7#
g7# zpool status
  pool: tank
 state: ONLINE
 scan: none requested
config:
        NAME        STATE     READ WRITE CKSUM
        tank        ONLINE       0     0     0
          raidz1-0  ONLINE       0     0     0
            ada1    ONLINE       0     0     0
            ada2    ONLINE       0     0     0
            ada3    ONLINE       0     0     0
errors: No known data errors
  pool: zfspool
 state: ONLINE
 scan: none requested
config:
        NAME        STATE     READ WRITE CKSUM
        zfspool     ONLINE       0     0     0
          ada0p3    ONLINE       0     0     0
errors: No known data errors
g7# zfs set mountpoint=/boot/zfs/zroot/usr/home tank
g7# df
Filesystem       1K-blocks    Used     Avail Capacity  Mounted on
zfspool/root     230971140 6826610 224144530     3%    /
devfs                    1       1         0   100%    /dev
zfspool/root/tmp 224144592      62 224144530     0%    /tmp
zfspool/root/var 224372129  227599 224144530     0%    /var
devfs                    1       1         0   100%    /var/named/dev
tank             478469286      40 478469246     0%    /boot/zfs/zroot/usr/home
g7#
g7#
g7#
g7#
g7#
g7# cd /boot/zfs/zroot; ln -s usr/home home
g7# df -h
Filesystem          Size    Used   Avail Capacity  Mounted on
zfspool/root        220G    6.5G    213G     3%    /
devfs               1.0k    1.0k      0B   100%    /dev
zfspool/root/tmp    213G     62k    213G     0%    /tmp
zfspool/root/var    214G    222M    213G     0%    /var
devfs               1.0k    1.0k      0B   100%    /var/named/dev
tank                456G     40k    456G     0%    /boot/zfs/zroot/usr/home
g7#
g7#
g7# cd /boot/zfs
g7# zpool export tank
g7# zpool import tank
g7# df -h
Filesystem          Size    Used   Avail Capacity  Mounted on
zfspool/root        220G    6.5G    213G     3%    /
devfs               1.0k    1.0k      0B   100%    /dev
zfspool/root/tmp    213G     62k    213G     0%    /tmp
zfspool/root/var    214G    222M    213G     0%    /var
devfs               1.0k    1.0k      0B   100%    /var/named/dev
tank                456G     40k    456G     0%    /boot/zfs/zroot/usr/home
g7#
g7#
g7#
g7# zfs set mountpoint=/usr/home tank
g7# df -h
Filesystem          Size    Used   Avail Capacity  Mounted on
zfspool/root        220G    6.5G    213G     3%    /
devfs               1.0k    1.0k      0B   100%    /dev
zfspool/root/tmp    213G     62k    213G     0%    /tmp
zfspool/root/var    214G    222M    213G     0%    /var
devfs               1.0k    1.0k      0B   100%    /var/named/dev
tank                456G     40k    456G     0%    /usr/home
g7#
g7#
g7# ln -s /usr/home/ /home
g7# df -h
Filesystem          Size    Used   Avail Capacity  Mounted on
zfspool/root        220G    6.5G    213G     3%    /
devfs               1.0k    1.0k      0B   100%    /dev
zfspool/root/tmp    213G     62k    213G     0%    /tmp
zfspool/root/var    214G    222M    213G     0%    /var
devfs               1.0k    1.0k      0B   100%    /var/named/dev
tank                456G     40k    456G     0%    /usr/home
g7#

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS