Fdisk-cu Creating a partition-------------
After adding the entry, then follow the steps, first add a hard disk, size yourself, then enter the command, choose N to create the partition, then select the primary partition (P) or the extended partition (e) You want to create, then enter, then select how large the partition you want to create, p view, t Modify, and then select the parameters inside, Then enter P to view or save W directly.
Pvcreate--------------convert partitions into physical volumes
Vgcreate--------------placing a physical volume into a volume group
Lvcreate-l +ng-n lv01 vg01----Assigning volume groups to logical volumes
Okay, then.
Formatting
mkfs.ext4/dev/which plate?
or mkswap/dev/which disk
Partition:
Free-m swapon------Open
Free-m swapoff------Off
Mount------------------Mount Command
blkid/dev/which disk/---view UUID
Vim/etc/fatab--------Edit Auto mount on next boot
Summary steps: Create a disk-------format--------mount
Cat/proc/partitions |grep which disk----------view mount
Fdisk-cul---------------------View disk space
Df-h-------------------------View Disk Mounts
Df-i--------------------------View Disk inode utilization
LVS----------------------------View Logical Volume mount status
Summary: Overall, zoning management I know this, but there are some shortcomings I hope that I will work harder to do
Linux Operations Partition Management