博客
关于我
磁盘不足怎么办?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实现radix sort基数排序算法(附完整源码)
    查看>>
    Objective-C实现rail fence围栏密码算法(附完整源码)
    查看>>
    Objective-C实现rayleigh quotient瑞利商算法(附完整源码)
    查看>>
    Objective-C实现RC4加解密算法(附完整源码)
    查看>>
    Objective-C实现RC4加解密算法(附完整源码)
    查看>>
    Objective-C实现recursive bubble sor递归冒泡排序算法(附完整源码)
    查看>>
    Objective-C实现recursive insertion sort递归插入排序算法(附完整源码)
    查看>>
    Objective-C实现recursive quick sort递归快速排序算法(附完整源码)
    查看>>
    Objective-C实现RedBlackTree红黑树算法(附完整源码)
    查看>>
    Objective-C实现redis分布式锁(附完整源码)
    查看>>
    Objective-C实现regular-expression-matching正则表达式匹配算法(附完整源码)
    查看>>
    Objective-C实现relu线性整流函数算法(附完整源码)
    查看>>
    Objective-C实现restful api服务(附完整源码)
    查看>>
    Objective-C实现reverse letters反向字母算法(附完整源码)
    查看>>
    Objective-C实现ReverseNumber反转数字算法 (附完整源码)
    查看>>
    Objective-C实现RGB转十六进制算法(附完整源码)
    查看>>
    Objective-C实现ripple adder涟波加法器算法(附完整源码)
    查看>>
    Objective-C实现RKM匹配(附完整源码)
    查看>>
    Objective-C实现RodCutting棒材切割最大利润算法(附完整源码)
    查看>>
    Objective-C实现roman numerals罗马数字算法(附完整源码)
    查看>>