Linux挂接LVM

Linux挂接LVM

服务器系统被玩坏了,无奈只能主盘做从盘,挂接新系统盘拷贝数据了。
在使用mount时出现了:mount: unknow filesystem type “LVM2_member”,提示,这说明使用了LVM(logical volume manager)技术,此时可以按照如下操作即可挂载。

LVM2安装

1
yum install lvm2 -y

查看逻辑卷

1
lvdisplay
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
[root@localhost ~]# lvdisplay
--- Logical volume ---
LV Path /dev/centos/swap
LV Name swap
VG Name centos
LV UUID APYZIn-XZk1-F7CG-per8-wLoZ-BNaU-zuqdYX
LV Write Access read/write
LV Creation host, time localhost, 2019-04-05 02:46:17 +0800
LV Status available
LV Size <31.45 GiB
# open 0
Current LE 8050
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0

--- Logical volume ---
LV Path /dev/centos/home
LV Name home
VG Name centos
LV UUID BPZGrx-YStr-osaS-0AfU-33Fk-oGgd-FUjMau
LV Write Access read/write
LV Creation host, time localhost, 2019-04-05 02:46:17 +0800
LV Status available
LV Size 253.42 GiB
# open 1
Current LE 64876
Segments 3
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1

--- Logical volume ---
LV Path /dev/centos/root
LV Name root
VG Name centos
LV UUID VINX4l-MHtz-RYLK-06Da-rhwz-I7Vt-089qTq
LV Write Access read/write
LV Creation host, time localhost, 2019-04-05 02:46:23 +0800
LV Status available
LV Size 50.00 GiB
# open 1
Current LE 12800
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2

如未激活,需要激活逻辑卷

1
vgchange -ay /dev/centos

挂载逻辑卷

1
mount /dev/centos/home /mnt
# Linux

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×