=======================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. LINQ查询操作符

    ·First - 返回集合中的第一个元素:不延迟 ·FirstOrDefault - 返回集合中的第一个元素(如果没有则返回默认值):不延迟 ·Last - 返回集合中的最后一个元素:不延迟 ·Las ...

  2. 初步学习pg_control文件之八

    接前文  初步学习pg_control文件之七  继续 看:catalog_version_no 代码如下: static void WriteControlFile(void) { ... /* * ...

  3. ubuntu apt-get 使用代理设置,坑爹。。

    网上流传的export http_proxy=http://yourproxyaddress:proxyport是行不通的,虽然改了之后wget一类的可以用.当然去改.bashrc也不会有效果. 真正 ...

  4. 用起来超爽的Maven——进阶篇

    以后随着使用的maven的频率增加,此文件会越来越大,也是为什么需要把默认C:\Users\Administrator\.m2 \repository目录改变为D:/OpenSources/repos ...

  5. appium + Python + iOS 滑屏方法(appium版本大于1.5)

    之前一直在搞android的自动化,滑动操作一直都用swipe(),比如: he1 = int(dr.get_window_size()['height'] * 0.8)he2 = int(dr.ge ...

  6. Tensorflow Estimators

    这篇文章介绍tf.estimator,一个高级TensorFlow API,可以极大简化机器学习编程.Estimators封装了下面几个活动. 训练 评估 预测 出口服务(export for ser ...

  7. POJ 2161 Chandelier(动态规划)

    Description Lamps-O-Matic company assembles very large chandeliers. A chandelier consists of multipl ...

  8. lintcode-125-背包问题 II

    125-背包问题 II 给出n个物品的体积A[i]和其价值V[i],将他们装入一个大小为m的背包,最多能装入的总价值有多大? 注意事项 A[i], V[i], n, m均为整数.你不能将物品进行切分. ...

  9. window下对samba的清理操作

    windows清除访问samba局域网密码缓存 1.在dos窗口中输入control userpasswords2或者control keymgr.dll,然后[高级]/[密码管理],删掉保存的该机器 ...

  10. 利用vue-cli搭建项目后的目录结构

    npm install -g vue-cli vue init webpack my-project(项目名称)  后的目录结构: -----build         webpack配置相关 --- ...