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 ...
- 开启TCP BBR拥塞控制算法
原文来自:https://github.com/iMeiji/shadowsocks_install/wiki/%E5%BC%80%E5%90%AFTCP-BBR%E6%8B%A5%E5%A1%9E% ...
- 使用uniflash串口烧写CC3200的常见问题
1. 在正常情况下,cc3200的烧写使用的是芯片的PIN55和PIN57,只要把SOP2上拉既可正常烧写,常见问题是烧写的时候没有上拉SOP2,正常运行SOP2留空,IAR只能仿真调试,不能下载程序 ...
- MFC随笔记录——1
这段时间用MFC做完了项目里的一个对图像处理(字迹匹配)的软件,通过项目的具体要求的一步一步的实现,我也学习到了很多以前困惑很久的问题,算是对自己的一个提高吧,把一些有技巧性的操作记在这里,给以后的自 ...
- 掘金 Android 文章精选合集
掘金 Android 文章精选合集 掘金官方 关注 2017.07.10 16:42* 字数 175276 阅读 50053评论 13喜欢 669 用两张图告诉你,为什么你的 App 会卡顿? - A ...
- windows中vim以及cmder的使用
虽然有gvim,但是我依然更喜欢控制台(可理解为博主的偏执已经发展到某个阶段). windows自带的控制台很糟糕,尤其是我正在用的win7竟然没有全屏功能.任何一个占领屏幕的图标显然是不可忍受的. ...
- 【廖雪峰老师python教程】——OOP
概述 面向对象编程——Object Oriented Programming,简称OOP,是一种程序设计思想.OOP把对象作为程序的基本单元,一个对象包含了数据和操作数据的函数. 数据封装.继承和多态 ...
- 今日Linux
一.复习了vi 三个模式下的一些操作.贴上一些比较常用,个人觉得比较难记的操作.1.一般模式:h 光标向左移动一个字符j 光标向下移动一个字符K 光标向上移动一个字符l 光标向右移动一个 ...
- PHP实现字节数Byte转换为KB、MB、GB、TB
function getFilesize($num) { $p = 0; $format = 'bytes'; if( $num > 0 && $num < 1024 ) ...
- Dijkstra标准模板
Dijkstra求最短路问题:单元求最短路,从任意点出发求得该点到达其他任意点的距离 Dijkstra其实是一种贪心策略,与出发点(即源点)所连接的点中找到距离最短的点(这个距离是源点到这个点的最短距 ...