也有行命令可以查看:
[root@localhost ~]# fdisk -l对于查看Mount Point、RAID device的情况,请结合“df”和“mdadm”命令:
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 fd Linux raid autodetect
/dev/sda2 26 2575 20482875 fd Linux raid autodetect
/dev/sda3 2576 5125 20482875 fd Linux raid autodetect
/dev/sda4 5126 121601 935593470 5 Extended
/dev/sda5 5126 7675 20482843+ fd Linux raid autodetect
/dev/sda6 7676 8185 4096543+ fd Linux raid autodetect
/dev/sda7 8186 8312 1020096 fd Linux raid autodetect
/dev/sda8 8313 121601 909993861 fd Linux raid autodetect
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 25 200781 fd Linux raid autodetect
/dev/sdb2 26 2575 20482875 fd Linux raid autodetect
/dev/sdb3 2576 5125 20482875 fd Linux raid autodetect
/dev/sdb4 5126 121601 935593470 5 Extended
/dev/sdb5 5126 7675 20482843+ fd Linux raid autodetect
/dev/sdb6 7676 8185 4096543+ fd Linux raid autodetect
/dev/sdb7 8186 8312 1020096 fd Linux raid autodetect
/dev/sdb8 8313 121601 909993861 fd Linux raid autodetect
Disk /dev/md0: 205 MB, 205520896 bytes
2 heads, 4 sectors/track, 50176 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Device Boot Start End Blocks Id System
Disk /dev/md5: 931.8 GB, 931833643008 bytes
2 heads, 4 sectors/track, 227498448 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md5 doesn't contain a valid partition table
Disk /dev/md4: 4194 MB, 4194762752 bytes
2 heads, 4 sectors/track, 1024112 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md4 doesn't contain a valid partition table
Disk /dev/md3: 20.9 GB, 20974338048 bytes
2 heads, 4 sectors/track, 5120688 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md3 doesn't contain a valid partition table
Disk /dev/md1: 20.9 GB, 20974338048 bytes
2 heads, 4 sectors/track, 5120688 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md1 doesn't contain a valid partition table
Disk /dev/md2: 20.9 GB, 20974338048 bytes
2 heads, 4 sectors/track, 5120688 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md2 doesn't contain a valid partition table
[root@localhost ~]#
[root@localhost ~]# df上面的截图及行命令结果来自Shttle K45 - 我们的新File Server。
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/md1 20161084 3658072 15478876 20% /
/dev/md0 194366 11972 172359 7% /boot
/dev/md5 895714728 110656 850104384 1% /data
none 1032680 0 1032680 0% /dev/shm
/dev/md2 20161084 77932 19059016 1% /home
/dev/md3 20161084 164500 18972448 1% /var
[root@localhost ~]#
[root@localhost ~]# mdadm -D /dev/md0
/dev/md0:
Version : 00.90.01
Creation Time : Tue Dec 16 00:33:23 2008
Raid Level : raid1
Array Size : 200704 (196.03 MiB 205.52 MB)
Device Size : 200704 (196.03 MiB 205.52 MB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 0
Persistence : Superblock is persistent
Update Time : Tue Dec 16 11:29:36 2008
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
UUID : cbfa971f:1ae7af6f:071c984f:bd7fda3f
Events : 0.34
Number Major Minor RaidDevice State
0 8 1 0 active sync /dev/sda1
1 8 17 1 active sync /dev/sdb1
[root@localhost ~]#
[root@localhost ~]# mdadm -D /dev/md1
/dev/md1:
Version : 00.90.01
Creation Time : Tue Dec 16 00:33:16 2008
Raid Level : raid1
Array Size : 20482752 (19.53 GiB 20.97 GB)
Device Size : 20482752 (19.53 GiB 20.97 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 1
Persistence : Superblock is persistent
Update Time : Tue Dec 16 13:06:06 2008
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
UUID : 33824fea:3046d23f:f67fa818:440b8c30
Events : 0.1721
Number Major Minor RaidDevice State
0 8 3 0 active sync /dev/sda3
1 8 19 1 active sync /dev/sdb3
[root@localhost ~]#
[root@localhost ~]# mdadm -D /dev/md2
/dev/md2:
Version : 00.90.01
Creation Time : Tue Dec 16 00:39:09 2008
Raid Level : raid1
Array Size : 20482752 (19.53 GiB 20.97 GB)
Device Size : 20482752 (19.53 GiB 20.97 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 2
Persistence : Superblock is persistent
Update Time : Tue Dec 16 11:29:36 2008
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
UUID : c0b5b0db:09e4834b:21b399af:d653a7f1
Events : 0.88
Number Major Minor RaidDevice State
0 8 2 0 active sync /dev/sda2
1 8 18 1 active sync /dev/sdb2
[root@localhost ~]#
[root@localhost ~]# mdadm -D /dev/md3
/dev/md3:
Version : 00.90.01
Creation Time : Tue Dec 16 00:39:17 2008
Raid Level : raid1
Array Size : 20482752 (19.53 GiB 20.97 GB)
Device Size : 20482752 (19.53 GiB 20.97 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 3
Persistence : Superblock is persistent
Update Time : Tue Dec 16 13:06:34 2008
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
UUID : d3c4c7d0:eeef8249:818ed27f:d98d8bb5
Events : 0.29708
Number Major Minor RaidDevice State
0 8 5 0 active sync /dev/sda5
1 8 21 1 active sync /dev/sdb5
[root@localhost ~]#
[root@localhost ~]# mdadm -D /dev/md5
/dev/md5:
Version : 00.90.01
Creation Time : Tue Dec 16 00:33:24 2008
Raid Level : raid1
Array Size : 909993792 (867.84 GiB 931.83 GB)
Device Size : 909993792 (867.84 GiB 931.83 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 5
Persistence : Superblock is persistent
Update Time : Tue Dec 16 11:54:16 2008
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
UUID : 43bbe6fb:8d5aef43:2e511a24:a898d500
Events : 0.36
Number Major Minor RaidDevice State
0 8 8 0 active sync /dev/sda8
1 8 24 1 active sync /dev/sdb8
[root@localhost ~]#
FYI: 《软件 RAID 配置》
没有评论 :
发表评论