サーバー更新(3)現サーバの作業

smartctlの確認。

# fdisk -l

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = シリンダ数 of 16065 * 512 = 8225280 bytes

バイス Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 523 4096575 82 Linux swap / Solaris
/dev/sda3 524 121601 972559035 83 Linux

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = シリンダ数 of 16065 * 512 = 8225280 bytes

バイス Boot Start End Blocks Id System
/dev/sdb1 * 1 121601 976760001 fd Linux raid 自動検出

Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = シリンダ数 of 16065 * 512 = 8225280 bytes

バイス Boot Start End Blocks Id System
/dev/sdc1 * 1 121601 976760001 fd Linux raid 自動検出

Disk /dev/sdd: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 cylinders
Units = シリンダ数 of 16065 * 512 = 8225280 bytes

バイス Boot Start End Blocks Id System
/dev/sdd1 * 1 182401 1465136001 83 Linux

Disk /dev/md0: 1000.2 GB, 1000202174464 bytes
2 heads, 4 sectors/track, 244189984 cylinders
Units = シリンダ数 of 8 * 512 = 4096 bytes

ディスク /dev/md0 は正常な領域テーブルを含んでいません

fstabの編集。

md0から現sdbを取り外す。


# cat /proc/mdstat

Personalities : [raid1]
md0 : active raid1 sdc1[1] sdb1[0]
976759936 blocks [2/2] [UU]

unused devices:

RAIDからデバイスを切り離し(非アクティブに)
# mdadm --fail /dev/md0 /dev/sdc1

mdadm: set /dev/sdc1 faulty in /dev/md0

RAIDからデバイスを取り除く(--fail後のみ実行可能)
# mdadm --remove /dev/md0 /dev/sdc1

mdadm: hot removed /dev/sdc1

# shutdown -h now

sdcとsddを取り外して再起動。

無事再起動。一安心。

参考
http://nabe.blog.abk.nu/0301