当前位置:网站首页>Rhel7 logical volume management - Notes
Rhel7 logical volume management - Notes
2022-04-22 08:46:00 【Firefly ignition】
One . Create one with at least two PV The size of the composition is 20G The name is testvg Of VG; requirement PE The size is 16MB, Then create a volume group with a size of 5G The logic of Volume collection testlv; Mount to /users Catalog .
- Prepare two 10G The partition (linux LVM).


- establish PV Physical volume 、 see PV Physical volume .

- establish VG The volume group , View assigned PE Related information .

- establish 5G The logical volume , The name is testlv, see LV list .

- Create file system ( Formatted as ext4 File system type ).

- Create a directory and mount , Check the partition condition and size .

- Set up auto mount .
Edit text vi /etc/pstab
Two . A new user archlinux, The home directory is required to be /users/archlinux, Then su Switch to archlinux user , Copy /etc/pam.d Directory to your home directory .
- Create a user and specify their home directory .

see :

- Switching users , And copy the file .

- View the number of files .

3、 ... and . Expand testlv to 7G, requirement archlinux User files cannot be lost .
-
First check the size that needs to be expanded ,VG Is there enough free space .

-
View the logical volume

-
Expand logical volume size .


-
Check the logical volume size again .

-
View copied pam.d The number of files in the directory .

Four . shrinkage testlv to 3G, requirement archlinux User files cannot be lost .
-
Uninstall file system .

-
Check whether the file system is intact .

-
Set file system size .

-
Reduced logical volume .

-
Check the logical volume size again .

-
Mount again .

-
see pam.d The number of files in the directory .

5、 ... and . Yes testlv Create a snapshot , And try to backup data based on snapshot , Verify the function of snapshot
-
Create size as 1G Read only snapshot .

-
View snapshots .

-
Create a snapshot directory and mount .

-
Delete /users/archlinux/pam.d China and Israel a Opening file .

-
View in snapshot pam.d Number of files in .

-
Backup snapshot volume data ( Pack it up tar.gz My bag ).

-
Cancel the mount .
umount /mnt/snap
- Restore files ( Decompress package )

- Check the number of original files , Whether the data is recovered successfully ?

版权声明
本文为[Firefly ignition]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220747539296.html
边栏推荐
- Use serialize in the record node to automatically generate the table model and link the operation database (take PostgreSQL as an example)
- RHEL7 逻辑卷管理-笔记
- elastic-job安装部署接入
- Mapbox sets the official map language to Chinese
- Hyperledger Fabric1. 4 environment construction and example test
- DTV terminology
- window如何查看端口被占用
- CASE WHEN 及 SELECT CASE WHEN的用法 非常好用
- sql查询去除空数据和null 字段
- mysql插入自由列
猜你喜欢

Disk management - raid creation

HyperLedger Explorer 0.3.9环境搭建

sentinel服务监控系统搭建

VMware虚拟机通信与联网

Level 2: create, list and delete child nodes

初识C语言~循环语句

Hyperledger Fabric1.4环境搭建及示例测试

Dynamic memory management of C

el-input输入框输入无效,且Error in data(): “ReferenceError: el is not defined“

Function pointers and pointer functions
随机推荐
工业缺陷检测项目实战(三)——基于FPN_Tensorflow的PCB缺陷检测
蓝桥杯:Sine之舞[Jav语言用递归实现]
OLED display driver
Putty 配置 - 自我感觉舒适
accumulator
Construction of sentinel service monitoring system
window如何查看端口被占用
nacos源代码编译中遇到的问题解决后整理如下
CSDN怎么转载别人的博客
Hyperledger Fabric1. 4 environment construction and example test
机器学习之决策树原理
机器学习之概率模型
Matlab installation product selection, how to select the products to be installed
ROM、RAM、SRAM、DRAM、Flash、SDRAM區別
Client server communication project 1
Binary leading zero
学习总结汇总
winkawaks1. 45 how do I go online? winkawaks1. 45 how to play online (similar to other versions)
Autumn recruitment job summary and sharing
Reorganize notes: [Ultimate method] create user-defined code templates in vscade