当前位置:网站首页>RAID5 and LVM are used in combination
RAID5 and LVM are used in combination
2022-07-24 06:28:00 【Aka · Brooklyn Fairy】
Catalog
1, First look at it. raid Can the disk array perform the most basic operations
2, Test if you can lvm Capacity expansion , edit
3, Test after simulating the damage of a hard disk
One , Add hard disk

Two , Create a disk array

Use mdadm -D /dev/md5

3、 ... and , establish LVM
Input pvcreate /dev/md5 To create physical volumes /dev/md5
Input vgcreate myvg /dev/md5 To create a volume group myvg
Input lvcreate -L 200M -n /dev/rr5/dd5 To create Logic volume vo



Format logical volumes , Pay attention to When formatting logical volumes , Use ext file system , The size of logical volumes can be increased or decreased , While using xfs File system , Can only increase but not decrease , So here we choose ext4 Format the file system

Mount to /drr Under the table of contents

test ,
1, First look at it. raid Can the disk array perform the most basic operations

2, Test if you can lvm Capacity expansion ,
3, Test after simulating the damage of a hard disk

Use ,mdadm /dev/md5 -f /dev/sdg1

You can see , Because we first added a hot spare , Therefore, when one of the three working disks fails , The idle hot spare will be filled up immediately , Thus, it plays a better role in data protection . When the hot spare disk is added ,spare Device The following number will change to 0, It means that there is no hot spare now .
Since the hard disk sde Has been damaged , We need to remove it from the array

Remove sde after , because raid The disk array is not affected , Therefore, it is possible to perform various operations on the files in the disk , The previous data has not been lost due to the damage of a hard disk

There is no hot spare now , Let's delete one again , See if the data can still be used

You can still watch

Because we have established four disks . Add a hot disk , So damage a disk , It doesn't affect
There will also be redundancy , When three pieces are damaged

Then you will find , When three discs are damaged at the same time , Whole raid The array will be damaged , Then it will become read-only mode
边栏推荐
- IP class notes (4)
- [no need for public IP] configure a fixed public TCP port address for remote desktop raspberry pie
- Flink state use
- MeterSphere一站式开源持续测试平台
- 服务器硬件及RAID配置实战
- Leetcode refers to offer jz5 to replace the space string
- 将内网映射到公网【无需公网IP】
- 【214】什么是自动化框架
- Use and principle of spark broadcast variable and accumulator
- Interview questions for Test Manager / test team leader / Test Supervisor
猜你喜欢

Unity shader: realize diffuse reflection and specular reflection

Do not rent servers, build your own personal business website (1)

Leetcode sword finger offer JZ9 dual stack implementation queue

IP作业(6)

IP课(OSPF)综合实验

IP notes (10)

Li Kou 986. Intersection of interval lists

IP notes (11)

IP笔记(7)

Do not rent servers, build your own personal business website (4)
随机推荐
The public network uses Microsoft Remote Desktop remote desktop to work remotely at any time
Pycharm set code template
不租服务器,自建个人商业网站(2)
IA课总结(2)
Sword finger offer jz10 Fibonacci sequence
Mysql database - SQL summary (remember to pay attention to me! Come on in China!)
Ia class summary (1)
Summary of ten common vulnerabilities (principle, harm, defense)
【测试工具】
go语言的快速上手
leetcode剑指offer JZ73 翻转单词序列
IP笔记(7)
IP作业(6)
Simple three-step fast intranet penetration
Ia class summary (2)
Dameng database_ Small matters needing attention during use
简单三步快速实现内网穿透
Jenkins automated unattended operation (up / down)
IP作业(2)RIP
Summary of common working methods (7S, SWOT analysis, PDCA cycle, smart principle, 6w2h, time management, WBS, 28 principles)