- 论坛徽章:
- 0
|
图形安装软RAID5 [原]
需要将新的磁盘按照原来的分区结构划分,必须要求大小一模一样
具体要用fdisk看一下
[root@platinum root]# fdisk -l /dev/hda
Disk /dev/hda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 26 208813+ fd Linux raid autodetect
/dev/hda2 27 1331 10482412+ fd Linux raid autodetect
/dev/hda3 1332 1462 1052257+ fd Linux raid autodetect
/dev/hda4 1463 14593 105474757+ f Win95 Ext'd (LBA)
/dev/hda5 1463 14593 105474726 fd Linux raid autodetect
[root@platinum root]#
man raidhotremove
man raidsetfaulty
man raidhotadd
下面是一个刚刚做的卸载和挂载的例子,我自己的系统是软RAID1
[root@platinum root]# cat /proc/mdstat
Personalities : [raid1]
read_ahead 1024 sectors
md2 : active raid1 hda5[0] hdb5[1]
105474624 blocks [2/2] [UU]
md3 : active raid1 hda3[0] hdb3[1]
1052160 blocks [2/2] [UU]
md1 : active raid1 hda2[0] hdb2[1]
10482304 blocks [2/2] [UU]
md0 : active raid1 hda1[0] hdb1[1]
208704 blocks [2/2] [UU]
unused devices: <none>;
[root@platinum root]# raidsetfaulty /dev/md0 /dev/hda1
[root@platinum root]# cat /proc/mdstat
Personalities : [raid1]
read_ahead 1024 sectors
md2 : active raid1 hda5[0] hdb5[1]
105474624 blocks [2/2] [UU]
md3 : active raid1 hda3[0] hdb3[1]
1052160 blocks [2/2] [UU]
md1 : active raid1 hda2[0] hdb2[1]
10482304 blocks [2/2] [UU]
md0 : active raid1 hda1[0](F) hdb1[1]
208704 blocks [2/1] [_U]
unused devices: <none>;
[root@platinum root]# raidhotremove /dev/md0 /dev/hda1
[root@platinum root]# cat /proc/mdstat 1
Personalities : [raid1]
read_ahead 1024 sectors
md2 : active raid1 hda5[0] hdb5[1]
105474624 blocks [2/2] [UU]
md3 : active raid1 hda3[0] hdb3[1]
1052160 blocks [2/2] [UU]
md1 : active raid1 hda2[0] hdb2[1]
10482304 blocks [2/2] [UU]
md0 : active raid1 hdb1[1]
208704 blocks [2/1] [_U]
unused devices: <none>;
[root@platinum root]# raidhotadd /dev/md0 /dev/hda1
[root@platinum root]# cat /proc/mdstat
Personalities : [raid1]
read_ahead 1024 sectors
md2 : active raid1 hda5[0] hdb5[1]
105474624 blocks [2/2] [UU]
md3 : active raid1 hda3[0] hdb3[1]
1052160 blocks [2/2] [UU]
md1 : active raid1 hda2[0] hdb2[1]
10482304 blocks [2/2] [UU]
md0 : active raid1 hda1[2] hdb1[1]
208704 blocks [2/1] [_U]
[===========>;.........] recovery = 57.8% (120832/208704) finish=0.0min speed=30208K/sec
unused devices: <none>;
[root@BGI-OS root]# cat /proc/mdstat
Personalities : [raid1]
read_ahead 1024 sectors
md2 : active raid1 hda5[0] hdb5[1]
105474624 blocks [2/2] [UU]
md3 : active raid1 hda3[0] hdb3[1]
1052160 blocks [2/2] [UU]
md1 : active raid1 hda2[0] hdb2[1]
10482304 blocks [2/2] [UU]
md0 : active raid1 hda1[0] hdb1[1]
208704 blocks [2/2] [UU]
unused devices: <none>;
[root@BGI-OS root]# |
|