一、服务器环境配置:
1、检查磁盘分区:
近期项目有个服务从虚拟机迁移到物理机,服务磁盘用户自己做了raid为3.8TB 2块磁盘配置 Raid1然后又3.8TB 6块磁盘配置了Raid5,安装操作系统使用的sda 3.8TB空间的raid1已分区。3.8TB*6的磁盘sdb共20TB的空间需要分区,并挂载给系统做存储使用。步骤如下:
1.1查询确认sdb状态:
# fdisk -l WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted. Disk /dev/sda: 4000.2 GB, 4000225165312 bytes 255 heads, 63 sectors/track, 486333 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sda1 1 267350 2147483647+ ee GPT Partition 1 does not start on physical sector boundary. WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted Disk /dev/sdb: 20001.1 GB, 20001125826560 bytes 255 heads, 63 sectors/track, 2431665 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdb1 1 267350 2147483647+ ee GPT Partition 1 does not start on physical sector boundary. Disk /dev/mapper/VolGroup-LogVol00: 2531.7 GB, 2531690283008 bytes 255 heads, 63 sectors/track, 307793 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x00000000 Disk /dev/mapper/VolGroup-LogVol01: 1468.0 GB, 1468006400000 bytes 255 heads, 63 sectors/track, 178474 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x00000000
1.2、sdb磁盘分区:
# parted /dev/sdb GNU Parted 2.1 使用 /dev/sdb Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) print #查看当前分区 Model: LSI MRSASRoMB-8i (scsi) Disk /dev/sdb: 20.0TB Sector size (logical/physical): 512B/4096B Partition Table: gpt Number Start End Size File system Name 标志 (parted) mkpart primary 0% 100% #将磁盘所有空间分为一个区 (parted) print #再次查询磁盘分区 Model: LSI MRSASRoMB-8i (scsi) Disk /dev/sdb: 20.0TB Sector size (logical/physical): 512B/4096B Partition Table: gpt Number Start End Size File system Name 标志 1 1049kB 20.0TB 20.0TB primary (parted) quit 信息: You may need to update /etc/fstab.
1.3、正确格式化的方法:
a、使用mkfs命令(如下)格式化是无法格式化的,检查为mkfs.ext4无法格式化16TB以上的分区,原因为Centos6.10 e2fsprogs版本为1.41.12,需升级为1.42版本
mkfs.ext4 /dev/sdb1 #无法如此格式化
b、升级e2fsprogs版本:
tar zvxf e2fsprogs-1.42.10.tar.gz cd e2fsprogs-1.42.10 mkdir build cd build/ ../configure make make install ##如有“忽略”错误正常。
c、查询需要分区的扇区大小
# df -h Disk /dev/sdb: 20001.1 GB, 20001125826560 bytes 255 heads, 63 sectors/track, 2431665 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdb1 1 267350 2147483647+ ee GPT Partition 1 does not start on physical sector boundary.
d、对磁盘重新格式化命令如下:
# mke2fs -O 64bit,has_journal,extents,huge_file,flex_bg,uninit_bg,dir_nlink,extra_isize -i 267350 /dev/sdb1 mke2fs 1.42.10 (18-May-2014) Warning: the fs_type huge is not defined in mke2fs.conf Creating filesystem with 4883086848 4k blocks and 76298240 inodes Filesystem UUID: 74dabc93-177b-4531-aab9-e55a1e2efe9d 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, 1934917632, 2560000000, 3855122432 Allocating group tables: 完成 正在写入inode表: 完成 Creating journal (32768 blocks): 完成 Writing superblocks and filesystem accounting information: 完成 This filesystem will be automatically checked every 34 mounts or ##提示180天问题 180 days, whichever comes first. Use tune2fs -c or -i to override.
e、解决180天问题
# tune2fs -i 3650d /dev/sdb1 tune2fs 1.42.10 (18-May-2014) Setting interval between checks to 315360000 seconds #确认时间正确 # tune2fs -l /dev/sdb1 tune2fs 1.42.10 (18-May-2014) Filesystem volume name: <none> Last mounted on: <not available> Filesystem UUID: 74dabc93-177b-4531-aab9-e55a1e2efe9d Filesystem magic number: 0xEF53 Filesystem revision #: 1 (dynamic) Filesystem features: has_journal ext_attr dir_index filetype extent 64bit flex_bg sparse_super huge_file uninit_bg dir_nlink extra_isize Filesystem flags: signed_directory_hash Default mount options: user_xattr acl Filesystem state: clean Errors behavior: Continue Filesystem OS type: Linux Inode count: 76298240 Block count: 4883086848 Reserved block count: 244154342 Free blocks: 4877929145 Free inodes: 76298229 First block: 0 Block size: 4096 Fragment size: 4096 Group descriptor size: 64 Blocks per group: 32768 Fragments per group: 32768 Inodes per group: 512 Inode blocks per group: 32 Flex block group size: 16 Filesystem created: Fri Jun 5 17:08:54 2020 Last mount time: Fri Jun 5 17:14:34 2020 Last write time: Fri Jun 5 17:15:58 2020 Mount count: 1 Maximum mount count: 34 Last checked: Fri Jun 5 17:08:54 2020 ##开始时间 Check interval: 315360000 (121 months, 2 weeks, 6 days) Next check after: Mon Jun 3 17:08:54 2030 ##最终时间 Lifetime writes: 349 MB Reserved blocks uid: 0 (user root) Reserved blocks gid: 0 (group root) First inode: 11 Inode size: 256 Required extra isize: 28 Desired extra isize: 28 Journal inode: 8 Default directory hash: half_md4 Directory Hash Seed: 0f4e7ee0-4aec-41cf-b81a-7d5a4ed045c4 Journal backup: inode blocks
1.4、挂载磁盘:
a、挂载磁盘
# cd / # mkdir data # mount /dev/sdb1 /data # df -Th Filesystem Type Size Used Avail Use% Mounted on /dev/mapper/VolGroup-LogVol00 ext4 2.3T 12G 2.2T 1% / tmpfs tmpfs 32G 144K 32G 1% /dev/shm /dev/sda1 ext4 477M 41M 412M 9% /boot /dev/mapper/VolGroup-LogVol01 ext4 1.4T 70M 1.3T 1% /home /dev/sdb1 ext4 19T 20K 18T 1% /data
b、设置开机挂载
在文件尾部增加一行如下内容,需注意实际的文件路径。
vim /etc/fstab /dev/sdb1 /data ext4 defaults 0 0
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
《魔兽世界》大逃杀!60人新游玩模式《强袭风暴》3月21日上线
暴雪近日发布了《魔兽世界》10.2.6 更新内容,新游玩模式《强袭风暴》即将于3月21 日在亚服上线,届时玩家将前往阿拉希高地展开一场 60 人大逃杀对战。
艾泽拉斯的冒险者已经征服了艾泽拉斯的大地及遥远的彼岸。他们在对抗世界上最致命的敌人时展现出过人的手腕,并且成功阻止终结宇宙等级的威胁。当他们在为即将于《魔兽世界》资料片《地心之战》中来袭的萨拉塔斯势力做战斗准备时,他们还需要在熟悉的阿拉希高地面对一个全新的敌人──那就是彼此。在《巨龙崛起》10.2.6 更新的《强袭风暴》中,玩家将会进入一个全新的海盗主题大逃杀式限时活动,其中包含极高的风险和史诗级的奖励。
《强袭风暴》不是普通的战场,作为一个独立于主游戏之外的活动,玩家可以用大逃杀的风格来体验《魔兽世界》,不分职业、不分装备(除了你在赛局中捡到的),光是技巧和战略的强弱之分就能决定出谁才是能坚持到最后的赢家。本次活动将会开放单人和双人模式,玩家在加入海盗主题的预赛大厅区域前,可以从强袭风暴角色画面新增好友。游玩游戏将可以累计名望轨迹,《巨龙崛起》和《魔兽世界:巫妖王之怒 经典版》的玩家都可以获得奖励。
更新日志
- 小骆驼-《草原狼2(蓝光CD)》[原抓WAV+CUE]
- 群星《欢迎来到我身边 电影原声专辑》[320K/MP3][105.02MB]
- 群星《欢迎来到我身边 电影原声专辑》[FLAC/分轨][480.9MB]
- 雷婷《梦里蓝天HQⅡ》 2023头版限量编号低速原抓[WAV+CUE][463M]
- 群星《2024好听新歌42》AI调整音效【WAV分轨】
- 王思雨-《思念陪着鸿雁飞》WAV
- 王思雨《喜马拉雅HQ》头版限量编号[WAV+CUE]
- 李健《无时无刻》[WAV+CUE][590M]
- 陈奕迅《酝酿》[WAV分轨][502M]
- 卓依婷《化蝶》2CD[WAV+CUE][1.1G]
- 群星《吉他王(黑胶CD)》[WAV+CUE]
- 齐秦《穿乐(穿越)》[WAV+CUE]
- 发烧珍品《数位CD音响测试-动向效果(九)》【WAV+CUE】
- 邝美云《邝美云精装歌集》[DSF][1.6G]
- 吕方《爱一回伤一回》[WAV+CUE][454M]