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 ...
随机推荐
- delphi 数据库中Connection与Query连接数量问题思考
今天闲着没事,测试了一下Connection连接MSSQL,可以承受多少连接. 1.看看ADOConnection的连接数:写了一个代码,动态创建,测试了10000个连接,花了大约5~10分钟创 ...
- Hibernate-ORM:10.Hibernate中的分页
------------吾亦无他,唯手熟尔,谦卑若愚,好学若饥------------- 本篇博客讲述Hibernate中的分页 hibernate中的分页其实很好写,它通过操作对象的方式,来进行分页 ...
- SpringBoot学习:IDEA中快速搭建springboot项目
项目下载地址:http://download.csdn.net/detail/aqsunkai/9805821 (一)IDEA中创建maven web项目 创建好项目后设置项目的编译路径: (二)引入 ...
- Android Google Maps 监听地图缩放
接上篇.http://www.cnblogs.com/maomishen/p/3556297.html 由于公司项目要求,需要对google map监听地图的缩放(zoom)来进行一些操作. 但是在网 ...
- OpenCV入门:(六:基础画图函数)
有时程序中需要画一些基础的图形,例如直线,矩形,椭圆以及多边形.OpenCV中当然有此类函数. 1.函数介绍 直线line: , , ) img – 图像 pt1 – 直线起点 pt2 – 直线终点 ...
- 【廖雪峰老师python教程】——filter/sorted
filter Python内建的filter()函数用于过滤序列. 和map()类似,filter()也接收一个函数和一个序列.和map()不同的是,filter()把传入的函数依次作用于每个元素,然 ...
- Ubuntu18.04 + CUDA9.0 + cuDNN7.3 + Tensorflow-gpu-1.12 + Jupyter Notebook深度学习环境配置
目录 一.Ubuntu18.04 LTS系统的安装 1. 安装文件下载 2. 制作U盘安装镜像文件 3. 开始安装 二.设置软件源的国内镜像 1. 设置方法 2.关于ubuntu镜像的小知识 三.Nv ...
- mysqldump: Got error: 1135: Can't create a new thread (errno 11); if you are not out of available memory, you can consult the manual for a possible OS-dependent bug when trying to connect 解决办法
在进行数据库备份的时候发现服务器报 mysqldump: Got error: 1135: Can't create a new thread (errno 11); if you are not o ...
- C# 利用WMI对象获取物理内存和可用内存大小
下面的代码演示的是使用WMI对象可获取取物理内存和可用内存大小,在使用WMI对象前,先要添加对System.Management的引用,然后就可以调用WMI对象,代码如下: //获取总物理内存大小 M ...
- 算法(7)Majority Element II
题目:找出数组中出现次数大于n/3次的数字 思路:摩尔投票法.所有的帖子中都说:先遍历一遍数组找到备选元素,然后再遍历一遍数组考察下这个元素是否是真的超过n/3,然后就直接上代码,但是现在的问题是:我 ...