52AV璈A|52AV.ONE

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

[linux隞也 LVM 摮

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2016-1-20 16:52:08 | 芰閰脖 撣 |摨閬 |梯璅∪
: http://linux.vbird.org/linux_basic/0420quota.php#lvm
. H7 U- x2 T0 l% K9 Z  e: V         http://linux.vbird.org/linux_basic/0230filesystem.php#gdisk
( d! |2 u1 C8 v% u% l/ k5 T" Q+ _: g6 _% P/ x; B! R, v
[敶扳曉之LV摰寥]  u- S! y9 n) _* s2 X3 O
; s6 h/ _' c& A: U2 A7 @  ^

) J+ H6 ]9 I; ]% F1) lvextend -l 178813 /dev/11HD_vg/11HD_lv
" d8 S$ ~. l* X' K
" u9 p, W# m8 t, P, J

- ^& P/ m& C& I7 ?178813舀炬憭抒size,憒2.7T=178813 PE, 1 PE=16MB2 x2 s- K2 F/ {2 C# P
& }: h8 z2 s5 C4 ]7 w' s% t
; o; v. G8 I3 k3 e2 J8 E7 U2 L
2)lvresize -l 1966943 /dev/11HD_vg/11HD_lv; p9 O: N4 Z$ n

% G+ Q1 k; k; d
' |2 f# M5 G4 y- O8 m+ o8 i
1966943臬憭批蝮編ize,憒30T=1966943 PE , 臭誑 vgdisplay 11HD_vg 亦桀 vg 閰喟敦鞈,咨otal size and free size ,桐賣 PE
% h. v* z9 O) M* ~$ V& n  g. i1 A5 k
; l2 ?. G' V- X0 }
3)resize2fs /dev/11HD_vg/11HD_lv
0 m. p# G0 X3 p# ~" A) y" }. Y! F2 `# q$ M  ^& R7 T) F
0 {5 o5 l  m7 H7 ~2 P
P.S憒曆迷disk隞,雿輻 yum install gdisk 摰鋆% d. d% |' R2 V5 K) C
雿輻 gdisk 脩,

1 D& _, F( [2 M! E1 v5 A' Y  hHex code or GUID (L to show codes, Enter = 8300):  頛詨8e00  ===> LVM (logical volumn manager)
. F  o' m6 G, z( O" T; P- P' g- `% @$ a0 p' `3 k

. U9 A2 m9 W+ a: C[蝘駁小v]1 {6 h9 E4 X6 b
pvscan or pvdisplay 瘥蝖祉憿舐內:3 h4 O3 w7 L: L3 i
Couldn't find device with uuid WWeM0m-MLX2-o0da-tf7q-fJJu-eiGl-e7UmM3  d9 T% ^. _! Y3 F* |# O7 N
PV Name               unknown device1 i1 A3 O9 J5 c* l5 e4 \
, ^  l5 b: o* A. p
望潛′蝣瘥,蝝汲G,甇日蝘駁 PV:
# Y: v* {4 T- H# r7 h& u) u5 hvgreduce --removemissing --force 11HD_vg  #雿銋 LV芷,撱 LV
! [: K! `  p& o  Z5 b+ wpvscan or pvdisplay 撠曹憿舐內 "unknown device"; U5 m' I# C% w- @5 J

4 I  p! {+ ^- u$ W& x

& S  b0 a3 Y2 [[憒雿mount 撌脣冽潔憿蝖祉找LVMpartition]
$ g7 m' h8 P0 }8 ~3 o2 ~; N  c4 U#pvscan
% ~8 A) x( _5 }% N3 |  PV /dev/sdc2   VG vg_centos6   lvm2 [27.46 GiB / 0    free]      <===== 曆犖唾mount LVM (撌脣冽澆仿蝖祉)& ^4 l) Q4 ~8 r. |
  PV /dev/sdb2   VG vg_test      lvm2 [18.92 GiB / 0    free]
$ n) ^* F7 p; ]! j- Q& G  V  r  Total: 2 [46.39 GiB] / in use: 2 [46.39 GiB] / in no VG: 0 [0   ]
+ U/ v8 x% ]  S2 [1 s( `& Q; R: l" l# K1 w- p. p0 O, w3 V
#vgscan
( h2 u$ |0 @, M9 Y  Reading all physical volumes.  This may take a while...6 g* h0 z, O1 n+ ~# j
  Found volume group "vg_centos6" using metadata type lvm2
: O4 G5 `+ S7 P! @6 Z  Found volume group "vg_test" using metadata type lvm2
$ E) V( `0 _- @# j& Y9 H5 C2 H$ n
. X  U. M* t0 Q. w& e8 J% K4 y1 P. e" c, J
#lvscan5 F5 m1 d7 j1 s6 p3 y( T4 |
  inactive            '/dev/vg_centos6/lv_root' [21.84 GiB] inherit    <====芸- T- L' g* _" w
  inactive            '/dev/vg_centos6/lv_swap' [5.62 GiB] inherit    <====芸
! c2 j! F! X. V: E9 u+ Y4 N6 W' r  ACTIVE            '/dev/vg_test/lv_root' [16.98 GiB] inherit4 s( l6 i3 J, G( b' \3 N# T8 @
  ACTIVE            '/dev/vg_test/lv_swap' [1.94 GiB] inherit
4 ]4 J1 [* i! u7 z  X* ?8 i# z/ c7 \1 \2 \
8 ]9 G) \& c% T5 |) _! g' g" Y
#lvdisplay /dev/vg_centos6/lv_root9 @+ @/ [2 ~  g+ p8 l' @) f
  --- Logical volume ---5 X4 E* \/ L% L& c- F
  LV Path                /dev/vg_centos6/lv_root
5 ~5 [. _/ ]1 O4 q: t1 }  d  LV Name                lv_root  e3 r) b/ j* R+ s. ^2 r) u
  VG Name                vg_centos6
