CentOS操作raid10磁碟分割相關教程
裝上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的分區應該就類似這個的吧?