1. Check Linux disk status df -lh The lsblk command is used to list information about all available block devices and display the dependencies between them. Create a new disk partition fdisk /dev/vda Change the new partition disk type Save the partition operation and restart the operating system Formatting a partition mkfs.xfs /dev/vda3 Create a new physical volume pvcreate /dev/vda3 #The pvcreate command is used to initialize the physical hard disk partition as a physical volume for LVM use. View lvm volume group information vgdisplay #The vgdisplay command is used to display the information of the LVM volume group. If the "volume group" parameter is not specified, the properties of all volume groups are displayed separately Adding physical volumes to a volume group vgextend /dev/mapper/vg --maycur /dev/vda3
Start expansion lvextend -L +49G /dev/mapper/vg --maycur-root /dev/vda3 #lvextend command is used to expand the space size of the logical volume online without interrupting the application's access to the logical volume Synchronize file system xfs_growfs /dev/mapper/vg --maycur-root This is the end of this article about expanding the root directory under the Linux system. For more relevant content about expanding the root directory of Linux, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope everyone will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Solution to forgetting mysql database password
>>: HTML implements read-only text box and cannot modify the content
If you have just come into contact with Linux, th...
1. Install kvm virtualization : : : : : : : : : :...
This article shares the detailed steps of install...
This article uses Vue to simply implement the cha...
<br />Sometimes you may be asked questions l...
Table of contents describe accomplish The project...
W3Cschool explains it this way The <meta> el...
Recently, when I was learning docker, I found tha...
Generally speaking, we can have the following two...
Sublime Sublime Text is a code editor (Sublime Te...
Project scenario: There is a <ul> tag on th...
Table of contents 1. Union Type 2. Crossover Type...
Using the knowledge of CSS variables, I will dire...
When joining a Windows 2008 server subdomain to a...
Method 1: hostnamectl modification Step 1 Check t...