当前位置:网站首页>(cobbler) partition problem and solution 2

(cobbler) partition problem and solution 2

2022-06-09 06:19:00 Desert Effect

Preface


Chapter one
https://blog.csdn.net/GX_1_11_real/article/details/103766100

Next to the last one , What follows is Cobbler Of ks file On disk 16T above when Solutions to partition and format exceptions .



【1】 Partition



When the disk capacity of our server is greater than 16TB when ( for example :12 individual 4T The hard disk of , Group raid5)

because ext4 file system , Default 32 Bits can only support 16T.Centos6 It can only be enabled after upgrading the tool and modifying the configuration 64 Bit mode , Ability to support 16T above . and centos5 And the following systems do not support this method

So we have cobbler ks Use... In configuration ext4, stay Linux During the installation of the operating system , There will be a phenomenon .
When the disk is smaller than 16T when , No problem yet . But when disk space is 16TB When above , Cannot format the full amount , Even after installing the system , We will find that the disk can only see 16T Size

ps:
In fact, this kind of , Reinstall the system at the beginning of discovery . If the service has been run and has been used for storage , It is recommended to remove the service and try to partition again .



demonstration :

part /boot --fstype ext4 --size=200
part biosboot --fstype=biosboot --size=1
part / --fstype ext4 --size=102400
part swap --size=4096
part /data --fstype ext4 --size=1 --grow


swap The size of the configuration is usually related to the size of the memory . When installing the system at ordinary times , Generally, by default, it is divided into memory 2 times , Because it is easier .
If it is k8s The server , Don't configure swap

The basic rule :

 Physical memory 	    Swap partition (SWAP)
<= 4G	    At least 4G
4~16G	    At least 8G
16G~64G	    At least 16G
64G~256G    At least 32G

–grow Is to allocate all the remaining capacity to data Partition , The disk space is greater than 16T There will be problems .



resolvent :


Method 1 :
Directly into xfs Or some other recognizable file system

About file system usage ext4 still xfs Or other , Although there are various online assessments , But in fact, it depends on personal habits .
Older employees generally like xfs, Stable and does not require other adjustments . New employees like ext4, because Centos7 Default ext4, And it is generally believed that the new technology is better than the old one .
and lvm Expansion and contraction may be used sometimes , But in fact, the safety and maintenance are poor . I haven't seen other staff use it several times , If there is not enough space, the disk is usually added directly ,ln Soft chain adjustment Directory ; You can directly adjust the disk size on the ECS .



Method 2 :
Repartition and format after installation
https://blog.csdn.net/GX_1_11_real/article/details/82053630

原网站

版权声明
本文为[Desert Effect]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/03/202203021425138451.html