Update Time : Thu Apr 3 22:43:39 2014
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
Name : file:0 (local to host file)
UUID : 4bd3bbbb:57305692:6d264713:10028518
Events : 16408
Number Major Minor RaidDevice State
0 8 17 0 active sync /dev/sdb1
2 8 33 1 active sync /dev/sdc1
就是两个磁盘做raid1,然后md0和md1做raid0
6.看了上面的输出,有使用率,说明数据还在,稍微放了一下心
直接mount /dev/md2p1 /share,提示mount: unknown filesystem type 'LVM2_member'
--- Logical volume ---
LV Name /dev/vgmd2/lvshare
VG Name vgmd2
LV UUID hN0kGI-5yBU-3ABH-rkU2-fPGi-JfX8-D1C0DQ
LV Write Access read/write
LV Status NOT available
LV Size 256.00 GiB
Current LE 16384
Segments 1
Allocation inherit
Read ahead sectors auto
--- Logical volume ---
LV Name /dev/vgmd2/lvnfs
VG Name vgmd2
LV UUID PRKkOr-zzJd-O0di-GT8W-0lsf-wtN3-1bFShN
LV Write Access read/write
LV Status NOT available
LV Size 10.00 GiB
Current LE 640
Segments 1
Allocation inherit
Read ahead sectors auto
vgchange -ay后,lvdisplay
--- Logical volume ---
LV Name /dev/vgmd2/lvshare
VG Name vgmd2
LV UUID hN0kGI-5yBU-3ABH-rkU2-fPGi-JfX8-D1C0DQ
LV Write Access read/write
LV Status available
# open 0
LV Size 256.00 GiB
Current LE 16384
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 4096
Block device 254:4
--- Logical volume ---
LV Name /dev/vgmd2/lvnfs
VG Name vgmd2
LV UUID PRKkOr-zzJd-O0di-GT8W-0lsf-wtN3-1bFShN
LV Write Access read/write
LV Status available
# open 0
LV Size 10.00 GiB
Current LE 640
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 4096
Block device 254:5
mount -t ext4 /dev/vgmd2/lvshare /share
7.最后用samba用户名和密码登陆,可以进去,没有提示无权限错误,操作要小心。
最后写入/etc/fstab