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

Partition formatting and LVM management of disk

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

Share

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

fdisk -l View disk status

fdisk for mbr partitioning

m View Help

The fdisk command creates partitions

The fdisk command deletes partitions

gfdisk performs gpt partitioning (gdisk partitioning method is similar to fdisk)

Create a partition using the gdisk command

Delete partitions using the gdisk command (same as fdisk)

Partitioning with the parted command

Create a partition using the parted command

Delete partition with parted

formatted

Format with mkfs/mkswap Format partitions with mkfs.xfs

mkswap formatting partitions

Modify fstab file to achieve automatic mount

Use blkid command to copy uuid of sdb1 and edit/etc/fstab file

Add disk to

LVM Management

First create physical volumes

The physical volume is then added to the volume group (PE size can be specified when creating the volume group

create logical volumes

Create a logical volume snapshot

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