52AV璈A|52AV.ONE

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

[linux隞也 雿輻 gdiskparted(舀孱PT)隞支脩′蝣,fdisk 芣舀尋BR銝舀孱PT

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2016-1-2 20:13:26 | 芰閰脖 撣 |摨閬 |梯璅∪
砍敺 IT_man 2017-3-21 22:08 蝺刻摩 % t1 `8 s& a5 X( _( {. F- m
; V' o* F# o8 n: P
: http://linux.vbird.org/linux_basic/0230filesystem.php#parted  http://blog.yam.com/wesley1981/article/16596463        賊隞 fstab, findfs, mount  blkid
3 _2 P% W! g. @1 [, R6 C, \fdisk 隢 :http://blogger.gtwang.org/2012/02/linux.html1 B6 n& M9 ~* s4 j) |# Z
format 憭扳 16TB 蝖祉(>16TB銝摰閬冽迨隞) : http://www.unix-ninja.com/p/Formatting_Ext4_volumes_beyond_the_16TB_limit/http://blog.yourdream.cc/2014/11/19/morethan16t.html
" u$ z& [5 S/ F: B9 h+ X! q. @% W+ {; _1 ~1 a8 Y
啣蝖祉,璈芸mount(銝隞孑ount芣舀急,璈銝芸mount) :/etc/fstab 乩銝銵:$ l, R& P8 X& s2 Y8 n
/dev/sdb1               /home2                  ext4    defaults        1 1
1 k7 v( `. {9 l6 p* @) [  i! }
7 p$ L, L, D, o5 y; T, Qparted 閰喟敦隞:https://blog.gtwang.org/linux/pa ... -disk-partitions/2/+ [6 z9 I- j1 V7 [3 H. g
   
4 L8 p+ E, @. ?6 S- ifdisk 隞文芣舀 MBR 銝舀 GPT ,閬 GPT蝖祉雿輻 parted 游隞文脩′蝣,隞乩撠隞蝝 parted冽
! z  E, Z' y0 N
2 o' U$ F/ d; q% a" N, F4 V6 O
3 S: d. i7 L$ u9 \  U5 m5 qparted 臭誑湔亙其銵隞文撠勗莎臭撣詨末函隞歹摰撣貊函隤瘜憒銝嚗
5 O, \3 a& y3 G2 u% A  L; @! k0 L3 @9 B
parted [鋆蝵孫 [隞 [窟]
1 T! t# u. V7 g8 ~9 H" |" s( }賊賂
: s! ]3 {& Q2 r隞文踝
" H# Z5 t) F) _; X/ j2 s3 ^          啣莎mkpart [primary|logical|extended] [ext4|vfat|xfs] 憪 蝯
- }4 Z7 k( P0 \- n' @& x. Q          憿舐內莎print' {8 F) W4 D; |  z: W0 h
          芷文莎rm [partition]
7 |5 ^* W/ u# [靘憒:3 t* r8 F2 |7 D' I8 B

3 m5 D+ \, I) i2 g寞銝:
! J: W. P0 J$ E2 E(parted) mkpart primary 0 100% (primary皰artition name)
' w7 l4 W6 T6 U
2 q! n8 }3 g' P# W& ^" V! L0 ^寞鈭:
" _4 v8 X0 h4 X4 z+ h7 S  tPartition name?  []? 30T_part
% `- \' Q6 R' J# v8 PFile system type?  [ext2]? ext2  (ext4銝霅血)' I$ C, `, ~: q" f) D- B
Start? 0B or 0%9 v8 \/ g. g# p# o3 n
End? 30TB or 100%8 ]  p& ]. W5 \
Warning: You requested a partition from 0.00B to 30.0TB.
/ I7 `3 |) R0 o4 r% k# i' h6 `9 P* WThe closest location we can manage is 17.4kB to 30.0TB.
0 K2 Z; q2 r# y, HIs this still acceptable to you?! X) \3 e8 t" r1 h
Yes/No? Yes
- t, r' l- E' Z5 {9 b: z" tWarning: The resulting partition is not properly aligned for best performance.4 u. g# p. {! T: l& `& d2 o
Ignore/Cancel?
! O* s8 m! H6 M! h: s: |* ?雿輻牠xt2撠曹銝餈啗郎
' v# H( ^6 |+ h! e; r: t; `: H, b/ @mkfs -t ext4 /dev/sdb1 ===> format' T7 g4 l  k& X$ u# b' t. i
ERROR:/ ]# g3 P1 R$ j- R; @. i" m
mkfs.ext4: Size of device /dev/sdb1 too big to be expressed in 32 bits
3 b- P- i  M( b* O* d! p$ }, K- _        using a blocksize of 40969 L8 X. T% C3 F/ o8 Z
SOL:
' Y3 i2 @  J% y: C3 m) uformat > 16TB see https://www.unix-ninja.com/p/For ... yond_the_16TB_limit
( n# ~* Y2 o" c( l& n5 P/usr/local/src/wget -Oe2fsprogs-1.42.7.tar.gz http://downloads.sourceforge.net ... _mirror=superb-dca39 W( S* ]2 l- a+ Z6 r
/usr/local/src/tar -zxvf e2fsprogs-1.42.7.tar.gz
; c4 b7 I4 u; ]! _2 [4 ncd /usr/local/src/e2fsprogs-1.42.7& \- Q0 L1 x1 g* ?  }" ~
mkdir build
% z5 t6 `  J+ H! a9 U  N$ gcd build5 w3 g* y) i9 o( t; Y: D
../configure- t) n7 Y; R$ \- d7 y, N6 d% s- ?
make$ Q8 U* w9 s  i
make install
5 f9 Q: q: [8 D( f0 _mke2fs -O 64bit,has_journal,extents,huge_file,flex_bg,uninit_bg,dir_nlink,extra_isize -i 4194304 /dev/sdb1
7 q+ g& D7 L- ^$ z% h憿舐內銝:. P; u1 B, _9 K" D' T& m
This filesystem will be automatically checked every 27 mounts or
8 S  P7 W, w8 @7 G* }+ Q9 P5 c180 days, whichever comes first.  Use tune2fs -c or -i to override.
. ^+ `! k: J/ l- @' m/etc/fstab銝剖乩 : (fstab隞蝝:http://horace1123.pixnet.net/blo ... b%E8%AA%AA%E6%98%8E)
$ S: }! h& N) j2 a- l5 t" N/ a. z7 @  M/dev/sdb1     /home2     ext4    defaults     1 0(蝚砌詨1:瘥亙隞,蝚砌詨0:蝟餌絞銝甇撣豢fsck銝瑼X)6 ~, r# q% w& U$ Q- X3 a
mount /home2
3 U/ a1 e1 v% L3 \8 Y
. Z6 D9 w: |0 x4 I4 Z# u

