52AV璈A|52AV.ONE

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

[linux隞也 LVM 摮

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2016-1-20 16:52:08 | 芰閰脖 撣 |摨閬 |梯璅∪
: http://linux.vbird.org/linux_basic/0420quota.php#lvm
! x" L: ?4 u; x$ u         http://linux.vbird.org/linux_basic/0230filesystem.php#gdisk
2 K: h' f* Z( @& K- d6 T! J5 P- j4 G0 C3 Z
[敶扳曉之LV摰寥]% K1 N2 D" i: M* a/ [+ v" z
8 Y5 G8 A. F4 \; c8 i- T

7 i4 }1 T! G& s3 I1 w, U. _# W1) lvextend -l 178813 /dev/11HD_vg/11HD_lv 6 O& i4 G. X4 l: D/ G7 f
) h+ j5 y/ x/ g( ^- Y) c/ S
0 n$ ?; A% ?& n
178813舀炬憭抒size,憒2.7T=178813 PE, 1 PE=16MB
+ Q9 O4 }" G9 ^) I6 [2 |5 x4 q; t7 O/ T& }0 o' o

# R6 d8 l7 R+ Z' P1 o& G2)lvresize -l 1966943 /dev/11HD_vg/11HD_lv' F: p) J8 K6 j2 l

