52AV璈A|52AV.ONE

 曉撖蝣
 蝡唾酉
敹急瑕
  • av隢憯BBS
  • 璈A
  • 芣瑟憭瘚
  • 鞎澆
  • 52av鋆貉摰
  • 銝剜-銝剖銝餅
     
亦: 4216|敺: 0
銝銝銝駁 銝銝銝駁

[linux隞也 LVM 摮

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2016-1-20 16:52:08 | 芰閰脖 撣 |摨閬 |梯璅∪
: http://linux.vbird.org/linux_basic/0420quota.php#lvm4 V4 a1 x4 J8 s( t/ a" T3 V
         http://linux.vbird.org/linux_basic/0230filesystem.php#gdisk
  R" g( l( b! U, b/ e
8 C; M* F' j+ f: x) n; @' V[敶扳曉之LV摰寥]! f9 V- |4 g# E+ x7 w
7 n; e; N" s8 S
+ M2 T3 @+ ]+ o: t) S& U: o
1) lvextend -l 178813 /dev/11HD_vg/11HD_lv
) q4 _/ O, O, \' P, \. D
* l; v9 s4 c0 S6 o6 ~8 C

- S+ |+ o+ m5 x& j178813舀炬憭抒size,憒2.7T=178813 PE, 1 PE=16MB5 S: E$ }. D, Q6 T4 g; U
6 l; R/ N4 }$ k

) x0 y' ^4 L, L% P1 [: I+ C) L2)lvresize -l 1966943 /dev/11HD_vg/11HD_lv+ b, A. K. J3 `8 k

/ n3 b5 ~8 p# y- X

, R' f: N9 J/ A" _1966943臬憭批蝮編ize,憒30T=1966943 PE , 臭誑 vgdisplay 11HD_vg 亦桀 vg 閰喟敦鞈,咨otal size and free size ,桐賣 PE
, q, A5 B2 M/ x# L
8 ]' p5 v" _5 ]. R& J  n

2 d% C6 ^! I0 n$ G! ]: Y3 J$ Y3)resize2fs /dev/11HD_vg/11HD_lv$ v- M! ?4 R; I0 g! x. V  ^
4 W, |1 l/ P. _/ D0 J

% I1 A7 z! n% j3 ZP.S憒曆迷disk隞,雿輻 yum install gdisk 摰鋆  {& d2 p* N) f0 W
雿輻 gdisk 脩,

5 H8 U8 q& s( N+ I: MHex code or GUID (L to show codes, Enter = 8300):  頛詨8e00  ===> LVM (logical volumn manager)
# G: T/ x, I6 S) L7 m8 i2 f+ }! }8 j/ C- [
# ^9 t! v5 Z$ v, L' N0 b/ q
[蝘駁小v]' J- ~$ f9 t) M
pvscan or pvdisplay 瘥蝖祉憿舐內:
1 B( x8 W% H, s# W0 S# iCouldn't find device with uuid WWeM0m-MLX2-o0da-tf7q-fJJu-eiGl-e7UmM3
" h6 I! V4 g+ Q( R+ `PV Name               unknown device
5 ~0 G: c. X9 z) C7 j9 e) W
/ h0 g' K- \' d9 B4 Y& N# o& t望潛′蝣瘥,蝝汲G,甇日蝘駁 PV:
( b* ^& D/ h: k$ [+ {) I/ h) Fvgreduce --removemissing --force 11HD_vg  #雿銋 LV芷,撱 LV  C$ F" A! G* D5 q9 M) o
pvscan or pvdisplay 撠曹憿舐內 "unknown device"6 ^  {) z/ ~: [# B
& |, `9 \9 s; L; s6 h$ G% h7 Y9 s/ k! F
" R% @7 r, p9 P$ t5 y2 z4 b
[憒雿mount 撌脣冽潔憿蝖祉找LVMpartition]7 G, @- X: d5 H6 l8 {% A! e
#pvscan
5 D" q: @  {- V+ S) h  PV /dev/sdc2   VG vg_centos6   lvm2 [27.46 GiB / 0    free]      <===== 曆犖唾mount LVM (撌脣冽澆仿蝖祉)
# z* \- ^# l( K( n" \  PV /dev/sdb2   VG vg_test      lvm2 [18.92 GiB / 0    free]- A# o5 |0 C6 E( e0 I: a! }5 Y
  Total: 2 [46.39 GiB] / in use: 2 [46.39 GiB] / in no VG: 0 [0   ]
/ R* l9 S( N9 K9 {1 X+ S$ K9 O- u3 P2 d' V. N; u  V5 F
#vgscan6 K2 l7 R; x$ B+ s3 N. v
  Reading all physical volumes.  This may take a while...
" q( X$ [8 P% A) l) ^, C8 h1 B  Found volume group "vg_centos6" using metadata type lvm2
$ ?. p6 j0 h( W! ~, E  Found volume group "vg_test" using metadata type lvm2
6 x8 e" T/ G* g' I8 [8 P5 G9 e6 [; ~& ]; K: }" f! h  F% s/ o
) d' k5 z* S( l6 C: v
#lvscan
+ S/ r* ?1 W) ~$ g: I5 r+ U  inactive            '/dev/vg_centos6/lv_root' [21.84 GiB] inherit    <====芸
9 }% {6 ^: z% H8 c  t  inactive            '/dev/vg_centos6/lv_swap' [5.62 GiB] inherit    <====芸
$ J$ ^9 ?  S5 O2 q4 i- T  ACTIVE            '/dev/vg_test/lv_root' [16.98 GiB] inherit+ x" \0 `& d; {  \
  ACTIVE            '/dev/vg_test/lv_swap' [1.94 GiB] inherit
( W. M4 _7 R; B1 L4 }% W
+ g4 L& C* y0 V/ B; E" L3 Y% z9 Z0 ?7 Z0 F% Q# a& ~
#lvdisplay /dev/vg_centos6/lv_root
/ g. ]! d4 b% j9 _' A  --- Logical volume ---* ]. W% z- _) V& T
  LV Path                /dev/vg_centos6/lv_root
8 P  _' f$ \- R: V1 r* a  LV Name                lv_root
8 b7 Z. J4 T: Q4 W+ ]/ V) P4 Z/ b( H2 k  VG Name                vg_centos66 Q) l2 `5 ~' m- Z2 ?) @
  LV UUID                0nFiiu-yDQG-1JUB-JI2r-uoTe-Hupi-WGisCe
# N& ~% D8 m9 d  LV Write Access        read/write: y3 r- P7 E% i0 @8 Z4 ^5 @
  LV Creation host, time ,& G- z% ~5 E5 U( t0 M% }# Z$ s8 B
  LV Status              unavailable      <==== 銝舐; X, S0 q/ b, c( ~# C- q; e7 X% A
  # open                 18 |# ~4 A5 A# D/ m* W' B; G
  LV Size                21.84 GiB5 w% @' W9 F! T
  Current LE             5591( v! V) o2 c; n& q6 w1 D
  Segments               1
$ b" e$ B# I* L) T3 [  Allocation             inherit( L! n6 M( ?. W6 p& b( D0 h
  Read ahead sectors     auto9 c: f7 `/ a0 k! z7 y6 }
  - currently set to     256