* ?* C- J* u' p; t8 M; `1 R+ s2 C=======================================================================+ h, S$ l2 d' M- i

; I8 M6 _. J* _; @[蝖祉皜祈岫]1.
6 B: C' B" x2 Z, W& K: Z' V  v: q! uLinux蝖祉撖怠仿摨行葫閰衣隞:2 Q/ w" k' h0 i' t. H
#time dd if=/dev/zero of=/home2/test bs=2k count=1000000   //     /home2 痂ount raid0 33TB 蝖祉, 11*3TB銋SCSI蝖祉
) I* Y, `. _, d, P1000000+0 records in
/ t% F) k# D5 B7 ^+ M7 c. Q( ~1000000+0 records out6 W4 C. l# p# x! s: U
2048000000 bytes (2.0 GB) copied, 3.58735 s, 571 MB/s
2 ?7 v3 o  L( O7 i  n' }+ O. r& E$ \) ^$ t# O1 I1 r
real    0m3.590s
* C. M: G, N* U7 Z: g! O3 Zuser    0m0.130s
0 a1 G4 K; |5 C& ?sys     0m3.455s
' `+ Y3 a' W1 A$ T9 A1 e1 a. u' u! {- ^. Y: X4 K
1 S! w, E& g* m, ~4 H
Linux蝖祉霈摨行葫閰衣隞:
* i2 O. e/ p' \) O( m& Y; W. S2 Y#time dd if=/home2/test of=/dev/null bs=2k
1 S. s; U1 l. k; N! A1000000+0 records in5 O' R2 k) ~1 G9 i0 }' ^+ O% d
1000000+0 records out# O( r- b9 |: O  _
2048000000 bytes (2.0 GB) copied, 0.952334 s, 2.2 GB/s- f% v* e+ H" J

  J/ s! Q4 ?' t& x" g0 nreal    0m0.954s1 W7 H0 m( G% T$ D6 r1 N
user    0m0.083s
- F) A5 F! M1 C# L8 R- Xsys     0m0.868s
. J/ E2 @5 U0 _7 d3 r
' |, v  B: [$ Z9 H- k* p閫嚗
2 e' i0 q9 l9 A; X) s2 a$ @time 其閮
- t0 ^" a6 |( k7 l/ T% A& n0 `dd 其銴鋆踝敺if OF9 r/ R; K1 l6 f* t0 Y( f' f4 M
if=/dev/zero銝YIO嚗隞亙臭誑其皜祈岫蝝蝎孵神摨;璅 of=/dev/null 銝YIO嚗臭誑其皜祈岫蝝蝎寡摨
+ u! z1 E. x* Q  |+ v* {bs 舀甈⊥葫閰血桐憭批嚗count航撖怎嚗訾撠望航憭批.
; e( E/ `5 e! J3 {! M9 N* s鞈頞憭扯皞蝣綽憭皜祈岫靘撟喳潦
+ w2 L# Q: }8 u0 ^3 a. a. p豢頞憭扯蝖殷憭甈⊥葫閰血撟喳. D- g+ F8 d, \! d( I, T
望葫閰衣敺啁豢憿舐內摨衣貊嗅翰鈭
! A0 M& x) |& M/ J2 g' a. r" t$ T8 d. b4 z- s0 I
皜祈岫摰閮敺芷 /home2/test
$ }+ K! A" r2 P% I9 K- U' `2.# X: N& d& M, X
虫蝔格寞:
6 r+ z3 |  A- \! m6 `( H( }% N: u- C1 a+ g% y" L; `. B
皜祈岫蝖祉霈摨:# a* p: L5 }/ z* `2 a" @! j
hdparm -t /dev/sdb
% d/ g# f) q) s' c% G# X& `% T3 j# F) R; D; \- @' q
/dev/sdb: (雿輻禿aid0摨血翰)) f- E. T; M* s8 i( U3 Y2 x# h
Timing buffered disk reads: 1732 MB in  3.00 seconds = 576.98 MB/sec2 r' D9 J: ?  m- @8 V4 w9 G
/ j. K- l8 \; h6 d
/dev/sdb: (敺靘寞LVM摨行)
/ a+ ~6 G7 O4 o8 t! w. t# J+ M6 s/dev/sdb:
$ T% f* w- E' m) GTiming buffered disk reads: 546 MB in  3.01 seconds = 181.43 MB/sec( [2 H+ h0 v, K9 m: X3 P
皜祈岫蝖祉撖怠仿摨:
3 Z' W& W' E) z; ^! [ hdparm -t --direct /dev/sdb- e& P' |! h! J( A5 W& \. ]

: ]; J* X* Z" B% s/dev/sdb: (雿輻禿aid0摨血翰)/ \) C3 I+ L9 A  d6 Y; W6 [6 L3 H1 Q. R
Timing O_DIRECT disk reads: 1326 MB in  3.29 seconds = 402.57 MB/sec
' F/ }: S$ o. X' w" h2 U! m; ?% }2 d* ]0 s3 T1 d; U! G; {" W/ ^
/dev/sdb: (敺靘寞LVM摨行)
" _1 C6 G2 i8 P& }4 M Timing O_DIRECT disk reads: 560 MB in  3.00 seconds = 186.36 MB/sec7 O7 u% ~$ v+ {) L( y- U7 t
" V- R) I2 D  U. C9 Z) p) ?

- C* X: ]0 l( D+ \血皜祈岫 /dev/sda  SSD蝖祉 摨血芣 raid0 scsi 蝖祉銝
  f( E; T! z* t' z7 W5 r" e8 H2 j2 f( O
$ b, X* Q2 i: {5 B9 n

* L% H) \% W* }/ d
; V' s4 b. D& E0 M9 S; p0 W. Q+ {! ^. ]% p# e2 j

# h2 |2 c) `1 t! r, W

雿輻券

祉蝛閬

BT蝳

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

QQ|撠暺撅||52AV璈A

GMT+8, 2024-11-22 08:51 , Processed in 0.063845 second(s), 16 queries .

蝯∠.撱

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

鋆貉憒 敹恍敺 餈銵