umount /export/home
bash-3.00# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1t0d0
/pci@0,0/pci15ad,1976@10/sd@0,0
1. c1t1d0
/pci@0,0/pci15ad,1976@10/sd@1,0
Specify disk (enter its number):
select 0
p
p
7
enter
enter
0
0
label
y
p
3
enter
enter
981
40mb
p
7
home
enter
987
$
label
y
name
root
q
disk
1
p
p
select
(select "root")
label
y
comment /export/home in /etc/vfstab
newfs /dev/rdsk/c1t0d0s7
uncomment /export/home
mount -a
metadb -afc 3 c1t0d0s3 c1t1d0s3
metainit -f d10 1 1 c1t0d0s0
metainit -f d20 1 1 c1t0d0s1
metainit -f d70 1 1 c1t0d0s7
#metainit -f d80 1 1 c1t0d0s8
metainit d1 -m d10
metainit d2 -m d20
metainit d7 -m d70
#metainit d8 -m d80
sub-mirror:
metainit -f d11 1 1 c1t1d0s0
metainit -f d21 1 1 c1t1d0s1
metainit -f d71 1 1 c1t1d0s7
#metainit -f d81 1 1 c1t1d0s8
metaroot d1
edit /etc/vfstab
tukar:
1. /dev/dsk/c1t0d0s1 jadi /dev/md/dsk/d2
2. /dev/dsk/c1t0d0s7 jadi /dev/md/dsk/d7 (/dev/md/rdsk...)
reboot
metattach d1 d11
metattach d2 d21
metattach d7 d71
#metattach d8 d81
bash-3.00# metastat
d7: Mirror
Submirror 0: d70
State: Okay
Submirror 1: d71
State: Resyncing
Resync in progress: 0 % done
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 5060475 blocks (2.4 GB)
d70: Submirror of d7
State: Okay
Size: 5060475 blocks (2.4 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c1t0d0s7 0 No Okay Yes
d71: Submirror of d7
State: Resyncing
Size: 5060475 blocks (2.4 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c1t1d0s7 0 No Okay Yes
d2: Mirror
Submirror 0: d20
State: Okay
Submirror 1: d21
State: Resyncing
Resync in progress: 4 % done
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 1076355 blocks (525 MB)
d20: Submirror of d2
State: Okay
Size: 1076355 blocks (525 MB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c1t0d0s1 0 No Okay Yes
d21: Submirror of d2
State: Resyncing
Size: 1076355 blocks (525 MB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c1t1d0s1 0 No Okay Yes
d1: Mirror
Submirror 0: d10
State: Okay
Submirror 1: d11
State: Resyncing
Resync in progress: 0 % done
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 14667345 blocks (7.0 GB)
d10: Submirror of d1
State: Okay
Size: 14667345 blocks (7.0 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c1t0d0s0 0 No Okay Yes
d11: Submirror of d1
State: Resyncing
Size: 14667345 blocks (7.0 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c1t1d0s0 0 No Okay Yes
Device Relocation Information:
Device Reloc Device ID
c1t1d0 Yes id1,sd@f13b360d84d3b15f40006e7540000
c1t0d0 Yes id1,sd@f000000004d3b6fa3000592b50000
bash-3.00#
disk status after mirror sync'ed:
bash-3.00# metastat
d7: Mirror
Submirror 0: d70
State: Okay
Submirror 1: d71
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 5060475 blocks (2.4 GB)
d70: Submirror of d7
State: Okay
Size: 5060475 blocks (2.4 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c1t0d0s7 0 No Okay Yes
d71: Submirror of d7
State: Okay
Size: 5060475 blocks (2.4 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c1t1d0s7 0 No Okay Yes
d2: Mirror
Submirror 0: d20
State: Okay
Submirror 1: d21
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 1076355 blocks (525 MB)
d20: Submirror of d2
State: Okay
Size: 1076355 blocks (525 MB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c1t0d0s1 0 No Okay Yes
d21: Submirror of d2
State: Okay
Size: 1076355 blocks (525 MB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c1t1d0s1 0 No Okay Yes
d1: Mirror
Submirror 0: d10
State: Okay
Submirror 1: d11
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 14667345 blocks (7.0 GB)
d10: Submirror of d1
State: Okay
Size: 14667345 blocks (7.0 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c1t0d0s0 0 No Okay Yes
d11: Submirror of d1
State: Okay
Size: 14667345 blocks (7.0 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c1t1d0s0 0 No Okay Yes
Device Relocation Information:
Device Reloc Device ID
c1t1d0 Yes id1,sd@f13b360d84d3b15f40006e7540000
c1t0d0 Yes id1,sd@f000000004d3b6fa3000592b50000
bash-3.00#
No comments:
Post a Comment