Jump to content
  • Hello visitors, welcome to the Hacker World Forum!

    Red Team 1949  (formerly CHT Attack and Defense Team) In this rapidly changing Internet era, we maintain our original intention and create the best community to jointly exchange network technologies. You can obtain hacker attack and defense skills and knowledge in the forum, or you can join our Telegram communication group to discuss and communicate in real time. All kinds of advertisements are prohibited in the forum. Please register as a registered user to check our usage and privacy policy. Thank you for your cooperation.

    TheHackerWorld Official

Recommended Posts

linux新增了一块硬盘,首先通过fdisk -l查看:

image-10.png

然后fdisk /dev/vdb创建分区

image-11-1024x311.png

以此输入n p

image-12-1024x291.png
image-13-1024x150.png

first sector和last sector默认,直接回车,输入t L

image-14-1024x735.png

输入8e,采用LVM分区

image-15-1024x333.png

按w保存。

image-16-1024x204.png

然后pvcreate /dev/vdb1,vgcreate vg_vdb /dev/vdb1

image-17-827x1024.png

lvcreate -L 1000G -n lv_u01 vg_vdb,mkfs.xfs /dev/vg_vdb/lv_u01

新建/u01目录,挂载分区mount /dev/vg_vdb/lv_u01 /u01

image-19-1024x351.png

在/etc/fstab中添加/dev/mapper/vg_vdb-lv_u01 /u01 xfs defaults 0 0,即可。

Linux LVM分区扩容方法,可以参见https://www.eumz.com/2018-04/1461.html

Link to post
Link to comment
Share on other sites

 Share

discussion group

discussion group

    You don't have permission to chat.
    • Recently Browsing   0 members

      • No registered users viewing this page.
    ×
    ×
    • Create New...