主机系统装好,MD3XXX划分了VD,整体挂载给主服务器,fdisk输出:
 
[root@email ~]#  fdisk -l
 
//前面的输出省略
 
WARNING: GPT (GUID Partition Table) detected on '/dev/sdd'! The util fdisk doesn't support GPT. Use GNU Parted.
 
WARNING: The size of this disk is 5.0 TB (4998331105280 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/sdd: 4998.3 GB, 4998331105280 bytes
255 heads, 63 sectors/track, 607679 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
 
Device Boot      Start       End      Blocks   Id  System
/dev/sdd1         1      267350    2147483647+  ee  EFI GPT
 
[root@email ~]#  parted /dev/sdd
GNU Parted 1.8.1
Using /dev/sdd
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted)  print(没有出现磁盘几何结构,起始点,终止点)
 
Model: DELL MD Virtual Disk (scsi)
Disk /dev/sdd: 4998GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
 
Number  Start  End  Size  File system  Name  Flags
 
(parted)  mkpart(手动划分)
Partition name?  []?  1
File system type?  [ext2]?  ext3
Start?
Start?  1   从磁盘起始点
End?  -1   到磁盘终止点
(parted)  print
 
Model: DELL MD Virtual Disk (scsi)
Disk /dev/sdd: 4998GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
 
Number  Start   End     Size    File system  Name  Flags
1      17.4kB  4998GB  4998GB               1
 
(parted)  quit
Information: Don't forget to update /etc/fstab, if necessary.
 
[root@email ~]#  partprobe
[root@email ~]#  mkfs.ext3 /dev/sdd1
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
610156544 inodes, 1220295671 blocks
61014783 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
37241 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
        102400000, 214990848, 512000000, 550731776, 644972544
 
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
 
This filesystem will be automatically checked every 35 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
 
[root@email ~]#  tune2fs -l /dev/sdd1  (查看设备UUID)
tune2fs 1.39 (29-May-2006)
Filesystem volume name:   <none>
Last mounted on:          <not available>
Filesystem UUID:          b5d77306-3fc5-4a14-844a-be93d11d1d36
Filesystem magic number:  0xEF53
 
[root@email ~]#  cp /etc/fstab  /etc/fstab.bak
 
[root@email ~]#  vi /etc/fstab
 
写法为: UUID= “ ”   挂载目录  文件系统  default   0 0  (如果是iscsi,把 default 改成 _netdev)
 
 
 
[root@email /]#  reboot