装上CentOS5.5系统后,准备对剩下空间的进行分区,做iscsi共享,使用fdisk -l命令发现,显示的是4块完整的盘!
[root@file2 ~]# fdisk -l
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 31871 256003776 83 Linux
/dev/sda2 31872 32075 1638630 82 Linux swap / Solaris
/dev/sda3 32076 243201 1695869595 83 Linux
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 31871 256003776 83 Linux
/dev/sdb2 31872 32075 1638630 82 Linux swap / Solaris
/dev/sdb3 32076 243201 1695869595 83 Linux
Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdc doesn’t contain a valid partition table
Disk /dev/sdd: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdd doesn’t contain a valid partition table
使用df -h查看显示如下:
[root@file2 ~]# df -h
文件系统 容量 已用 可用 已用% 挂载点
/dev/mapper/isw_ihhcieff_file2p1
237G 3.3G 222G 2% /
tmpfs 1.9G 0 1.9G 0% /dev/shm
这个/dev/mapper应该就是raid10的整个分区?记得装系统分区时,磁盘显示是这个/dev/mapper/isw_ihhcieff_file2。那么拿这个开刀:
[root@file2 ~]# fdisk /dev/mapper/isw_ihhcieff_file2
The number of cylinders for this disk is set to 243201.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help):
真的进去,还可以分区!如果么有错的话,那么raid的分区应该就类似这个的吧?