52AV璈A|52AV.ONE

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

[linux隞也 LVM 摮

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2016-1-20 16:52:08 | 芰閰脖 撣 |甇摨閬 |梯璅∪
: http://linux.vbird.org/linux_basic/0420quota.php#lvm9 d6 f+ }- Q. y% w
         http://linux.vbird.org/linux_basic/0230filesystem.php#gdisk+ F: N8 a) B2 V1 k8 A% Z

4 u  d; |/ {. \' x& K+ J! y[敶扳曉之LV摰寥]' b. X& J8 F+ Q! d
; O3 F$ o) \& Y7 N3 ~6 W) l

$ F, i$ v0 D! N5 N! }& W8 ^1) lvextend -l 178813 /dev/11HD_vg/11HD_lv / A' D! H( Q3 H2 f& E" A
& n, j5 G, X0 \6 {/ U2 n% G

+ _/ j) R* {6 S8 l4 U$ [178813舀炬憭抒size,憒2.7T=178813 PE, 1 PE=16MB6 q0 J# D) b* h( t( V( t- t8 G
: D8 E0 c8 R5 X8 h/ |
/ L3 C, z$ X5 o7 r( S: g; e# [
2)lvresize -l 1966943 /dev/11HD_vg/11HD_lv
7 m* @% ^4 }- ~" \( Z: u! Y+ H0 W( C
: `; s( k8 H# G+ |
1966943臬憭批蝮編ize,憒30T=1966943 PE , 臭誑 vgdisplay 11HD_vg 亦桀 vg 閰喟敦鞈,咨otal size and free size ,桐賣 PE- Q: A: X3 X8 n1 X; k
9 ~/ w0 N' k, s9 k1 d% P* d3 {

, {+ Y$ S4 Q+ g5 u# f& U$ V3)resize2fs /dev/11HD_vg/11HD_lv
7 a# d" [$ e; J. P
3 x. I, i& |: L4 A+ d6 C& _* V: c: u/ U
3 q0 S, N/ }. f9 }# M  i+ e7 ~$ a
P.S憒曆迷disk隞,雿輻 yum install gdisk 摰鋆- W' P. ~6 ~6 P6 n6 v  x
雿輻 gdisk 脩,
9 Y4 M0 b9 x" X) |) |9 o
Hex code or GUID (L to show codes, Enter = 8300):  頛詨8e00  ===> LVM (logical volumn manager)
% i5 s& G" s3 V/ b. S; ]3 k- d* q6 Z( r0 w  I  P$ d+ O

4 w* }1 L. v# k1 n& F- ?[蝘駁小v]
% b5 C3 }2 X3 kpvscan or pvdisplay 瘥蝖祉憿舐內:! i6 ^8 W- w. M- G* @3 [' B
Couldn't find device with uuid WWeM0m-MLX2-o0da-tf7q-fJJu-eiGl-e7UmM3, O, O5 ?! w! e5 e. l3 F
PV Name               unknown device. i- r9 m" k" n
% q* d) l/ X3 P
望潛′蝣瘥,蝝汲G,甇日蝘駁 PV:- r$ n6 Z+ s. r, d- b8 G* w
vgreduce --removemissing --force 11HD_vg  #雿銋 LV芷,撱 LV
; T% Z' w! _. j3 T* b% p8 Q; npvscan or pvdisplay 撠曹憿舐內 "unknown device"& G  S  e3 u7 `: N1 d% O" B# [

/ h) h' o  H" N9 W0 ]
0 Q6 M0 k. A  d& ]/ m% p9 U$ ]
[憒雿mount 撌脣冽潔憿蝖祉找LVMpartition]; {' r7 h' F/ H3 ~, u
#pvscan
+ `9 b6 o3 e/ v9 Z6 q9 |/ h  PV /dev/sdc2   VG vg_centos6   lvm2 [27.46 GiB / 0    free]      <===== 曆犖唾mount LVM (撌脣冽澆仿蝖祉)2 E3 U( l& y5 }
  PV /dev/sdb2   VG vg_test      lvm2 [18.92 GiB / 0    free]3 n  x8 |- o* @) w: n7 D
  Total: 2 [46.39 GiB] / in use: 2 [46.39 GiB] / in no VG: 0 [0   ]( I8 w. ^6 v  m4 @- d+ v

7 L, A' c( o) G- f1 M! s' }#vgscan
1 H7 Q: c: i% s) E. `0 L- M  V  Reading all physical volumes.  This may take a while...
. u' B, q/ l+ u+ [( z3 q  Found volume group "vg_centos6" using metadata type lvm2
. Y4 H, k4 ]! q- D& w" j  Found volume group "vg_test" using metadata type lvm2
& ^! L5 ~: B0 {: A+ _' y/ P( x# g6 h) ]* T

' [9 g% w: Q8 l1 b. W  H#lvscan
3 y1 q- I9 k% N+ H- b+ |7 s  inactive            '/dev/vg_centos6/lv_root' [21.84 GiB] inherit    <====芸6 n! S% \+ A% _
  inactive            '/dev/vg_centos6/lv_swap' [5.62 GiB] inherit    <====芸& }/ Q' k( Q/ [. a& e+ f. r
  ACTIVE            '/dev/vg_test/lv_root' [16.98 GiB] inherit+ W" t( ~1 e7 n( B& q- b& P
  ACTIVE            '/dev/vg_test/lv_swap' [1.94 GiB] inherit3 q7 p( M9 N6 l
' I1 t" c( O, w# [: H
2 C, _. |/ P" q, n* j
#lvdisplay /dev/vg_centos6/lv_root
& K! B" K2 ~4 h# m- T7 c- |  --- Logical volume ---
/ K, R& t  d, ~  LV Path                /dev/vg_centos6/lv_root- a5 x2 r! H7 V8 j- M1 C
  LV Name                lv_root3 G2 m# S) b8 \; i. J
  VG Name                vg_centos68 y# _& z) t; w  j2 w) _9 V) ~
  LV UUID                0nFiiu-yDQG-1JUB-JI2r-uoTe-Hupi-WGisCe
  ?% C  }2 o7 ?; Y( c  LV Write Access        read/write
- k, X0 }. ?" d" L9 k! N  LV Creation host, time ,
& B2 y+ a7 q5 ~  LV Status              unavailable      <==== 銝舐
# Q; q: R3 h0 [9 K  # open                 1
3 a0 {/ F' G$ l1 `  LV Size                21.84 GiB3 O6 g8 g' y! {9 w& y; T
  Current LE             5591
& h% n6 u  l3 b' R  Segments               1
9 W6 T  Q) d$ D, e; |8 D( U: G( y  Allocation             inherit! t; F  X1 D' {5 N% H9 R9 p
  Read ahead sectors     auto
/ h2 l. ^# V" `) m: U  - currently set to     256; `" |- r. E" ^
  Block device           253:2
3 p8 w1 V5 A3 H" X6 t' e) G( n5 |, z; {) }6 p" a. l! P
- R& Q: T, i9 `- U. c! d0 t% t0 f
暺券鋆:8 A+ X' G/ i* L, D
vgchange -ay vg_centos6     <====== VG     (憒 VG ==> vgchange -an vg_centos6)+ C% S0 X- s2 O; n* `& P
乩甈 LV:
% O1 z8 @; ^6 i5 |#lvscan
% f1 C( |  o2 S2 X9 F1 e  ACTIVE            '/dev/vg_centos6/lv_root' [21.84 GiB] inherit  <====撌脣鈭  ^7 m! }, o) J" g8 |
  ACTIVE            '/dev/vg_centos6/lv_swap' [5.62 GiB] inherit  <====撌脣鈭& |: B2 N( L8 O: ^, Z
  ACTIVE            '/dev/vg_test/lv_root' [16.98 GiB] inherit
; ~+ C. V! k# Y  ACTIVE            '/dev/vg_test/lv_swap' [1.94 GiB] inherit# y6 b; J0 K# }* F, \: O
' z$ b2 a. p" ]; C/ J3 U
& n' \) n+ k6 G: a( ~$ L6 ~  f
mount LVM:1 d( }) ]  v, E. U
mkdir /mnt/lvmdisk. _3 X8 g9 K& x/ F
mount /dev/vg_centos6/lv_root  /mnt/lvmdisk7 [( l! _( R, R# Q  p6 A6 ?7 Q) o
憭批!
/ v/ {) Y* F  @2 L8 P! t

* E9 d- _5 }" x+ ?4 `% T* r
# t: T8 v( I0 J6 s' e

雿輻券

祉蝛閬

撠蝝詨

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

QQ|撠暺撅||52AV璈A

GMT+8, 2025-12-6 04:06 , Processed in 0.057045 second(s), 17 queries .

蝯∠.撱

52avtv@gmail.com | QQ:2405733034     since 2015-01

鋆貉憒 敹恍敺 餈銵