IDEディスクが部屋の隅に見つけたので、ディスクc0d0 の交換
bash-3.00# metadb
flags first blk block count
a m p luo 16 8192 /dev/dsk/c0d0s5
a p luo 8208 8192 /dev/dsk/c0d0s5
a p luo 16400 8192 /dev/dsk/c0d0s5
a p luo 16 8192 /dev/dsk/c0d1s5
a p luo 8208 8192 /dev/dsk/c0d1s5
a p luo 16400 8192 /dev/dsk/c0d1s5
bash-3.00# metastat -p
d6 -m d26 d16 1
d26 1 1 c0d1s6
d16 1 1 c0d0s6
d3 -m d23 d13 1
d23 1 1 c0d1s3
d13 1 1 c0d0s3
d1 -m d21 d11 1
d21 1 1 c0d1s1
d11 1 1 c0d0s1
d0 -m d20 d10 1
d20 1 1 c0d1s0
d10 1 1 c0d0s0
bash-3.00# metadetach -f d0 d10
d1: サブミラー d10 は切断中
bash-3.00# metadetach -f d1 d11
d1: サブミラー d11 は切断中
bash-3.00# metadetach -f d3 d13
d3: サブミラー d13 は切断中
bash-3.00# metadetach -f d6 d16
d6: サブミラー d16 は切断中
bash-3.00# metaclear -f d10
d10: 連結/ストライプがクリアされます
bash-3.00# metaclear -f d11
d11: 連結/ストライプがクリアされます
bash-3.00# metaclear -f d13
d13: 連結/ストライプがクリアされます
bash-3.00# metaclear -f d16
d16: 連結/ストライプがクリアされます
metadb -f -d /dev/dsk/c0d0s5
bash-3.00# metadb
flags first blk block count
a m p luo 16 8192 /dev/dsk/c0d1s5
a p luo 8208 8192 /dev/dsk/c0d1s5
a p luo 16400 8192 /dev/dsk/c0d1s5
bash-3.00# shutdown -i0 -g0 -y
物理的にディスク交換を行う。
bash-3.00# format
format> fdisk
Total disk size is 30401 cylinders
Cylinder size is 16065 (512 byte) blocks
Cylinders
Partition Status Type Start End Length %
========= ====== ============ ===== === ====== ===
SELECT ONE OF THE FOLLOWING:
1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Change between Solaris and Solaris2 Partition IDs
5. Exit (update disk configuration and exit)
6. Cancel (exit without updating disk configuration)
Enter Selection:1
Select the partition type to create:1
1=SOLARIS2 2=UNIX 3=PCIXOS 4=Other
5=DOS12 6=DOS16 7=DOSEXT 8=DOSBIG
9=DOS16LBA A=x86 Boot B=Diagnostic C=FAT32
D=FAT32LBA E=DOSEXTLBA F=EFI 0=Exit?
Specify the percentage of disk to use for this partition
(or type “c” to specify the size in cylinders).100
Should this become the active partition? If yes, it will be activated
each time the computer is reset or turned on.
Please type “y” or “n”.y
Partition 1 is now the active partition.
SELECT ONE OF THE FOLLOWING:
1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Change between Solaris and Solaris2 Partition IDs
5. Exit (update disk configuration and exit)
6. Cancel (exit without updating disk configuration)
Enter Selection: 5
bash-3.00# format
Part Tag Flag Cylinders Size Blocks
0 root wm 3 - 14225 6.84GB (14223/0/0) 14336784
1 swap wu 14226 - 16306 1.00GB (2081/0/0) 2097648
2 backup wm 0 - 58164 27.96GB (58165/0/0) 58630320
3 var wm 16307 - 24433 3.91GB (8127/0/0) 8192016
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 32561 - 32764 100.41MB (204/0/0) 205632
6 home wm 24434 - 32560 3.91GB (8127/0/0) 8192016
7 unassigned wm 0 0 (0/0/0) 0
8 boot wu 0 - 0 0.49MB (1/0/0) 1008
9 alternates wu 1 - 2 0.98MB (2/0/0) 2016
bash-3.00# metadb -afc 3 c0d0s5
bash-3.00# metadb
flags first blk block count
a u 16 8192 /dev/dsk/c0d0s5
a u 8208 8192 /dev/dsk/c0d0s5
a u 16400 8192 /dev/dsk/c0d0s5
a m p luo 16 8192 /dev/dsk/c0d1s5
a p luo 8208 8192 /dev/dsk/c0d1s5
a p luo 16400 8192 /dev/dsk/c0d1s5
bash-3.00# metainit -f d10 1 1 /dev/dsk/c0d0s0
d10: 連結/ストライプがセットアップされます
bash-3.00# metainit -f d11 1 1 /dev/dsk/c0d0s1
d11: 連結/ストライプがセットアップされます
bash-3.00# metainit -f d13 1 1 /dev/dsk/c0d0s3
d13: 連結/ストライプがセットアップされます
bash-3.00# metainit -f d16 1 1 /dev/dsk/c0d0s6
d16: 連結/ストライプがセットアップされます
bash-3.00# metattach d0 d10
d0: サブミラー d10 is attached
bash-3.00# metattach d1 d11
d1: サブミラー d11 is attached
bash-3.00# metattach d3 d13
d3: サブミラー d13 is attached
bash-3.00# metattach d6 d16
d6: サブミラー d16 is attached
bash-3.00# metastat |grep %
再同期実行中: 0 % 完了
再同期実行中: 0 % 完了
再同期実行中: 3 % 完了
再同期実行中: 3 % 完了
ログ見づらいなぁ
そのうちwikiにまとめようかな
最近のコメント