6 ?5 t" O- f; q1 n! U. u#vgscan& M; X0 N- i, d, f3 K
Reading all physical volumes. This may take a while... # ?2 n# ]& Y8 j( l6 E Found volume group "vg_centos6" using metadata type lvm20 Y* ~+ A6 W0 Z% I
Found volume group "vg_test" using metadata type lvm2 : E4 K/ s( L `( K3 J2 |" r u% q) p+ B/ V ; S. p$ o4 K5 W0 i4 P#lvscan* P6 m& R$ M9 z) R/ n, u6 N* {0 C
inactive '/dev/vg_centos6/lv_root' [21.84 GiB] inherit <====未啟用" w9 Y# M' @5 O
inactive '/dev/vg_centos6/lv_swap' [5.62 GiB] inherit <====未啟用 9 d3 B' j1 H; s7 h$ f ACTIVE '/dev/vg_test/lv_root' [16.98 GiB] inherit: o/ ^- E% F! R
ACTIVE '/dev/vg_test/lv_swap' [1.94 GiB] inherit . m' L1 O8 t7 g/ n4 f5 d% E# X6 d
2 a& ~! V0 n2 a; Q7 \0 I. m$ [#lvdisplay /dev/vg_centos6/lv_root - i- x* U) y8 ?8 G --- Logical volume --- - x, E% W' ` q e LV Path /dev/vg_centos6/lv_root; c( f; x6 s. h) G
LV Name lv_root* z! S) ?: P+ `& F- J: W
VG Name vg_centos6. y6 A! k5 a# ]0 F
LV UUID 0nFiiu-yDQG-1JUB-JI2r-uoTe-Hupi-WGisCe: g7 s, s1 a( N
LV Write Access read/write- A3 J$ q! x9 _ a. r1 s
LV Creation host, time ,) r. r. @2 \/ ~+ |* _* U
LV Status unavailable <==== 不可用 9 Q0 n' m p: E5 e5 I. d # open 1 ' g% }* F$ `* p4 Y( ^0 ~ LV Size 21.84 GiB 1 K! V! Z) o' i5 Y Current LE 5591 1 |* q7 ?1 H8 [6 I, T+ Y Segments 1 ! c% {9 Z$ \4 U; o+ X7 R Allocation inherit 3 [6 n C0 b& i0 Y) O( i$ b8 f Read ahead sectors auto 9 a( A! z# a) e9 A' n - currently set to 256 % V" r4 _9 ~ n2 z Block device 253:27 G9 e) w2 P+ F) Z+ S
; X# L4 ?* C' t w # G; W+ o W, P( F重點在這裡: 6 v: _9 ?/ ?: O% xvgchange -ay vg_centos6 <====== 啟動 VG (假如 關閉VG ==> vgchange -an vg_centos6) 9 G4 R) q3 a; P# F$ G! z B$ w% [再查一次 LV: [ N: a6 L- ?/ ]" g#lvscan 4 `) ^ Q' D. `; t4 u ACTIVE '/dev/vg_centos6/lv_root' [21.84 GiB] inherit <====已啟動了' D4 S1 f" |% ~0 T0 q
ACTIVE '/dev/vg_centos6/lv_swap' [5.62 GiB] inherit <====已啟動了; v% d( {8 j. j3 Q/ W
ACTIVE '/dev/vg_test/lv_root' [16.98 GiB] inherit4 w( M$ G& j: k0 o0 W! b
ACTIVE '/dev/vg_test/lv_swap' [1.94 GiB] inherit) V3 v% z" H& W _+ b3 ^+ g; Z
6 ?7 W) p6 I( a6 Y- w" D7 B& k
# e7 c6 L: x/ f: _5 tmount LVM: 0 [, c U* z% l9 ]3 B ~5 Cmkdir /mnt/lvmdisk ) O" x: K) T( W3 h. b* [mount /dev/vg_centos6/lv_root /mnt/lvmdisk0 x/ X( Y. V. p/ |
大功告成!( E9 Q3 k: {1 K* h
" A8 s1 B$ L/ Y" i0 K5 j
; V- L t; Z( ?& n) w9 k