附件大文件等应用需要直接部署到存储上,安装 linux 时建议把所有包全勾选上,如果
采用默认安装, 不同厂家的存储驱动将会很难装上, 提示系统少包, 甚至少什么包都不太清
楚。当把存储分配给你的 HBA 光纤卡后,在服务器上装好 HBA 卡驱动并重启系统,就可以
用 fdisk -l 命令查看存储信息了。
在使用存储之前需要对存储进行分区操作,在 RHEL5.4 上用 fdisk 命令分区最大磁盘
分区只能在 2T 以下,故以下采用 parted 对存储进行分区:
(红色部分代表需要输入的命令)
[root@oa-1 ~]# fdisk –l // 查看磁盘信息
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk
doesn't support GPT . Use GNU Parted.
WARNING: The size of this disk is 3.2 TB (3221225472000 bytes).
DOS partition table format can not be used on drives for volumes
larger than 2.2 TB (2199023255040 bytes). Use parted(1) and GUID
partition table format (GPT).
Disk /dev/sda : 3221.2 GB, 3221225472000 bytes
255 heads, 63 sectors/track, 391625 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/cciss/c0d0: 293.5 GB, 293563949056 bytes
255 heads, 63 sectors/track, 35690 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/cciss/c0d0p1 * 1 13 104391 83 Linux
/dev/cciss/c0d0p2 14 35690 286575502+ 8e Linux LVM
[root@oa-1 ~]# parted /dev/sda // 用 parted 命令分区
GNU Parted 1.8.1
使用 /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel GPT // 建立磁盘 label
警告 : The existing disk label on /dev/sda will be destroyed and all data on
this
disk will be lost. Do you want to continue?
parted: invalid token: GPT
是/Yes/ 否/No? y
新的磁盘标签类型? [gpt]? (直接回车)
(parted) mkpart // 创建分区
分区名称? []? sda1
文件系统类型? [ext2]? (直接回车)