LVM to increase and reduce 10G size for /data
=======================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的更多相关文章
- How to reduce Index size on disk?减少ES索引大小的一些小手段
ES索引文件瘦身总结如下: 原始数据:(1)学习splunk,原始data存big string(2)原始文件还可以再度压缩倒排索引:(1)去掉不必要的倒排索引信息:例如文件位置倒排._source和 ...
- Oracle 10g R2 Transparent Data Encryption 透明数据加密
Oracle 10g R2 Transparent Data Encryption 透明数据加密 本章介绍如何使用透明数据加密来保护Oracle数据库中的敏感数据,该功能使您可以加密数据库列并管理加密 ...
- 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 ...
- [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 ...
- unity, reduce android size
参考: https://www.youtube.com/watch?v=TYSmf_zgtZo http://stackoverflow.com/questions/41087220/how-to-u ...
- [PHP+JS]微信卡券(潦草笔记,全代码,亲测通过)
群发卡券可以通过客服消息推送 https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421140547 后端代码: define('A ...
- [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 ...
- LVM学习
LVM Logical Volume Manager Volume management creates a layer of abstraction over physical storage, a ...
- LVM学习笔记
LVM Logical Volume Manager Volume management creates a layer of abstraction over physical storage, a ...
随机推荐
- 安装 Node.js v8.0 生产环境
步骤://center os 上把apt-get换成yum 第一步:进入服务器升级工具包 sudo apt-get update 第二步:安装git sudo apt-get install git ...
- Python3爬虫(一)HTTP相关基础
Infi-chu: http://www.cnblogs.com/Infi-chu/ 一.URI.URL.URN.HTTP URI:统一资源标志符 URL:是URI的一个子集 URN:是URI的另一个 ...
- HDU暑假多校第三场H.Monster Hunter
一.题意 给定一个树状地图,每个树节点上有一只怪物,打死一只怪物的过程中将会消耗A点HP,打死之后将会获得B点HP.因为树状结构,所以每只怪物必须先打死父节点的怪兽之后在打死子节点的怪物.现在,给定每 ...
- Servlet生命周期与线程安全
上一篇介绍了Servlet初始化,以及如何处理HTTP请求,实际上在这两个过程中,都伴随着Servlet的生命周期,都是Servlet生命周期的一部分.同时,由于Tomcat容器默认是采用单实例多线程 ...
- Delphi中ModalResult的使用
Delphi中ModalResult的功能非常实用. 在自己设计的Dialog界面中,选择相应的按钮,设置按钮的 ModalResult属性为mrOK .mrCancel 等.这样的设置,当按下该按钮 ...
- hibernate 各历史版本下载 spring各历史版本下载
hibernate 各历史版本下载http://sourceforge.net/projects/hibernate/files/ spring各历史版本下载http://www.springsour ...
- 30分钟 带你浅入requirejs源码
因为最近项目想现实一个单页功能,用的是react ,然后看了一下react route,挖槽 gzip后16k? 然后我简单写了一个纯单页(不支持多页的单页,所有入口都经过rewrite跑到index ...
- ionic 入口禁止加载其他页面
.state('memberOrders', { prefetchTemplate: false, url: '/memberOrders', templateUrl: '/MemberOrders' ...
- tomcat web.log 系统日志记录文件过大问题修改
目前各系统都是记录所有的日志,产生日志文件太大,按照如下设置修改log4j.properties文件:其中橙色部分为系统名称,例如water-scada系统,名称可以为scada. #Sun Jun ...
- BZOJ 1923 SDOI2010 外星千足虫 异或方程组+bitset
题目链接:http://www.lydsy.com/JudgeOnline/problem.php?id=1923 懒得贴题目了......这就是解一个异或方程组的裸题...... YY了一下异或方程 ...