博客
关于我
磁盘不足怎么办?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/

    你可能感兴趣的文章
    NOIp2005 过河
    查看>>
    NOPI读取Excel
    查看>>
    NotImplementedError: Cannot copy out of meta tensor; no data! Please use torch.nn.Module.to_empty()
    查看>>
    npm run build 失败Compiler server unexpectedly exited with code: null and signal: SIGBUS
    查看>>
    npm WARN deprecated core-js@2.6.12 core-js@<3.3 is no longer maintained and not recommended for usa
    查看>>
    npm切换到淘宝源
    查看>>
    npm前端包管理工具简介---npm工作笔记001
    查看>>
    npm和yarn清理缓存命令
    查看>>
    npm和yarn的使用对比
    查看>>
    npm报错unable to access ‘https://github.com/sohee-lee7/Squire.git/‘
    查看>>
    npm的问题:config global `--global`, `--local` are deprecated. Use `--location=global` instead 的解决办法
    查看>>
    NPOI之Excel——合并单元格、设置样式、输入公式
    查看>>
    NPOI利用多任务模式分批写入多个Excel
    查看>>
    NR,NF,FNR
    查看>>
    nrf开发笔记一开发软件
    查看>>
    NSDateFormatter的替代方法
    查看>>
    nsis 安装脚本示例(转)
    查看>>
    NSOperation基本操作
    查看>>
    NSSet集合 无序的 不能重复的
    查看>>
    NT AUTHORITY\NETWORK SERVICE 权限问题
    查看>>