Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Centos 7 formats 10T and above high-capacity hard drives

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

1, Install yum support package

yum install xfs* parted -y

2. View disk information

fdisk -l……Disk /dev/sdb: 9796.3 GB, 9796283531264 bytes, 19133366272 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 262144 bytes / 262144 bytes

3. Create a partition

parted -s /dev/sdb mklabel gptparted -s /dev/sdb mkpart primary 2048s 100%

4. Format partition

[root@localhost x86_64]# mkfs.xfs -f /dev/sdb1 meta-data=/dev/sdb1 isize=512 agcount=32, agsize=74739712 blks = sectsz=512 attr=2, projid32bit=1 = crc=1 finobt=0, sparse=0data = bsize=4096 blocks=2391670272, imaxpct=5 = sunit=64 swidth=64 blksnaming =version 2 bsize=4096 ascii-ci=0 ftype=1log =internal log bsize=4096 blocks=521728, version=2 = sectsz=512 sunit=64 blks, lazy-count=1realtime =none extsz=4096 blocks=0, rtextents=0

5. Suspended disk

mkdir /u01mount /dev/sdb1 /u01echo "/dev/sdb1 /u01 xfs defaults 0 0 ">> /etc/fstab

6. View disk information

[root@localhost x86_64]# df -hFilesystem Size Used Avail Use% Mounted on……/dev/sdb1 9.0T 34M 9.0T 1% /u01

Done!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report