Solaris Zpool
root@edus008:/rpool# zpool status rpool
pool: rpool
state: ONLINE
scan: resilvered 37.8G in 0h6m with 0 errors on Fri Nov 9 13:37:50 2012
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
c3t0d0s0 ONLINE 0 0 0
c3t1d0s0 ONLINE 0 0 0
errors: No known data errors
root@edus008:/rpool# zpool add -f rpool mirror /dev/dsk/c3t2d0 /dev/dsk/c3t3d0
cannot label 'c3t2d0': EFI labeled devices are not supported on root pools.
root@edus009 # zfs list
NAME USED AVAIL REFER MOUNTPOINT
ais_local 181K 268G 115K /ais_local
rpool 12.1G 122G 98K /rpool
rpool/ROOT 7.98G 122G 21K legacy
rpool/ROOT/s10s_u9wos_14a 7.96G 122G 7.74G /
rpool/ROOT/s10s_u9wos_14a@s10s_u9wos_14a-ABE 217M - 7.78G -
rpool/ROOT/s10s_u9wos_14a-ABE 26.6M 122G 7.63G /
rpool/ais_local 25K 122G 25K /ais_local
rpool/dump 2.00G 122G 2.00G -
rpool/export 99.6M 122G 23K /export
rpool/export/home 99.6M 122G 99.6M /export/home
rpool/swap 2.06G 124G 16K -
rpool/woodstock 21K 122G 21K /rpool/woodstock
root@edus009 # zfs set mountpoint=/usr/local/woodstock rpool/woodstock
root@edus009 # zfs set quota=40G rpool/woodstock
root@edus009 # zfs list
NAME USED AVAIL REFER MOUNTPOINT
ais_local 181K 268G 115K /ais_local
rpool 12.1G 122G 97K /rpool
rpool/ROOT 7.98G 122G 21K legacy
rpool/ROOT/s10s_u9wos_14a 7.96G 122G 7.74G /
rpool/ROOT/s10s_u9wos_14a@s10s_u9wos_14a-ABE 217M - 7.78G -
rpool/ROOT/s10s_u9wos_14a-ABE 26.6M 122G 7.63G /
rpool/ais_local 25K 122G 25K /ais_local
rpool/dump 2.00G 122G 2.00G -
rpool/export 99.6M 122G 23K /export
rpool/export/home 99.6M 122G 99.6M /export/home
rpool/swap 2.06G 124G 16K -
rpool/woodstock 21K 40.0G 21K /usr/local/woodstock
root@edus009 #
Regarding of EFI label
root@edus008:~# format -e c3t3d0s0
selecting c3t3d0s0
[disk formatted]
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show disk ID
scsi - independent SCSI mode selects
cache - enable, disable or query SCSI disk cache
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> label
[0] SMI Label
[1] EFI Label
Specify Label type[0]:
Ready to label disk, continue? y
format> q
root@edus008:/# zfs create rpool/ais_local
root@edus008:/rpool# zfs set mountpoint=/ais_local rpool/ais_local
pool: rpool
state: ONLINE
scan: resilvered 37.8G in 0h6m with 0 errors on Fri Nov 9 13:37:50 2012
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
c3t0d0s0 ONLINE 0 0 0
c3t1d0s0 ONLINE 0 0 0
errors: No known data errors
root@edus008:/rpool# zpool add -f rpool mirror /dev/dsk/c3t2d0 /dev/dsk/c3t3d0
cannot label 'c3t2d0': EFI labeled devices are not supported on root pools.
If root rpool exists, additional devices must be attached; can NOT be added. And pelase use the parition (c0t1d0s0) to attach; not the disk (c0t1d0)
root@edus009 # zfs create rpool/woodstockroot@edus009 # zfs list
NAME USED AVAIL REFER MOUNTPOINT
ais_local 181K 268G 115K /ais_local
rpool 12.1G 122G 98K /rpool
rpool/ROOT 7.98G 122G 21K legacy
rpool/ROOT/s10s_u9wos_14a 7.96G 122G 7.74G /
rpool/ROOT/s10s_u9wos_14a@s10s_u9wos_14a-ABE 217M - 7.78G -
rpool/ROOT/s10s_u9wos_14a-ABE 26.6M 122G 7.63G /
rpool/ais_local 25K 122G 25K /ais_local
rpool/dump 2.00G 122G 2.00G -
rpool/export 99.6M 122G 23K /export
rpool/export/home 99.6M 122G 99.6M /export/home
rpool/swap 2.06G 124G 16K -
rpool/woodstock 21K 122G 21K /rpool/woodstock
root@edus009 # zfs set mountpoint=/usr/local/woodstock rpool/woodstock
root@edus009 # zfs set quota=40G rpool/woodstock
root@edus009 # zfs list
NAME USED AVAIL REFER MOUNTPOINT
ais_local 181K 268G 115K /ais_local
rpool 12.1G 122G 97K /rpool
rpool/ROOT 7.98G 122G 21K legacy
rpool/ROOT/s10s_u9wos_14a 7.96G 122G 7.74G /
rpool/ROOT/s10s_u9wos_14a@s10s_u9wos_14a-ABE 217M - 7.78G -
rpool/ROOT/s10s_u9wos_14a-ABE 26.6M 122G 7.63G /
rpool/ais_local 25K 122G 25K /ais_local
rpool/dump 2.00G 122G 2.00G -
rpool/export 99.6M 122G 23K /export
rpool/export/home 99.6M 122G 99.6M /export/home
rpool/swap 2.06G 124G 16K -
rpool/woodstock 21K 40.0G 21K /usr/local/woodstock
root@edus009 #
Regarding of EFI label
root@edus008:~# format -e c3t3d0s0
selecting c3t3d0s0
[disk formatted]
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show disk ID
scsi - independent SCSI mode selects
cache - enable, disable or query SCSI disk cache
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> label
[0] SMI Label
[1] EFI Label
Specify Label type[0]:
Ready to label disk, continue? y
format> q
root@edus008:/# zfs create rpool/ais_local
root@edus008:/rpool# zfs set mountpoint=/ais_local rpool/ais_local
Comments