学习Linux遇到的问题,向各位求教
SoftWareRAID部分:
1、[root@rhel5 ~]# blkid
/dev/sdb1: LABEL="/" UUID="acebd69a-3187-4edc-999d-3f79ea752d30" TYPE="ext3"
/dev/sda2: LABEL="SWAP-sda2" TYPE="swap"
/dev/sda1: LABEL="/boot" UUID="fdb2ff85-dd97-4e0f-9067-6b1ae98a9dc9" TYPE="ext3"
/dev/sda6: UUID="790e0f5d-98a2-4828-9d39-c1a66e191881" TYPE="ext3"
/dev/sdb6: UUID="790e0f5d-98a2-4828-9d39-c1a66e191881" TYPE="ext3"
/dev/md0: UUID="790e0f5d-98a2-4828-9d39-c1a66e191881" SEC_TYPE="ext2" TYPE="ext3"
/dev/md1: UUID="790e0f5d-98a2-4828-9d39-c1a66e191881" SEC_TYPE="ext2" TYPE="ext3"
/dev/md2: UUID="790e0f5d-98a2-4828-9d39-c1a66e191881" TYPE="ext3" /dev/vg0/lv0: UUID="6b35ad9d-4367-4204-908c-70bac0655456" SEC_TYPE="ext2" TYPE="ext3"
/dev/cdrom: LABEL="RHEL/5.5 i386 DVD" TYPE="iso9660"
问题:dev/md0、/dev/md1是raid 0;/dev/md2是在这两个raid0的基础上做的raid1
为什么/dev/sda6/、dev/sdb6/、dev/md0、/dev/md1、/dev/md2这几个设备的UUID都一样?!
2、[root@rhel5 ~]# fdisk -l
Disk /dev/sda: 16.1 GB, 16106127360 bytes
255 heads, 63 sectors/track, 1958 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 274 2096482+ 82 Linux swap / Solaris
/dev/sda3 275 1958 13526730 5 Extended
/dev/sda5 275 276 16033+ 83 Linux
/dev/sda6 277 278 16033+ 83 Linux
/dev/sda7 279 280 16033+ 83 Linux
/dev/sda8 281 282 16033+ 83 Linux
/dev/sda9 283 284 16033+ 83 Linux
Disk /dev/sdb: 16.1 GB, 16106127360 bytes
255 heads, 63 sectors/track, 1958 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 1305 10482381 83 Linux
/dev/sdb3 1306 1958 5245222+ 5 Extended
/dev/sdb5 1306 1307 16033+ 83 Linux
/dev/sdb6 1308 1309 16033+ 83 Linux
/dev/sdb7 1310 1311 16033+ 83 Linux
/dev/sdb8 1312 1313 16033+ 83 Linux
/dev/sdb9 1314 1315 16033+ 83 Linux
Disk /dev/md0: 32 MB, 32636928 bytes
2 heads, 4 sectors/track, 7968 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md0 doesn't contain a valid partition table
Disk /dev/md1: 32 MB, 32636928 bytes
2 heads, 4 sectors/track, 7968 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md1 doesn't contain a valid partition table
Disk /dev/md2: 32 MB, 32571392 bytes
2 heads, 4 sectors/track, 7952 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md2 doesn't contain a valid partition table
问题:为什么fdisk -l的命令会说所有的raid设备都没有有效的分区表
============================================================================================
系统日志服务部分
[root@rhel5 ~]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:0C:29:70:E8:F0
inet addr:192.168.0.88 Bcast:192.168.0.255 Mask:255.255.255.0
[root@rhel5 ~]# vim /etc/syslog.conf
authpriv.* /var/log/secure
mail.* -/v