博客
关于我
磁盘不足怎么办?LVM逻辑卷与磁盘配额请求出战!
阅读量:164 次
发布时间:2019-02-26

本文共 1754 字,大约阅读时间需要 5 分钟。

LVM?????

1. LVM???

1.1 LVM??

LVM?Logical Volume Manager,???????????????????????????????????????????????????????????????????????????????????????????????/boot???????????????LVM???

1.2 LVM???????

???LVM????????????

  • PE????????LVM????4MB?PE?????LVM????????????????????PE???

  • PV??????LVM??????????????????????????????????????????????????????LVM????????????4MB?PE?

  • VG??????????????????????????????????????????

  • LV????????PE???????????????????????????mkfs????????????????????Linux????????

1.3 LVM????

LVM???????PV?VG?LV???

?? PV???? VG???? LV????
?? pvscan vgscan lvscan
?? pvcreate vgcreate lvcreate
?? pvdisplay vgdisplay redisplay
?? pvremove vgremove lvremove
?? ? vgextend lvextend
?? ? vgreduce lvreduce
1.4 LVM????

?????????

  • ????????????????
  • ????????????????8e?
  • ???????????????????
  • ?????????????
  • ?????????????????
  • 2. ????

    ????????????????????????????????????????Centos????XFS??????xfs_ quota???????

    2.1 ?????????
    • Linux????
    • ??xfsprogs?quota???
    2.2 ??????
    • ?????????????????
    • ?????????????
    • ??????????????
    • ????????????
    2.3 ??????
  • ??xfsprogs?quota?????

    • ?????????????
      yum install xfsprogs quota
  • ?????????????????

    • ?????
      mount -o remount,rw /dev/sdX /mnt/point
    • ?????
      /etc/fstab:  
      /dev/sdX /mnt/point ext4 rw,relatime,quotas=1 0
  • ??????????????

    • ???????
      xfs_quota -x -c 'report -a'xfs_quota -x -c 'report -abih'
    • ????????????
      useradd user1 && passwd user1
    • ???????????
      xfs_quota -x -c 'usermod -bsoft:1024m -bhard:2048m user1'
  • ?????????

    • ???????
      dd if=/dev/zero of=testfile bs=1M count=200
    • ?????????
      dd if=/dev/zero of=testfile bs=1M count=200 > /dev/null
  • ???????

    xfs_quota -x -c 'report -a'xfs_quota -x -c 'report -abih'
  • ??????????Linux?????????????????????????

    转载地址:http://dgfk.baihongyu.com/

    你可能感兴趣的文章
    Objective-C实现kth order statistick阶统计量算法(附完整源码)
    查看>>
    Objective-C实现lamberts ellipsoidal distance朗伯椭球距离算法(附完整源码)
    查看>>
    Objective-C实现largest AdjacentNumber最大相邻数算法 (附完整源码)
    查看>>
    Objective-C实现largest subarray sum最大子数组和算法(附完整源码)
    查看>>
    Objective-C实现largestPrime最大素数的算法 (附完整源码)
    查看>>
    Objective-C实现lazy segment tree惰性段树算法(附完整源码)
    查看>>
    Objective-C实现LBP特征提取(附完整源码)
    查看>>
    Objective-C实现LDPC码(附完整源码)
    查看>>
    Objective-C实现least common multiple最小公倍数算法(附完整源码)
    查看>>
    Objective-C实现Lempel-Ziv压缩算法(附完整源码)
    查看>>
    Objective-C实现Length conversion长度转换算法(附完整源码)
    查看>>
    Objective-C实现Levenshtein 距离算法(附完整源码)
    查看>>
    Objective-C实现levenshteinDistance字符串编辑距离算法(附完整源码)
    查看>>
    Objective-C实现lfu cache缓存算法(附完整源码)
    查看>>
    Objective-C实现LFU缓存算法(附完整源码)
    查看>>
    Objective-C实现linear algebra线性代数算法(附完整源码)
    查看>>
    Objective-C实现linear congruential generator线性同余发生器算法(附完整源码)
    查看>>
    Objective-C实现linear discriminant analysis线性判别分析算法(附完整源码)
    查看>>
    Objective-C实现linear regression线性回归算法(附完整源码)
    查看>>
    Objective-C实现linear search线性搜索算法(附完整源码)
    查看>>