. o( h/ Q4 r) B2 F, v4 a8 v3 o9 Q  Block device           253:2; ^2 V0 }7 d3 x7 j4 }6 K" `6 h

+ v8 j. P3 z. @5 D
% T* B8 ^# v8 n! W+ P, {暺券鋆:2 b" g4 M7 J5 {7 ]' H
vgchange -ay vg_centos6     <====== VG     (憒 VG ==> vgchange -an vg_centos6)
4 }6 A3 f$ W2 a9 \  R! }5 a乩甈 LV:
8 f# r3 M! H3 o  j. y+ O/ ^& \) v  f% ~% i#lvscan
, d; n6 u5 g) x, O  ACTIVE            '/dev/vg_centos6/lv_root' [21.84 GiB] inherit  <====撌脣鈭
3 {. i8 Y+ p; m7 N  ACTIVE            '/dev/vg_centos6/lv_swap' [5.62 GiB] inherit  <====撌脣鈭
- k( d6 N; b3 ^! h( H' X  ACTIVE            '/dev/vg_test/lv_root' [16.98 GiB] inherit' P; v5 V, e6 b- ?* b1 |# P1 `9 {
  ACTIVE            '/dev/vg_test/lv_swap' [1.94 GiB] inherit) e9 I; k$ ]3 _& l

& c3 Z5 n7 Z- \3 f  o- E4 D2 Z( [; B  O
mount LVM:% {3 ?2 v! o* n' H) m$ g5 h4 D% i: m
mkdir /mnt/lvmdisk/ |( r/ Q2 k/ W  L3 I$ D  L) m
mount /dev/vg_centos6/lv_root  /mnt/lvmdisk4 w! D# L( D- K: B3 F- }6 B( u5 i4 _
憭批!
/ s: m3 X6 ]0 y- ]' _6 W
5 s: C; r0 k( P: ?& u2 ]

$ ~- c; ^! K8 G$ i  J  L9 g

雿輻券

祉蝛閬

砍憛批捆靘餉衣雯頝臬批捆蝝颲行粹嗥蝬脩嚗摰撟湔遛嚗嚗甇脖誑銝嗅啣摰嗆摰撟湧翩鈭箏ㄚ孵舫脣伐銝憿亙祉璇甈橘芣遛18甇 雓蝯脣亦閬賬粹脩芣遛18甇脖芣撟渡雯閬賜雯頝臭嗥批捆鞈閮嚗撱箄降典舫脰蝬脰楝批捆蝝蝯蝜ICRA蝝摰鋆閮剖 (粹蝯行霅 祉蝬脣銝蝝瘛函隢憯啣嚗祉閮剜蝞∠)

QQ|撠暺撅||52AV璈A

GMT+8, 2026-3-18 22:35 , Processed in 0.089916 second(s), 16 queries .

蝯∠.撱

[email protected] | QQ:2405733034     since 2015-01

鋆貉憒 敹恍敺 餈銵