系统环境:Centos6.7 x86_64 己updte磁盘:12*4T raid5 +hot说明:操作系统与归档都使用同一个raid5
应用环境:邮局系统【文件大小从1K到100K不等,除附件】
一、查看分区 【fdisk -l】
[root@localhostsysadmin]#fdisk-lWARNING:GPT(GUIDPartitionTable)detectedon’/dev/sda’!Theutilfdiskdoesn’tsupportGPT.UseGNUParted.Disk/dev/sda:40000.0GB,39999997214720bytes255heads,63sectors/track,4863055cylindersUnits=cylindersof16065*512=8225280bytesSectorsize(logical/physical):512bytes/512bytesI/Osize(minimum/optimal):512bytes/512bytesDiskidentifier:0x00000000DeviceBootStartEndBlocksIdSystem/dev/sda112673502147483647+eeGPT
说明:此时文件系统己经超过16T,OS默认将其转换成了GPT格式的,所以使用fdisk无法查看到准确的分区信息。
二、使用parted 查看分区信息
[root@localhostsysadmin]#partedGNUParted2.1Using/dev/sdaWelcometoGNUParted!Type’help’toviewalistofcommands.(parted)pModel:LSIAOC-USAS2LP-H8iR(scsi)Disk/dev/sda:40.0TBSectorsize(logical/physical):512B/512BPartitionTable:gptNumberStartEndSizeFilesystemNameFlags11049kB525MB524MBext42525MB263GB262GBext43263GB284GB21.0GBext44284GB288GB4295MBlinux-swap(v1)
三、将余下的空间都分为/archive 作为归档的根目录
(parted)mkpart/archive288G-1(parted)pModel:LSIAOC-USAS2LP-H8iR(scsi)Disk/dev/sda:40.0TBSectorsize(logical/physical):512B/512BPartitionTable:gptNumberStartEndSizeFilesystemNameFlags11049kB525MB524MBext42525MB263GB262GBext43263GB284GB21.0GBext44284GB288GB4295MBlinux-swap(v1)5288GB40.0TB39.7TB/archive(parted)q
四、查看分区
[root@localhost~]#fdisk/dev/sdasdasda1sda2sda3sda4sda5[root@localhost~]#
说明:此时己经找到新的分区【sda5】
五、修改/etc/mke2fd.conf
#vim/etc/mke2fs.conf[fs_types]ext3={features=has_journal}ext4={features=has_journal,extent,huge_file,flex_bg,uninit_bg,dir_nlink,extra_isizeauto_64-bit_support=1#添加这一行inode_size=256}旅行,有一种苍凉,“浮云游子意,落日故人情”,