美文网首页
pve磁盘玩转以及缩小原创调整容量的教程

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

作者: 吉凶以情迁 | 来源:发表于2024-01-27 19:45 被阅读0次

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


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

执行调整命令

相关文章

  • linux 磁盘逻辑卷的安装

    fdisk /dev/sdc 对具体的硬盘操作(/dev/sdc1 则错误)§作用:动态调整磁盘容量,从而提高磁盘...

  • Glide(图片加载)

    Glide Glide使用文档 Glide 系列教程 玩转Glide的Target对象 Glide-内存缓存与磁盘...

  • day20磁盘内部知识

    磁盘容量计算 512字节*每磁盘区数=磁道大小 磁道大小*磁道数=盘面大小 盘面大小*磁头数=磁盘容量 磁盘容量=...

  • PVE 直接安装最新版 Kodi

    本文为原创教程,转载请注明来源及作者。 按照本教程,可以保持PVE全部套件稳定的同时,又能够使用最新版Kodi; ...

  • 磁盘文件管理

    一:查看磁盘或者目录的容量 df 和 du 1、df 查看已挂载磁盘的总容量、使用容量、剩余容量等,可以不加任何参...

  • Linux常用指令(非常实用,你一定会用到:P)

    查看磁盘容量: sudo df -h 查看磁盘分区总容量和剩余容量 sudo du -h 查看当前目录下各个文件...

  • 第6章 存储器层次结构

    学习目标 SRAM和DRAM的构成与区别 磁盘存储的结构以及磁盘容量,扇区读取时间的计算 认识局部性原理 认识存储...

  • 阿里云磁盘在线扩容踩坑(ubuntu)

    问题: 阿里云购买磁盘在线扩容10GB之后 df -h 显示: 磁盘容量没有扩大。dfisk -lu 显示磁盘容量...

  • 重点回顾-S3.8

    如果需要大容量的磁盘,通常会使用 RAID 磁盘阵列的架构;取得外部磁盘容量的作法,主要有 NAT 及 SAN 两...

  • 给linux虚拟机硬盘扩容(LVM分区)

    1.关闭虚拟机,调整磁盘容量大小。 2.开启虚拟机,查看磁盘分区信息。 3.创建新分区 4.重新读取分区 5.创建...

网友评论

      本文标题:pve磁盘玩转以及缩小原创调整容量的教程

      本文链接:https://www.haomeiwen.com/subject/yymiodtx.html