/ P" T/ ~* ]: l  LV UUID                0nFiiu-yDQG-1JUB-JI2r-uoTe-Hupi-WGisCe
( v0 B! S1 H1 c9 e6 c  LV Write Access        read/write
6 P5 x2 S6 d' A5 {9 n4 e  LV Creation host, time ,
; z% k8 E, O1 P  N  i  LV Status              unavailable      <==== 銝舐
! A: y5 W, {$ `/ A( O2 H% O  # open                 1
4 P0 z) K& G- S/ b0 w+ M  LV Size                21.84 GiB, y* [: X& n2 G3 Q  X3 _
  Current LE             5591+ ?" P/ J9 ^5 x4 g4 p
  Segments               1% D% U( c( C8 L( B
  Allocation             inherit
6 f# }% R: W% a& @  Read ahead sectors     auto
$ W/ H3 g+ b* y4 w0 j; j- V, G  - currently set to     256
8 ~- u3 q; D& N9 r! c  Block device           253:2( Q, N$ p2 g. c% U$ a

3 }) J0 \$ [3 J0 U; \( L+ R1 `; f6 y* l; h
暺券鋆:/ {( n9 k2 O' S- k/ {# B5 h* d
vgchange -ay vg_centos6     <====== VG     (憒 VG ==> vgchange -an vg_centos6)
4 b* l; y4 `3 ~; q! Y4 T8 D. R乩甈 LV:
) i. a/ J$ s/ f! |3 o#lvscan8 m' Q5 e2 S9 c
  ACTIVE            '/dev/vg_centos6/lv_root' [21.84 GiB] inherit  <====撌脣鈭
8 i$ @. l- K4 \) @+ D* g  ACTIVE            '/dev/vg_centos6/lv_swap' [5.62 GiB] inherit  <====撌脣鈭
4 }4 `& o! e) v: s- F7 e5 a, k! [# w  ACTIVE            '/dev/vg_test/lv_root' [16.98 GiB] inherit
) r6 p, X" R) J3 ?& [! A  ACTIVE            '/dev/vg_test/lv_swap' [1.94 GiB] inherit# a1 T+ K0 a( o1 q& y

+ g2 k4 `+ @& S  R
1 o# I; I' Y5 H  m6 D: t! [mount LVM:
9 p+ Q- Y7 o2 G8 k, h$ z  Kmkdir /mnt/lvmdisk
, ~4 L0 a: _  U2 cmount /dev/vg_centos6/lv_root  /mnt/lvmdisk
, R+ c' \3 z# h( @憭批!  M/ B  {9 z% e. A1 B3 V

& J3 A2 n2 Z3 d' S" r" i  O0 x$ F4 |) f) ~6 S

雿輻券

祉蝛閬

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

QQ|撠暺撅||52AV璈A

GMT+8, 2026-3-27 16:55 , Processed in 0.081961 second(s), 16 queries .

蝯∠.撱

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

鋆貉憒 敹恍敺 餈銵