solarisのインストールは通常通り。
ホスト名は kitakitsune
続いてミラーリング。
# format
Searching for disks…done
AVAILABLE DISK SELECTIONS:
0. c1t0d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
/pci@0/pci@0/pci@2/scsi@0/sd@0,0
1. c1t1d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
/pci@0/pci@0/pci@2/scsi@0/sd@1,0
format> quit
# format -e c1t1d0
selecting c1t1d0
[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 vendor, product and revision
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]: 0
Ready to label disk, continue? y
format> quit
# zpool status
プール: rpool
状態: ONLINE
scan: 何も要求されませんでした
構成:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
c1t0d0s0 ONLINE 0 0 0
エラー: 既知のデータエラーはありません
# prtvtoc /dev/rdsk/c1t0d0s0
* /dev/rdsk/c1t0d0s0 partition map
*
* Dimensions:
* 512 bytes/sector
* 848 sectors/track
* 24 tracks/cylinder
* 20352 sectors/cylinder
* 14089 cylinders
* 14087 accessible cylinders
*
* Flags:
* 1: unmountable
* 10: read-only
*
* First Sector Last
* Partition Tag Flags Sector Count Sector Mount Directory
0 2 00 0 286698624 286698623
2 5 00 0 286698624 286698623
# prtvtoc /dev/rdsk/c1t0d0s0 | fmthard -s – /dev/rdsk/c1t1d0s0
fmthard: New volume table of contents now in place.
# zpool attach -f rpool c1t0d0s0 c1t1d0s0
Make sure to wait until resilver is done before rebooting.
# zpool status
プール: rpool
状態: ONLINE
状態: 1 つまたは複数のデバイスの再同期化が進行中です。
プールはおそらく縮退状態で動作を継続します。
アクション: 再同期化が完了するまでお待ちください。
scan: resilver in progress since Wed Apr 5 16:19:04 2017
487M scanned out of 8.40G at 23.2M/s, 0h5m to go
487M resilvered, 5.66% done
構成:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
c1t0d0s0 ONLINE 0 0 0
c1t1d0s0 ONLINE 0 0 0 (resilvering)
エラー: 既知のデータエラーはありません
#
★同期中
# zpool status
プール: rpool
状態: ONLINE
scan: resilvered 8.42G in 0h8m with 0 errors on Tue Apr 4 16:43:43 2017
構成:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
c1t0d0s0 ONLINE 0 0 0
c1t1d0s0 ONLINE 0 0 0
エラー: 既知のデータエラーはありません
★とりあえず、今日の課題は終わったのでかえゆのです。
# sync;sync;sync;halt
Apr 4 16:48:03 kitakitsune halt: halted by root
Apr 4 16:48:05 kitakitsune syslogd: going down on signal 15
syncing file systems… done
Program terminated
SPARC Enterprise T5120, No Keyboard
Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.
{0} ok #.
Serial console stopped.
-> stop /SYS
Are you sure you want to stop /SYS (y/n)? y
Stopping /SYS