In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces CentOS6.5 mount more than 16T large-capacity storage space example analysis, the article is very detailed, has a certain reference value, interested friends must read!
Recently configured a mass storage machine for repository data backup
Type: 2U Storage Server
CPU: 2 Intel G6950 2.8G/Dual Core/L3 3M/32NM;
System memory: 96GB DDR3 ECC 800/1066/1333MHz, support 3-channel communication mode, provide 6 DIMMs
System hard disk: 300G SSD (raid1 does not support hot plug);
Storage hard disk: 16* 2000G enterprise SATAII 7200RPM,3.5"hard disk; up to 16 3.5" hard disk hot plug installation positions; disk array: Adaptec 16 channel array control module (WZ51645), 512M Cache, support RAID 0, 1, 1E, 5, 5EE, 6, 10, 50, 60, JBOD.;
Network: 2 10/100/1000M adaptive Ethernet cards;
Power supply: 760W 2+1 server redundant power supply;
The system installed with centos 6.5 has 8 storage disks of 3T, which are raid5(i.e. raid5+1). The effective capacity of the system is about 22T.
Prepare to start partitioning mass storage and formatting mounts
Since MBR partition supports maximum capacity of only 2T, if it exceeds 2T, then gpt partition should be used.
First use the parted command to convert the hard disk into a gpt partition
If there is no parted command I need to install, you can install it by yum -y install parted command
[root@ ~]$ parted /dev/sdb
GNU Parted 2.1
Using /dev/sdb
Welcome to GNU Parted! Type ‘help’ to view a list of commands.
(parted)
From MBR to GPT disk
(parted) mklabel gpt
Warning: The existing disk label on /dev/sdb will be destroyed and all data on this disk will be lost. Do you want to continue?
Yes/No? Yes
(parted)
Set the type and size of the partition you want to do (according to the actual situation) 0,-1 represents the starting capacity and the ending capacity, and the difference is the partition capacity. The unit is M mkpart primary 0 -1 represents the total partition capacity.
(parted) mkpart primary 0 -1
Warning: The resulting partition is not properly aligned for best performance.
Ignore/Cancel? Ignore
(parted)
(parted)
(parted) p
Model: Adaptec RAID 6 (scsi)
Disk /dev/sdb: 28.0TB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 17.4kB 28.0TB 28.0TB primary
(parted) quit
Information: You may need to update /etc/fstab.
The partition has been completed. Next, format the hard disk and mount it.
Centos6 already supports ext4 by default, so use ext4 file system
[root@ ~]$ mkfs.ext4 /dev/sdb1
mke2fs 1.41.12 (17-May-2010)
mkfs.ext4: Size of device /dev/sdb1 too big to be expressed in 32 bits
using a blocksize of 4096.
Follow the error prompt to try to change the blocksize to 4096.
Ext4 doesn't really support single-partition space of more than 16TB.
I decided to switch to xfs instead of struggling.
Start installing xfs
[root@ ~]$ yum install kmod-xfs xfsprogs
[root@ ~]$ modprobe xfs //load xfs file system module
[root@ ~]$ lsmod |grep xfs //Check if xfs module is loaded
Format and mount with xfs
[root@ ~]$ mkfs.xfs /dev/sdb1
mount /dev/sdb1 /data/
Add to fstab Make system start automount
[root@ ~]$ vi /etc/fstab //open fstab
UUID=c3749d2d-08b5-45a3-9aa4-312b6161d471 /data xfs defaults 1 2 //add mount information specifying file system xfs (uuid obtained by blkid /dev/sdb1 command)
And that's it!
[root@ ~]$ df -lTh
Filesystem Type Size Used Avail Use% Mounted on
/dev/sdb2 ext4 30G 5.2G 23G 19% /
tmpfs tmpfs 1.8G 0 1.8G 0% /dev/shm
/dev/sdb1 ext4 124M 31M 88M 26% /boot
/dev/sda1 xfs 26T 33M 26T 1% /data
The above is "CentOS 6.5 mount more than 16T of large-capacity storage space example analysis" all the content of this article, thank you for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.