7 ]) N: x8 _8 a
7 A$ ]% @- r) d
1966943臬憭批蝮編ize,憒30T=1966943 PE , 臭誑 vgdisplay 11HD_vg 亦桀 vg 閰喟敦鞈,咨otal size and free size ,桐賣 PE7 |4 Y; f2 I7 f: j$ [5 U, M

% K; b9 `5 R6 X% d& ]5 z" h) p

& N  A5 }8 n) e3)resize2fs /dev/11HD_vg/11HD_lv
: t3 N1 E+ m, F, r! z+ g" [
/ e1 o+ U% `, |' s

4 ]( m$ R! R, e4 {7 AP.S憒曆迷disk隞,雿輻 yum install gdisk 摰鋆, U1 ~; t5 a! [* ~6 m/ Z( _/ W
雿輻 gdisk 脩,

, K, \1 f$ j: _0 T+ kHex code or GUID (L to show codes, Enter = 8300):  頛詨8e00  ===> LVM (logical volumn manager)
1 e* u  x0 O, I  k( M5 C
: g: M( s. J! T; N3 S

# l: z4 P6 k# x2 {5 g[蝘駁小v]" f' d/ s+ g) n( j( [9 S$ S' Y
pvscan or pvdisplay 瘥蝖祉憿舐內:
5 y# L8 N5 r+ l% W8 r: MCouldn't find device with uuid WWeM0m-MLX2-o0da-tf7q-fJJu-eiGl-e7UmM3
/ b. m0 u& T0 ?" U# d) r2 SPV Name               unknown device, C# j3 }# s8 I- ]* {
/ [4 C3 P9 @+ g' D% O+ l
望潛′蝣瘥,蝝汲G,甇日蝘駁 PV:. s; N8 p; f  U+ d( C) P
vgreduce --removemissing --force 11HD_vg  #雿銋 LV芷,撱 LV
! @( a8 N) i1 C2 }pvscan or pvdisplay 撠曹憿舐內 "unknown device"
4 x/ }# {+ O; j: c0 X# T: w! ]% D. t$ X  P) i
. _& w$ O& B- b  Q2 J$ f) e7 c
[憒雿mount 撌脣冽潔憿蝖祉找LVMpartition]
0 r; n1 }: l& p2 ]( ]$ C#pvscan
1 C5 E. O, b2 z$ {+ T9 |  PV /dev/sdc2   VG vg_centos6   lvm2 [27.46 GiB / 0    free]      <===== 曆犖唾mount LVM (撌脣冽澆仿蝖祉)
/ Q3 K0 d' i6 i; W( _5 f5 ~. J  PV /dev/sdb2   VG vg_test      lvm2 [18.92 GiB / 0    free]6 K3 F6 K1 S) f# r9 D
  Total: 2 [46.39 GiB] / in use: 2 [46.39 GiB] / in no VG: 0 [0   ]. P2 w/ u$ b6 w' N/ e

) ]6 J" e2 y- a9 z+ f#vgscan) g% O2 ?% Q/ G* q  M! D
  Reading all physical volumes.  This may take a while...
4 U4 K1 r0 |9 u$ T7 A2 Y+ `  Found volume group "vg_centos6" using metadata type lvm2
1 T3 Q% e1 h4 p; H! T) J  Found volume group "vg_test" using metadata type lvm21 g$ R/ @% j0 h1 y7 y# U' ?5 M* L# s

5 t# f, r9 b) u' s1 u+ o$ G  O% w
#lvscan" z) G5 z/ L! r9 G" r. z
  inactive            '/dev/vg_centos6/lv_root' [21.84 GiB] inherit    <====芸
3 H' x2 k3 Y6 e# B7 b7 Y  inactive            '/dev/vg_centos6/lv_swap' [5.62 GiB] inherit    <====芸' _% G( x8 T( b0 l
  ACTIVE            '/dev/vg_test/lv_root' [16.98 GiB] inherit
( m2 y  D. x) b: U  ]  ACTIVE            '/dev/vg_test/lv_swap' [1.94 GiB] inherit: ], ~& Q! [, _1 f& N
/ C5 ?5 V- b$ |

# g9 W. [) H7 s* r" u4 S5 Z#lvdisplay /dev/vg_centos6/lv_root
7 S% o9 K& W. a: q8 T4 R% {  --- Logical volume ---( G* v0 m8 Y6 F4 @3 ]/ b
  LV Path                /dev/vg_centos6/lv_root6 i9 ~5 G+ H+ @6 Q
  LV Name                lv_root
4 E4 o  _% D7 C' b( r  VG Name                vg_centos6. g7 B2 M; }# m' ]$ u- t) ?
  LV UUID                0nFiiu-yDQG-1JUB-JI2r-uoTe-Hupi-WGisCe. q7 E% h  y6 K! d5 W9 t8 d. A. J8 H3 r
  LV Write Access        read/write
, }/ u8 E( ^+ G: f5 ^" v: U  LV Creation host, time ,, _5 j( x  @  M
  LV Status              unavailable      <==== 銝舐
4 R  I8 d' H* a/ O  # open                 1
  P/ S2 n# r$ ?4 z* b  D) |3 e: H  LV Size                21.84 GiB) g( E8 t  B, p* X; a& y6 u, m
  Current LE             5591
* A/ [, k+ x- F, |# I' g- ]  Segments               1
) j* M2 |* l( ~) \" b  Allocation             inherit
$ U% x1 I. o; D" }; x7 s  Read ahead sectors     auto
" X( l0 t. ?8 R+ H  - currently set to     256# P. a, f8 I5 X# i4 R7 B5 Q3 Y4 i
  Block device           253:2
$ l3 {: @) X& k4 c
9 {; T6 ~8 Z. |7 j& C! U0 j1 f5 e1 E( i- R2 H3 [
暺券鋆:
2 x+ [+ b# x3 Q' S( Mvgchange -ay vg_centos6     <====== VG     (憒 VG ==> vgchange -an vg_centos6)
1 ^/ K; y% N+ Z$ u8 w) }乩甈 LV:* A: L& ~; N$ @! d& I
#lvscan2 g" l& T; J1 U' y2 m: F7 D# {
  ACTIVE            '/dev/vg_centos6/lv_root' [21.84 GiB] inherit  <====撌脣鈭7 c8 ^7 L2 L/ D) O* f9 `' S
  ACTIVE            '/dev/vg_centos6/lv_swap' [5.62 GiB] inherit  <====撌脣鈭
+ E9 [( y6 [- G6 S3 r/ L! A5 P  ACTIVE            '/dev/vg_test/lv_root' [16.98 GiB] inherit, X& H2 m& e2 g8 H# d
  ACTIVE            '/dev/vg_test/lv_swap' [1.94 GiB] inherit% ^* Q. G) C+ c4 A+ m

1 ~& d- F; c- @1 [
8 |. |8 h5 |+ L: n9 _5 j. N. |/ Fmount LVM:" z3 V- t  @6 D1 X1 z5 M
mkdir /mnt/lvmdisk
  N4 q% @. \7 W" P8 M2 ^mount /dev/vg_centos6/lv_root  /mnt/lvmdisk) _2 v- F$ A; ?2 l
憭批!
( C( p- ?- r! e; {

) i2 J9 Z2 ]' U, L$ a  M+ M2 _; D+ L! C. ~% y

雿輻券

祉蝛閬

撠蝝詨

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

QQ|撠暺撅||52AV璈A

GMT+8, 2025-10-22 00:08 , Processed in 0.064260 second(s), 16 queries .

蝯∠.撱

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

鋆貉憒 敹恍敺 餈銵