=======================increase10G for/data=============================
(system env /dev/MongoData00/LV00 197G /data)
#lvs
#lvdisplay MongoData00
+10G disk on VMware
#fdisk -l
#fdisk /dev/sdf ->n,p,1,,,w
#fdisk -l ,(show /dev/sdf1)

#pvs
#pvdisplay
#pvcreate /dev/sdf1 (create pv to system)
#pvs

#vgs
#vgextend /dev/MongoData00 /dev/sdf1
#vgs
#vgdisplay /dev/MongoData00 (to check Alloc size,and free size/PE)

#lvs
#lvdisplay /dev/MongoData00/LV00 (to check lv/LE size)
#lvextend -L +9.99G /dev/MongoData00/LV00
#vgdisplay /dev/MongoData00

#resize2fs /dev/MongoData00/LV00 (fs to perfrom online resize)
#df -h

=========================reduce10G for/data========================
#service mongod stop
#umount /data
#lvs
#lvdisplay /dev/MongoData00/LV00

#e2fsck -f /dev/MongoData00/LV00
#resize2fs /dev/MongoData00/LV00 199G (set filesystem to smallsize <200G)
#lvreduce -L -9.99G /dev/MongoData00/LV00 (lvm to reduce 9.99G)
#lvresize -l -2 /dev/MongoData00/LV00 (lvm to reduce 2 LE)
#lvresize -l 51199 /dev/MongoData00/LV00 (set lvm size to 51199 LE)
#lvdisplay /dev/MongoData00/LV00
#e2fsck -f /dev/MongoData00/LV00
#resize2fs /dev/MongoData00/LV00 (filesystem will use all partion by default)
#mount /data

#lvs
#vgs
#pvs
#vgreduce /dev/MongoData00 /dev/sdf1 (remove /dev/sdf1 pv from vg)
#pvs
#pvremove /dev/sdf1 (remove pv from system)
#pvs
-10G disk on VMware
#df -h

LVM to increase and reduce 10G size for /data的更多相关文章

  1. How to reduce Index size on disk?减少ES索引大小的一些小手段

    ES索引文件瘦身总结如下: 原始数据:(1)学习splunk,原始data存big string(2)原始文件还可以再度压缩倒排索引:(1)去掉不必要的倒排索引信息:例如文件位置倒排._source和 ...

  2. Oracle 10g R2 Transparent Data Encryption 透明数据加密

    Oracle 10g R2 Transparent Data Encryption 透明数据加密 本章介绍如何使用透明数据加密来保护Oracle数据库中的敏感数据,该功能使您可以加密数据库列并管理加密 ...

  3. org.apache.kafka.common.errors.SerializationException: Error deserializing... Caused by: org.apache.kafka.common.errors.SerializationException: Size of data received by IntegerDeserializer is not 4

    原因,最近开发的kafka消息接收,突然报如下错: org.apache.kafka.common.errors.SerializationException: Error deserializing ...

  4. [PReact] Reduce the Size of a React App in Two Lines with preact-compat

    Not every app is greenfield, and it would be a shame if existing React apps could not benefit from t ...

  5. unity, reduce android size

    参考: https://www.youtube.com/watch?v=TYSmf_zgtZo http://stackoverflow.com/questions/41087220/how-to-u ...

  6. [PHP+JS]微信卡券(潦草笔记,全代码,亲测通过)

    群发卡券可以通过客服消息推送 https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421140547 后端代码: define('A ...

  7. [under the hood]Reduce EXE and DLL Size with LIBCTINY.LIB

    Matt Pietrek Download the code for this article: Hood0101.exe (45KB) W ay back in my October 1996 co ...

  8. LVM学习

    LVM Logical Volume Manager Volume management creates a layer of abstraction over physical storage, a ...

  9. LVM学习笔记

    LVM Logical Volume Manager Volume management creates a layer of abstraction over physical storage, a ...

随机推荐

  1. 杭电 1003 Max Sum (动态规划)

    参考:https://www.cnblogs.com/yexiaozi/p/5749338.html #include <iostream> #include <cstdio> ...

  2. 【Leetcode】709. To Lower Case

    To Lower Case Description Implement function ToLowerCase() that has a string parameter str, and retu ...

  3. cf776D Mahmoud and a Dictionary

    Mahmoud wants to write a new dictionary that contains n words and relations between them. There are ...

  4. ABS(引数と同じ大きさの正の数を返す)

    ABS 関数 [数値] 数値式の絶対値を返します. 構文 ABS( numeric-expression ) パラメータ numeric-expression   絶対値が返される数値. 戻り値 数値 ...

  5. [转载]Java类打包成JAR文件

    原文传送门:http://www.2cto.com/kf/201204/129495.html 使用的工具及环境: MyEclipse 7.5 Java Enterprise.JDK1.6.0 打包J ...

  6. LeetCode:22. Generate Parentheses(Medium)

    1. 原题链接 https://leetcode.com/problems/generate-parentheses/description/ 2. 题目要求 给出一个正整数n,请求出由n对合法的圆括 ...

  7. **leetcode笔记--4 Sum of Two Integers

    question: Calculate the sum of two integers a and b, but you are not allowed to use the operator + a ...

  8. 浅谈 kubernetes service 那些事 (下篇)

    欢迎访问网易云社区,了解更多网易技术产品运营经验. 五.K8s 1.8 新特性--ipvs ipvs与iptables的性能差异 随着服务的数量增长,IPTables 规则则会成倍增长,这样带来的问题 ...

  9. Eclipse+APKTool动态调试APK

    1. 所需工具 Eclipse. Apktool v2.0.6. 安卓SDK工具. 2. 重编译APK apktool d -d -o test test.apk 此时当前test目录下就是apkto ...

  10. Kotlin操作符重载:把标准操作加入到任何类中(KAD 17)

    作者:Antonio Leiva 时间:Mar 21, 2017 原文链接:https://antonioleiva.com/operator-overload-kotlin/ 就像其他每种语言一样, ...