pve磁盘玩转以及缩小原创调整容量的教程

首先是这备份问题好头疼啊。

xxx

那么如何解决啊下面是一些笔记或许对大家有用。

问题发生原因备份失败
配置文件1
nano /etc/pve/storage.cfg

path /var/lib/vz
        content iso,vztmpl,backup

lvmthin: local-lvm
        thinpool data
        vgname pve
        content rootdir,images

上面文件不能配置

thin_pool_autoextend_threshold 70
        thin_pool_autoextend_percent 10

某人工智能胡说八道,
通过pvesm list local-lvm可以验证/etc/pve/storage.cfg

image.png

配置文件2

/etc/lvm/lvm.conf
参考http://www.taodudu.cc/news/show-3228700.html?action=onClick

lvdisplay

得到如下结果

--- Logical volume ---
  LV Name                data
  VG Name                pve
  LV UUID                MBslYS-zRRV-siIk-s0pv-K2FV-zO4E-9rrN0I
  LV Write Access        read/write (activated read only)
  LV Creation host, time proxmox, 2023-12-14 00:30:49 +0800
  LV Pool metadata       data_tmeta
  LV Pool data           data_tdata
  LV Status              available
  # open                 0
  LV Size                141.60 GiB
  Allocated pool data    46.89%
  Allocated metadata     2.50%
  Current LE             36250
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:5

  --- Logical volume ---
  LV Path                /dev/pve/swap
  LV Name                swap
  VG Name                pve
  LV UUID                UkDL1Q-eiJr-p8rE-sc0O-zZ3E-I2Ro-bgKFMo
  LV Write Access        read/write
  LV Creation host, time proxmox, 2023-12-14 00:30:41 +0800
  LV Status              available
  # open                 2
  LV Size                7.48 GiB
  Current LE             1916
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:0

  --- Logical volume ---
  LV Path                /dev/pve/root
  LV Name                root
  VG Name                pve
  LV UUID                APO9wB-5A9e-0Njg-zWKl-ke0V-kkjt-dH5b7n
  LV Write Access        read/write
  LV Creation host, time proxmox, 2023-12-14 00:30:41 +0800
  LV Status              available
  # open                 1
  LV Size                <69.50 GiB
  Current LE             17791
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:1

  --- Logical volume ---
  LV Path                /dev/pve/vm-106-state-test3
  LV Name                vm-106-state-test3
  VG Name                pve
  LV UUID                e1TqST-rTxm-Rm1r-8B0e-WuKP-536q-aurB2e
  LV Write Access        read/write
  LV Creation host, time pve, 2023-12-15 13:56:59 +0800
  LV Pool name           data
  LV Status              available
  # open                 0
  LV Size                <4.49 GiB
  Mapped size            44.25%
  Current LE             1149
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:12

  --- Logical volume ---
  LV Path                /dev/pve/snap_vm-106-disk-0_test3
  LV Name                snap_vm-106-disk-0_test3
  VG Name                pve
  LV UUID                E6S3rG-UhIq-iMCn-aFRt-6MPl-Htyn-Q41on8
  LV Write Access        read only
  LV Creation host, time pve, 2023-12-15 13:57:02 +0800
  LV Pool name           data
  LV Status              NOT available
  LV Size                32.00 GiB
  Current LE             8192
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto

  --- Logical volume ---
  LV Path                /dev/pve/vm-106-state-takesho
  LV Name                vm-106-state-takesho
  VG Name                pve
  LV UUID                y7POy9-iJKa-P2GL-0wY1-4BcW-Frft-Gt1Gcf
  LV Write Access        read/write
  LV Creation host, time pve, 2024-01-11 13:35:25 +0800
  LV Pool name           data
  LV Status              available
  # open                 0
  LV Size                6.55 GiB
  Mapped size            4.54%
  Current LE             1677
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:15

  --- Logical volume ---
  LV Path                /dev/pve/snap_vm-106-disk-0_takesho
  LV Name                snap_vm-106-disk-0_takesho
  VG Name                pve
  LV UUID                ODBgAH-zMhu-sZdx-0KfP-V2vq-TlGI-Bg9B3F
  LV Write Access        read only
  LV Creation host, time pve, 2024-01-11 13:35:26 +0800
  LV Pool name           data
  LV Status              NOT available
  LV Size                32.00 GiB
  Current LE             8192
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto

  --- Logical volume ---
  LV Path                /dev/pve/vm-106-state-backup1
  LV Name                vm-106-state-backup1
  VG Name                pve
  LV UUID                v0LsqH-4xTZ-YI4E-Xtea-kJuR-T4Rq-xKf0n9
  LV Write Access        read/write
  LV Creation host, time pve, 2024-01-28 16:42:59 +0800
  LV Pool name           data
  LV Status              available
  # open                 0
  LV Size                6.55 GiB
  Mapped size            45.76%
  Current LE             1677
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:16

  --- Logical volume ---
  LV Path                /dev/pve/snap_vm-106-disk-0_backup1
  LV Name                snap_vm-106-disk-0_backup1
  VG Name                pve
  LV UUID                h43vfk-lHMk-Xui7-bXH9-hgiT-zzt0-XkwWVL
  LV Write Access        read only
  LV Creation host, time pve, 2024-01-28 16:43:05 +0800
  LV Pool name           data
  LV Status              NOT available
  LV Size                32.00 GiB
  Current LE             8192
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto

  --- Logical volume ---
  LV Path                /dev/pve/vm-106-disk-0
  LV Name                vm-106-disk-0
  VG Name                pve
  LV UUID                07IFFs-ERQq-SGOV-2s7E-nWMo-F79U-3hLrUe
  LV Write Access        read/write
  LV Creation host, time pve, 2024-01-28 19:30:25 +0800
  LV Pool name           data
  LV Thin origin name    snap_vm-106-disk-0_takesho
  LV Status              available
  # open                 0
  LV Size                30.00 GiB
  Mapped size            45.55%
  Current LE             7680
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:6

  --- Logical volume ---
  LV Path                /dev/pve/vm-100-disk-0
  LV Name                vm-100-disk-0
  VG Name                pve
  LV UUID                42U8cS-Aepz-SdzW-alW3-KXoL-Z8oI-Ue4YMy
  LV Write Access        read/write
  LV Creation host, time pve, 2024-01-28 19:31:48 +0800
  LV Pool name           data
  LV Status              available
  # open                 0
  LV Size                32.00 GiB
  Mapped size            0.00%
  Current LE             8192
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:7

  --- Logical volume ---
  LV Path                /dev/pve/vm-100-disk-1
  LV Name                vm-100-disk-1
  VG Name                pve
  LV UUID                uYIKBo-HX1S-Oe3U-Rv3z-wBNM-EW8n-jBdZ1q
  LV Write Access        read/write
  LV Creation host, time pve, 2024-01-28 19:31:49 +0800
  LV Pool name           data
  LV Status              available
  # open                 0
  LV Size                294.00 GiB
  Mapped size            11.46%
  Current LE             75264
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:8

  --- Logical volume ---
  LV Path                /dev/pve/vm-100-disk-2
  LV Name                vm-100-disk-2
  VG Name                pve
  LV UUID                W7RkIo-vux7-UsKW-Ye7N-KRem-DqJh-MGY9LI
  LV Write Access        read/write
  LV Creation host, time pve, 2024-01-28 19:31:49 +0800
  LV Pool name           data
  LV Status              available
  # open                 0
  LV Size                520.00 MiB
  Mapped size            78.92%
  Current LE             130
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:9

执行调整命令

  • 5
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值