- 论坛徽章:
- 0
|
为什么我的LINUX 软RAID 建立成功后,一重启就消失了呢???
而且我设置了自动挂载
[root@localhost mnt]# mdadm --create /dev/md0 -l 1 -n 2 /dev/hdb7 /dev/hdb8
mdadm: /dev/hdb7 appears to contain an ext2fs file system
size=147072K mtime=Thu Jan 1 08:00:00 1970
mdadm: /dev/hdb7 appears to be part of a raid array:
level=raid1 devices=2 ctime=Mon Nov 8 19:31:48 2010
mdadm: /dev/hdb8 appears to contain an ext2fs file system
size=147072K mtime=Thu Jan 1 08:00:00 1970
mdadm: /dev/hdb8 appears to be part of a raid array:
level=raid1 devices=2 ctime=Mon Nov 8 19:31:48 2010
Continue creating array?
Continue creating array? (y/n)
Continue creating array? (y/n) ^[[A^H^H^Hy
Continue creating array? (y/n) y
mdadm: array /dev/md0 started.
[root@localhost mnt]#
[root@localhost mnt]#
[root@localhost mnt]#
[root@localhost mnt]# mdadm --detail /dev/md0
/dev/md0:
Version : 0.90
Creation Time : Mon Nov 8 19:40:38 2010
Raid Level : raid1
Array Size : 147072 (143.65 MiB 150.60 MB)
Used Dev Size : 147072 (143.65 MiB 150.60 MB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 0
Persistence : Superblock is persistent
Update Time : Mon Nov 8 19:40:38 2010
State : clean, resyncing
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
Rebuild Status : 76% complete
UUID : 7b3730e5:9a4c06fa:b9d88bce:75277e13
Events : 0.1
Number Major Minor RaidDevice State
0 3 71 0 active sync /dev/hdb7
1 3 72 1 active sync /dev/hdb8
[root@localhost mnt]# cat /etc/fstab
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/dev/vgtest/lvol0 /mnt/lvm ext3 defaults 0 0
/dev/md0 /mnt/raid0 ext3 defaults 0 0
/dev/hdb9 /mnt/ext3 ext3 defaults 0 0
然后我现在reboot 发现RAID 信息全没了 挂载也没有生效.......
[root@localhost ~]# mdadm --detail /dev/md0
mdadm: md device /dev/md0 does not appear to be active.
[root@localhost ~]# df -lh
/dev/mapper/VolGroup00-LogVol00
18G 2.1G 15G 13% /
/dev/sda1 99M 12M 82M 13% /boot
tmpfs 252M 0 252M 0% /dev/shm
/dev/mapper/vgtest-lvol0
97M 5.6M 87M 7% /mnt/lvm
/dev/hdb9 93M 5.6M 83M 7% /mnt/ext3
就是这样的结果。。。。。。。。。。。。
是不是我哪一步少执行了啊??????? |
|