Loading... <div class="tip share">请注意,本文编写于 455 天前,最后修改于 448 天前,其中某些信息可能已经过时。</div> # **1.**使用fdisk和lsblk查看当前设备和分区的信息: **root@ubuntu2004temp2:/home/dinge# lsblk** **NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT** **loop0 7:0 0 55.7M 1 loop /snap/core18/2829** **loop1 7:1 0 64M 1 loop /snap/core20/2318** **loop2 7:2 0 91.9M 1 loop /snap/lxd/24061** **loop3 7:3 0 55.4M 1 loop /snap/core18/2128** **loop4 7:4 0 38.8M 1 loop /snap/snapd/21759** **loop5 7:5 0 91.9M 1 loop /snap/lxd/29619** **sda 8:0 0 50G 0 disk ** **├─sda1 8:1 0 512M 0 part /boot/efi** **├─sda2 8:2 0 1G 0 part /boot** **└─sda3 8:3 0 48.5G 0 part ** ** └─ubuntu--vg-ubuntu--lv 253:0 0 24.3G 0 lvm /** **sdb 8:16 0 1T 0 disk ** **└─sdb1 8:17 0 1024G 0 part ** ** └─vg\_veeam-lv\_veeam 253:1 0 1024G 0 lvm /veeamrepo** **sdc 8:32 0 1T 0 disk ** **root@ubuntu2004temp2:/home/dinge# fdisk -l** **Disk /dev/loop0: 55.68 MiB, 58363904 bytes, 113992 sectors** **Units: sectors of 1 \* 512 = 512 bytes** **Sector size (logical/physical): 512 bytes / 512 bytes** **I/O size (minimum/optimal): 512 bytes / 512 bytes** **Disk /dev/loop1: 63.97 MiB, 67051520 bytes, 130960 sectors** **Units: sectors of 1 \* 512 = 512 bytes** **Sector size (logical/physical): 512 bytes / 512 bytes** **I/O size (minimum/optimal): 512 bytes / 512 bytes** **Disk /dev/loop2: 91.85 MiB, 96292864 bytes, 188072 sectors** **Units: sectors of 1 \* 512 = 512 bytes** **Sector size (logical/physical): 512 bytes / 512 bytes** **I/O size (minimum/optimal): 512 bytes / 512 bytes** **Disk /dev/loop3: 55.45 MiB, 58130432 bytes, 113536 sectors** **Units: sectors of 1 \* 512 = 512 bytes** **Sector size (logical/physical): 512 bytes / 512 bytes** **I/O size (minimum/optimal): 512 bytes / 512 bytes** **Disk /dev/loop4: 38.85 MiB, 40714240 bytes, 79520 sectors** **Units: sectors of 1 \* 512 = 512 bytes** **Sector size (logical/physical): 512 bytes / 512 bytes** **I/O size (minimum/optimal): 512 bytes / 512 bytes** **Disk /dev/loop5: 91.9 MiB, 96346112 bytes, 188176 sectors** **Units: sectors of 1 \* 512 = 512 bytes** **Sector size (logical/physical): 512 bytes / 512 bytes** **I/O size (minimum/optimal): 512 bytes / 512 bytes** **Disk /dev/sda: 50 GiB, 53687091200 bytes, 104857600 sectors** **Disk model: Virtual disk ** **Units: sectors of 1 \* 512 = 512 bytes** **Sector size (logical/physical): 512 bytes / 512 bytes** **I/O size (minimum/optimal): 512 bytes / 512 bytes** **Disklabel type: gpt** **Disk identifier: DAC23A5E-2AD1-4892-8442-3DF6A646F9D7** **Device Start End Sectors Size Type** **/dev/sda1 2048 1050623 1048576 512M EFI System** **/dev/sda2 1050624 3147775 2097152 1G Linux filesystem** **/dev/sda3 3147776 104855551 101707776 48.5G Linux filesystem** **Disk /dev/sdb: 1 TiB, 1099511627776 bytes, 2147483648 sectors** **Disk model: Virtual disk ** **Units: sectors of 1 \* 512 = 512 bytes** **Sector size (logical/physical): 512 bytes / 512 bytes** **I/O size (minimum/optimal): 512 bytes / 512 bytes** **Disklabel type: gpt** **Disk identifier: 333BFE9A-4E4E-491B-A79B-C87E27A45B9A** **Device Start End Sectors Size Type** **/dev/sdb1 2048 2147481599 2147479552 1024G Linux filesystem** **Disk /dev/sdc: 1 TiB, 1099511627776 bytes, 2147483648 sectors** **Disk model: Virtual disk ** **Units: sectors of 1 \* 512 = 512 bytes** **Sector size (logical/physical): 512 bytes / 512 bytes** **I/O size (minimum/optimal): 512 bytes / 512 bytes** **Disk /dev/mapper/ubuntu--vg-ubuntu--lv: 24.26 GiB, 26038239232 bytes, 50855936 sectors** **Units: sectors of 1 \* 512 = 512 bytes** **Sector size (logical/physical): 512 bytes / 512 bytes** **I/O size (minimum/optimal): 512 bytes / 512 bytes** **Disk /dev/mapper/vg\_veeam-lv\_veeam: 1023.102 GiB, 1099507433472 bytes, 2147475456 sectors** **Units: sectors of 1 \* 512 = 512 bytes** **Sector size (logical/physical): 512 bytes / 512 bytes** **I/O size (minimum/optimal): 512 bytes / 512 bytes** # **2.PV扩容** ## **使用pvcreate创建一个新Physical Volume,以便LVM识别。pvcreate会将LVM disk label写入device,并初始化LVM metadata areas** **root@ubuntu2004temp2:/home/dinge# sudo pvcreate /dev/sdc** ** Physical volume "/dev/sdc" successfully created.** ## **此时使用pvdisplay查看PV物理卷** **root@ubuntu2004temp2:/home/dinge# pvdisplay** ** --- Physical volume ---** ** PV Name /dev/sdb1** ** VG Name vg\_veeam** ** PV Size <1024.00 GiB / not usable 2.00 MiB** ** Allocatable yes (but full)** ** PE Size 4.00 MiB** ** Total PE 262143** ** Free PE 0** ** Allocated PE 262143** ** PV UUID meMCq1-ownS-Shy6-zDyn-bvQs-W8wS-ZMsdJ0** --- ** --- Physical volume ---** ** PV Name /dev/sda3** ** VG Name ubuntu-vg** ** PV Size <48.50 GiB / not usable 2.00 MiB** ** Allocatable yes ** ** PE Size 4.00 MiB** ** Total PE 12415** ** Free PE 6207** ** Allocated PE 6208** ** PV UUID mVaauH-2uyS-6pcd-0Fcf-BMEo-cQei-eYugvy** --- ** "/dev/sdc" is a new physical volume of "1.00 TiB"** ** --- NEW Physical volume ---** ** PV Name /dev/sdc** ** VG Name ** ** PV Size 1.00 TiB** ** Allocatable NO** ** PE Size 0 ** ** Total PE 0** ** Free PE 0** ** Allocated PE 0** ** PV UUID cWzDlt-hfWp-AYkt-hlZr-AO0T-RXHG-YjJRmf** --- # **3.VG扩容** ## **此时使用vgdisplay查看VG信息** **root@ubuntu2004temp2:/home/dinge# vgdisplay** ** --- Volume group ---** ** VG Name vg\_veeam** ** System ID ** ** Format lvm2** ** Metadata Areas 1** ** Metadata Sequence No 2** ** VG Access read/write** ** VG Status resizable** ** MAX LV 0** ** Cur LV 1** ** Open LV 1** ** Max PV 0** ** Cur PV 1** ** Act PV 1** ** VG Size <1024.00 GiB** ** PE Size 4.00 MiB** ** Total PE 262143** ** Alloc PE / Size 262143 / <1024.00 GiB** ** Free PE / Size 0 / 0 ** ** VG UUID wrFlKy-z6NP-7hRd-jihp-A8c3-kGeT-8Qavik** --- ** --- Volume group ---** ** VG Name ubuntu-vg** ** System ID ** ** Format lvm2** ** Metadata Areas 1** ** Metadata Sequence No 2** ** VG Access read/write** ** VG Status resizable** ** MAX LV 0** ** Cur LV 1** ** Open LV 1** ** Max PV 0** ** Cur PV 1** ** Act PV 1** ** VG Size <48.50 GiB** ** PE Size 4.00 MiB** ** Total PE 12415** ** Alloc PE / Size 6208 / 24.25 GiB** ** Free PE / Size 6207 / <24.25 GiB** ** VG UUID YLsqbd-8DTr-A1zv-7l1k-tBTd-kIrW-Qim03x** --- ## **使用vgextend,将新的PV加入VG** **root@ubuntu2004temp2:/home/dinge# vgextend vg\_veeam /dev/sdc** ** Volume group "vg\_veeam" successfully extended** ## **此时使用vgdisplay查看VG信息** **root@ubuntu2004temp2:/home/dinge# vgdisplay** ** --- Volume group ---** ** VG Name vg\_veeam** ** System ID ** ** Format lvm2** ** Metadata Areas 2** ** Metadata Sequence No 3** ** VG Access read/write** ** VG Status resizable** ** MAX LV 0** ** Cur LV 1** ** Open LV 1** ** Max PV 0** ** Cur PV 2** ** Act PV 2** ** VG Size <2.00 TiB** ** PE Size 4.00 MiB** ** Total PE 524286** ** Alloc PE / Size 262143 / <1024.00 GiB** ** Free PE / Size 262143 / <1024.00 GiB** ** VG UUID wrFlKy-z6NP-7hRd-jihp-A8c3-kGeT-8Qavik** --- ** --- Volume group ---** ** VG Name ubuntu-vg** ** System ID ** ** Format lvm2** ** Metadata Areas 1** ** Metadata Sequence No 2** ** VG Access read/write** ** VG Status resizable** ** MAX LV 0** ** Cur LV 1** ** Open LV 1** ** Max PV 0** ** Cur PV 1** ** Act PV 1** ** VG Size <48.50 GiB** ** PE Size 4.00 MiB** ** Total PE 12415** ** Alloc PE / Size 6208 / 24.25 GiB** ** Free PE / Size 6207 / <24.25 GiB** ** VG UUID YLsqbd-8DTr-A1zv-7l1k-tBTd-kIrW-Qim03x** ** **可以看到空间都体现在`Free PE / Size`项里,有2T的空间可用。 # ** 4.LV扩容** ## **使用lvdisplay查看LV信息** **root@ubuntu2004temp2:/home/dinge# lvdisplay** ** --- Logical volume ---** ** LV Path /dev/vg\_veeam/lv\_veeam** ** LV Name lv\_veeam** ** VG Name vg\_veeam** ** LV UUID C97C8G-FctL-P7iS-2gyC-PE33-v0YP-VeBQFO** ** LV Write Access read/write** ** LV Creation host, time ubuntu2004temp2, 2024-07-30 15:53:24 +0800** ** LV Status available** ** # open 1** ** LV Size <1024.00 GiB** ** Current LE 262143** ** Segments 1** ** Allocation inherit** ** Read ahead sectors auto** ** - currently set to 256** ** Block device 253:1** --- ** --- Logical volume ---** ** LV Path /dev/ubuntu-vg/ubuntu-lv** ** LV Name ubuntu-lv** ** VG Name ubuntu-vg** ** LV UUID qf6X66-UkVG-v7p1-3CeZ-gxqg-Mvss-KFT1Tz** ** LV Write Access read/write** ** LV Creation host, time ubuntu-server, 2024-07-05 10:06:34 +0800** ** LV Status available** ** # open 1** ** LV Size 24.25 GiB** ** Current LE 6208** ** Segments 1** ** Allocation inherit** ** Read ahead sectors auto** ** - currently set to 256** ** Block device 253:0** ## ** **使用lvextend对LV进行扩容** ** **root@ubuntu2004temp2:/home/dinge# lvextend -l +100%FREE /dev/vg\_veeam/lv\_veeam** ** Size of logical volume vg\_veeam/lv\_veeam changed from <1024.00 GiB (262143 extents) to <2.00 TiB (524286 extents).** ** Logical volume vg\_veeam/lv\_veeam successfully resized.** **再次使用lvdisplay查看LV信息,** **root@ubuntu2004temp2:/home/dinge# lvdisplay** ** --- Logical volume ---** ** LV Path /dev/vg\_veeam/lv\_veeam** ** LV Name lv\_veeam** ** VG Name vg\_veeam** ** LV UUID C97C8G-FctL-P7iS-2gyC-PE33-v0YP-VeBQFO** ** LV Write Access read/write** ** LV Creation host, time ubuntu2004temp2, 2024-07-30 15:53:24 +0800** ** LV Status available** ** # open 1** ** LV Size <2.00 TiB** ** Current LE 524286** ** Segments 2** ** Allocation inherit** ** Read ahead sectors auto** ** - currently set to 256** ** Block device 253:1** --- ** --- Logical volume ---** ** LV Path /dev/ubuntu-vg/ubuntu-lv** ** LV Name ubuntu-lv** ** VG Name ubuntu-vg** ** LV UUID qf6X66-UkVG-v7p1-3CeZ-gxqg-Mvss-KFT1Tz** ** LV Write Access read/write** ** LV Creation host, time ubuntu-server, 2024-07-05 10:06:34 +0800** ** LV Status available** ** # open 1** ** LV Size 24.25 GiB** ** Current LE 6208** ** Segments 1** ** Allocation inherit** ** Read ahead sectors auto** ** - currently set to 256** ** Block device 253:0** --- # **5.XFS拉伸** ## **查看目前分区情况** **root@ubuntu2004temp2:/home/dinge# df -h** **Filesystem Size Used Avail Use% Mounted on** **udev 3.9G 0 3.9G 0% /dev** **tmpfs 792M 1.5M 790M 1% /run** **/dev/mapper/ubuntu--vg-ubuntu--lv 24G 5.8G 17G 26% /** **tmpfs 3.9G 0 3.9G 0% /dev/shm** **tmpfs 5.0M 0 5.0M 0% /run/lock** **tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup** **/dev/loop0 56M 56M 0 100% /snap/core18/2829** **/dev/loop2 92M 92M 0 100% /snap/lxd/24061** **/dev/loop1 64M 64M 0 100% /snap/core20/2318** **/dev/loop4 39M 39M 0 100% /snap/snapd/21759** **/dev/loop3 56M 56M 0 100% /snap/core18/2128** **/dev/loop5 92M 92M 0 100% /snap/lxd/29619** **/dev/sda2 974M 212M 696M 24% /boot** **/dev/sda1 511M 6.1M 505M 2% /boot/efi** **/dev/mapper/vg\_veeam-lv\_veeam 1.0T 1.0T 196K 100% /veeamrepo** **tmpfs 792M 0 792M 0% /run/user/1000** ## **使用xfs\_growfs命令对分区进行拉伸** **root@ubuntu2004temp2:/home/dinge# xfs\_growfs /dev/mapper/vg\_veeam-lv\_veeam** **meta-data=/dev/mapper/vg\_veeam-lv\_veeam isize=512 agcount=4, agsize=67108608 blks** ** = sectsz=512 attr=2, projid32bit=1** ** = crc=1 finobt=1, sparse=1, rmapbt=0** ** = reflink=1** **data = bsize=4096 blocks=268434432, imaxpct=25** ** = sunit=0 swidth=0 blks** **naming =version 2 bsize=4096 ascii-ci=0, ftype=1** **log =internal log bsize=4096 blocks=131071, version=2** ** = sectsz=512 sunit=0 blks, lazy-count=1** **realtime =none extsz=4096 blocks=0, rtextents=0** **data blocks changed from 268434432 to 536868864** ## **再次查看分区情况** **root@ubuntu2004temp2:/home/dinge# df -Th** **Filesystem Type Size Used Avail Use% Mounted on** **udev devtmpfs 3.9G 0 3.9G 0% /dev** **tmpfs tmpfs 792M 1.5M 790M 1% /run** **/dev/mapper/ubuntu--vg-ubuntu--lv ext4 24G 5.8G 17G 26% /** **tmpfs tmpfs 3.9G 0 3.9G 0% /dev/shm** **tmpfs tmpfs 5.0M 0 5.0M 0% /run/lock** **tmpfs tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup** **/dev/loop0 squashfs 56M 56M 0 100% /snap/core18/2829** **/dev/loop2 squashfs 92M 92M 0 100% /snap/lxd/24061** **/dev/loop1 squashfs 64M 64M 0 100% /snap/core20/2318** **/dev/loop4 squashfs 39M 39M 0 100% /snap/snapd/21759** **/dev/loop3 squashfs 56M 56M 0 100% /snap/core18/2128** **/dev/loop5 squashfs 92M 92M 0 100% /snap/lxd/29619** **/dev/sda2 ext4 974M 212M 696M 24% /boot** **/dev/sda1 vfat 511M 6.1M 505M 2% /boot/efi** **/dev/mapper/vg\_veeam-lv\_veeam xfs 2.0T 1.1T 1017G 51% /veeamrepo** **tmpfs tmpfs 792M 0 792M 0% /run/user/1000** # **操作结束!** 最后修改:2025 年 03 月 24 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 如果觉得我的文章对你有用,请随意赞赏
13 条评论
寻找华纳圣淘沙公司开户代理(183-8890-9465薇-STS5099】
华纳圣淘沙官方合作开户渠道(183-8890-9465薇-STS5099】
华纳圣淘沙公司开户代理服务(183-8890-9465薇-STS5099】
华纳圣淘沙公司开户咨询热线(183-8890-9465薇-STS5099】
联系客服了解华纳圣淘沙开户
(183-8890-9465薇-STS5099】
华纳圣淘沙公司开户专属顾问
(183-8890-9465薇-STS5099】
华纳圣淘沙公司开户新手教程
零基础学会(183-8890-9465薇-STS5099)
华纳圣淘沙公司开户
华纳圣淘沙公司开户保姆级教程(183-8890-9465薇-STS5099)
一步步教你开通华纳圣淘沙公司账户(183-8890-9465薇-STS5099)
华纳圣淘沙公司开户分步图解
首次开户必看:(183-8890-9465薇-STS5099)
华纳圣淘沙全攻略
华纳圣淘沙公司开户实操手册(183-8890-9465薇-STS5099)
华纳圣淘沙开户流程视频教程
手把手教学:(183-8890-9465薇-STS5099)
华纳圣淘沙公司开户
华纳圣淘沙公司开户完全指南(183-8890-9465薇-STS5099)
华纳圣淘沙开户步骤详解(183-8890-9465—?薇-STS5099【6011643】
华纳圣淘沙公司开户流程全解析(183-8890-9465—?薇-STS5099【6011643】
华纳圣淘沙公司账户注册指南(183-8890-9465—?薇-STS5099【6011643】
新手如何开通华纳圣淘沙公司账户(183-8890-9465—?薇-STS5099【6011643】
华纳圣淘沙企业开户标准流程(183-8890-9465—?薇-STS5099【6011643】
华纳圣淘沙公司开户:从零到一(183-8890-9465—?薇-STS5099【6011643】
官方指南:华纳圣淘沙公司开户流程(183-8890-9465—?薇-STS5099【6011643】
华纳圣淘沙公司开户流程说明书(183-8890-9465—?薇-STS5099【6011643】
华纳圣淘沙开户步骤详解(183-8890-9465—?薇-STS5099【6011643】
华纳圣淘沙公司开户流程全解析(183-8890-9465—?薇-STS5099【6011643】
华纳圣淘沙公司账户注册指南(183-8890-9465—?薇-STS5099【6011643】
新手如何开通华纳圣淘沙公司账户(183-8890-9465—?薇-STS5099【6011643】
华纳圣淘沙企业开户标准流程(183-8890-9465—?薇-STS5099【6011643】
华纳圣淘沙公司开户:从零到一(183-8890-9465—?薇-STS5099【6011643】
官方指南:华纳圣淘沙公司开户流程(183-8890-9465—?薇-STS5099【6011643】
华纳圣淘沙公司开户流程说明书(183-8890-9465—?薇-STS5099【6011643】
果博东方客服开户联系方式【182-8836-2750—】?薇- cxs20250806】
果博东方公司客服电话联系方式【182-8836-2750—】?薇- cxs20250806】
果博东方开户流程【182-8836-2750—】?薇- cxs20250806】
果博东方客服怎么联系【182-8836-2750—】?薇- cxs20250806】
果博东方客服开户联系方式【182-8836-2750—】?薇- cxs20250806】
果博东方公司客服电话联系方式【182-8836-2750—】?薇- cxs20250806】
果博东方开户流程【182-8836-2750—】?薇- cxs20250806】
果博东方客服怎么联系【182-8836-2750—】?薇- cxs20250806】
新盛客服电话是多少?(?183-8890-9465—《?薇-STS5099】【
新盛开户专线联系方式?(?183-8890--9465—《?薇-STS5099】【?扣6011643??】
新盛客服开户电话全攻略,让娱乐更顺畅!(?183-8890--9465—《?薇-STS5099】客服开户流程,华纳新盛客服开户流程图(?183-8890--9465—《?薇-STS5099】
华纳东方明珠客服电话是多少?(??155--8729--1507?《?薇-STS5099】【?扣6011643?】
华纳东方明珠开户专线联系方式?(??155--8729--1507?《?薇-STS5099】【?扣6011643?】
华纳东方明珠客服电话是多少?(▲18288362750?《?微信STS5099? 】【╃q 2704132802╃】
华纳东方明珠开户专线联系方式?(▲18288362750?《?微信STS5099? 】【╃q 2704132802╃】
如何联系华纳东方明珠客服?(▲18288362750?《?微信STS5099? 】【╃q 2704132802╃】
华纳东方明珠官方客服联系方式?(▲18288362750?《?微信STS5099? 】【╃q 2704132802╃】
华纳东方明珠客服热线?(▲18288362750?《?微信STS5099? 】【╃q 2704132802╃】
华纳东方明珠开户客服电话?(▲182(▲18288362750?《?微信STS5099? 】【╃q 2704132802╃】
华纳东方明珠24小时客服电话?(▲18288362750?《?微信STS5099? 】【╃q 2704132802╃】
华纳东方明珠客服邮箱?(▲18288362750?《?微信STS5099? 】【╃q 2704132802╃】
华纳东方明珠官方客服在线咨询?(▲18288362750?《?微信STS5099? 】【╃q 2704132802╃】
华纳东方明珠客服微信?(▲18288362750?《?微信STS5099? 】【╃q 2704132802╃】
华纳东方明珠客服电话是多少?(▲18288362750?《?微信STS5099? 】【╃q 2704132802╃】
华纳东方明珠开户专线联系方式?(▲18288362750?《?微信STS5099? 】【╃q 2704132802╃】
如何联系华纳东方明珠客服?(▲18288362750?《?微信STS5099? 】【╃q 2704132802╃】
华纳东方明珠官方客服联系方式?(▲18288362750?《?微信STS5099? 】【╃q 2704132802╃】
华纳东方明珠客服热线?(▲18288362750?《?微信STS5099? 】【╃q 2704132802╃】
华纳东方明珠开户客服电话?(▲182(▲18288362750?《?微信STS5099? 】【╃q 2704132802╃】
华纳东方明珠24小时客服电话?(▲18288362750?《?微信STS5099? 】【╃q 2704132802╃】
华纳东方明珠客服邮箱?(▲18288362750?《?微信STS5099? 】【╃q 2704132802╃】
华纳东方明珠官方客服在线咨询?(▲18288362750?《?微信STS5099? 】【╃q 2704132802╃】
华纳东方明珠客服微信?(▲18288362750?《?微信STS5099? 】【╃q 2704132802╃】
华纳公司合作开户所需材料?电话号码15587291507 微信STS5099
华纳公司合作开户所需材料?电话号码15587291507 微信STS5099
华纳公司合作开户所需材料?电话号码15587291507 微信STS5099
华纳公司合作开户所需材料?电话号码15587291507 微信STS5099
华纳公司合作开户所需材料?电话号码15587291507 微信STS5099
华纳公司合作开户所需材料?电话号码15587291507 微信STS5099
华纳公司合作开户所需材料?电话号码15587291507 微信STS5099
华纳公司合作开户所需材料?电话号码15587291507 微信STS5099
hello
新盘首开 新盘首开 征召客户!!!coinsrore.com