52AV璈A|52AV.ONE

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

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

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2016-1-2 20:13:26 | 芰閰脖 撣 |摨閬 |梯璅∪
砍敺 IT_man 2017-3-21 22:08 蝺刻摩 + o' ^$ n6 e- a% w* f
* B& ?, t# j, ?
: http://linux.vbird.org/linux_basic/0230filesystem.php#parted  http://blog.yam.com/wesley1981/article/16596463        賊隞 fstab, findfs, mount  blkid/ `, r( M- ^: E- \% Z
fdisk 隢 :http://blogger.gtwang.org/2012/02/linux.html
5 A8 e$ [+ t1 D+ l3 Tformat 憭扳 16TB 蝖祉(>16TB銝摰閬冽迨隞) : http://www.unix-ninja.com/p/Formatting_Ext4_volumes_beyond_the_16TB_limit/http://blog.yourdream.cc/2014/11/19/morethan16t.html
% \! e6 l: _! e3 j3 Q4 V4 z* c$ Y1 Y8 D) B
啣蝖祉,璈芸mount(銝隞孑ount芣舀急,璈銝芸mount) :/etc/fstab 乩銝銵:% _( c1 f; y0 j- j: q
/dev/sdb1               /home2                  ext4    defaults        1 1. ?* @" `! m$ c" S
6 k, g5 T( G- W- ~) T9 T; ^
parted 閰喟敦隞:https://blog.gtwang.org/linux/pa ... -disk-partitions/2/
& ~9 p- n8 F) Y   
2 Q# J6 e5 u' q: S- B* ~% |$ @8 \fdisk 隞文芣舀 MBR 銝舀 GPT ,閬 GPT蝖祉雿輻 parted 游隞文脩′蝣,隞乩撠隞蝝 parted冽/ g% \) [+ M; u9 J9 h0 G) n

- t; ]9 n% D; l/ W$ h
7 K: v8 x: i+ @8 N9 S6 P, {& Kparted 臭誑湔亙其銵隞文撠勗莎臭撣詨末函隞歹摰撣貊函隤瘜憒銝嚗
, s6 v! L+ T+ F6 V4 t- a4 j5 P  p
parted [鋆蝵孫 [隞 [窟]6 x$ v* h$ r/ d. e3 J( I
賊賂. p( E' j0 I9 v0 U: A+ Z& f
隞文踝0 y, X$ H9 M  ^) M( H& W
          啣莎mkpart [primary|logical|extended] [ext4|vfat|xfs] 憪 蝯
6 N3 h9 K+ v: D  x# R          憿舐內莎print
- {% C  d# r+ `3 z8 p          芷文莎rm [partition]
+ A7 o+ j' w4 I* f: r靘憒:2 }8 E+ F4 ^, `- r3 H& i
8 i# H+ c* j. K
寞銝:8 G. K' w; q% P: U$ o( |! R! Z+ o4 ^
(parted) mkpart primary 0 100% (primary皰artition name)6 n3 A" |9 d; o9 N5 T
+ _3 r4 Y* ^, U3 f7 j, @, E0 P$ q
寞鈭:! e6 ?0 E1 B5 N( ]+ x# v. n) p
Partition name?  []? 30T_part
, A7 @2 ~. |( Q6 p& n, IFile system type?  [ext2]? ext2  (ext4銝霅血)' C- {' k# u- s3 f' u4 m
Start? 0B or 0%) e5 q( X* X' p0 o3 m3 y
End? 30TB or 100%
' j9 r% X! p- ^8 t! o* d. YWarning: You requested a partition from 0.00B to 30.0TB.
0 S* S$ d* V$ j) i. wThe closest location we can manage is 17.4kB to 30.0TB., c1 z! X' S: K% W
Is this still acceptable to you?& U3 n3 P8 W* h  y4 K& R
Yes/No? Yes) k+ `$ @. i7 t# C' S
Warning: The resulting partition is not properly aligned for best performance.6 I6 q& L: ?- e) N" Y
Ignore/Cancel?
/ n2 l: E( u. _0 z' B- g雿輻牠xt2撠曹銝餈啗郎* M9 I# _1 T$ j& K1 {  ^
mkfs -t ext4 /dev/sdb1 ===> format
+ E4 R( }% J1 `  T, ?ERROR:
9 q  }& ^# q9 e6 r4 Rmkfs.ext4: Size of device /dev/sdb1 too big to be expressed in 32 bits$ ^7 X, u6 W0 H+ R0 Y- j
        using a blocksize of 4096. f! y) r7 P. r# D6 a4 H
SOL:
/ h* o% n; g; ~6 q% \1 M: iformat > 16TB see https://www.unix-ninja.com/p/For ... yond_the_16TB_limit. ^* r& M( ]1 v8 g; f$ z) q
/usr/local/src/wget -Oe2fsprogs-1.42.7.tar.gz http://downloads.sourceforge.net ... _mirror=superb-dca3/ b* |+ M9 ]( o
/usr/local/src/tar -zxvf e2fsprogs-1.42.7.tar.gz2 J. P0 H! f/ p- X2 H
cd /usr/local/src/e2fsprogs-1.42.7
: i3 i  p' X$ L3 O: kmkdir build; k/ N7 ]/ ^3 G5 {% v
cd build
  `- b% c% y9 n7 V5 L ../configure
9 ^8 W5 _# t0 k make
- Y' _% q, U$ l. T3 d, N/ |3 e make install8 F7 G6 H! V- Z# F+ Y" [
mke2fs -O 64bit,has_journal,extents,huge_file,flex_bg,uninit_bg,dir_nlink,extra_isize -i 4194304 /dev/sdb1
8 x1 b3 A  K6 V! S憿舐內銝:
% i% Y. e6 f9 x% x7 T* ?This filesystem will be automatically checked every 27 mounts or
( l: z) y$ s7 d3 y# r' w0 H180 days, whichever comes first.  Use tune2fs -c or -i to override.
- D: A. n; m( A6 ?0 \" Z/etc/fstab銝剖乩 : (fstab隞蝝:http://horace1123.pixnet.net/blo ... b%E8%AA%AA%E6%98%8E)
8 T' e; B& {" L8 U4 `; _. g/dev/sdb1     /home2     ext4    defaults     1 0(蝚砌詨1:瘥亙隞,蝚砌詨0:蝟餌絞銝甇撣豢fsck銝瑼X)
# D6 M) g; y! Smount /home2
2 n1 Q( I. h( d' k' B7 E- v
  O8 x( w0 k4 ~, p" T

, J7 h( G% q+ s% }+ E" a0 t% b& J* E=======================================================================$ Q: B8 h  f: C- F9 R4 S3 e# G! C2 c
. _% p0 K9 r0 e* y
[蝖祉皜祈岫]1.
% z: S3 }9 f3 y# ELinux蝖祉撖怠仿摨行葫閰衣隞:: `/ E8 \% C8 p' o6 e6 a
#time dd if=/dev/zero of=/home2/test bs=2k count=1000000   //     /home2 痂ount raid0 33TB 蝖祉, 11*3TB銋SCSI蝖祉% O4 |; k3 o. a& {
1000000+0 records in4 E  d& O# O; }/ T4 C" \
1000000+0 records out
' C4 k5 ~; k0 Y+ L( k2048000000 bytes (2.0 GB) copied, 3.58735 s, 571 MB/s
( ]% `, D8 g8 q+ D5 E. U9 q. w+ j, f0 R4 s. u( F( C
real    0m3.590s
7 P6 q/ C# X3 \user    0m0.130s
- M# h+ E$ \# d9 i8 y5 V( a9 u1 fsys     0m3.455s7 w% V8 I) O3 M6 s+ |

" \& S, U0 V: P' p2 D9 h
8 [' j# w7 h* s3 X8 O- J6 uLinux蝖祉霈摨行葫閰衣隞:
; D1 M! a2 [% ~6 [#time dd if=/home2/test of=/dev/null bs=2k' K1 I  F* Q9 c/ |7 l( n
1000000+0 records in
+ b' D- T% ^: j! t1000000+0 records out0 i6 j2 }6 v  g8 x! `" y- [! t
2048000000 bytes (2.0 GB) copied, 0.952334 s, 2.2 GB/s7 [, P5 K% W3 Z) s* j' E
% X0 r) w' A4 C. O% H; |
real    0m0.954s
3 j( \. l0 M2 N+ Guser    0m0.083s
6 I9 x, [! @) t' V2 G* }; nsys     0m0.868s& r' B% O" K4 s

8 P0 N1 M- K5 h; Y6 b( |. T$ M閫嚗! D8 \3 D* C4 ~3 d
time 其閮
% R  w5 X* P$ l4 k) V$ ?+ Z2 I. Add 其銴鋆踝敺if OF
: e  f! l, p' K" O0 \$ \2 R# eif=/dev/zero銝YIO嚗隞亙臭誑其皜祈岫蝝蝎孵神摨;璅 of=/dev/null 銝YIO嚗臭誑其皜祈岫蝝蝎寡摨! n6 Z" q4 q# q% L
bs 舀甈⊥葫閰血桐憭批嚗count航撖怎嚗訾撠望航憭批.
2 C) h6 q3 {- {2 u- m5 s鞈頞憭扯皞蝣綽憭皜祈岫靘撟喳潦
% f7 M0 s# a, ^$ D& L! S5 L豢頞憭扯蝖殷憭甈⊥葫閰血撟喳5 {) Y5 H  ?4 K0 B" A9 v
望葫閰衣敺啁豢憿舐內摨衣貊嗅翰鈭
0 C% u1 S2 c. j3 |1 i
: [5 K6 d. D% M* H. I, y0 s% H皜祈岫摰閮敺芷 /home2/test
: K$ Q. G4 P: f* d  f2.$ u& t4 l8 w7 F/ h) Z0 y  b. }
虫蝔格寞:' }  e2 i8 p5 a6 J, G, U7 J4 W! [

1 q- N; c$ x6 h# }6 b& P2 J0 H皜祈岫蝖祉霈摨:
) `+ m1 J' o! x8 n+ |hdparm -t /dev/sdb
# a6 h$ u# R, E) m: O- H2 S. e
9 k* d8 G, p3 v2 [4 O% O/dev/sdb: (雿輻禿aid0摨血翰)5 {' S+ a( h) L$ u  E. |& p2 @
Timing buffered disk reads: 1732 MB in  3.00 seconds = 576.98 MB/sec) z# v8 s. T& I4 |8 K3 g  ^

- i6 a8 S9 N- S! e/dev/sdb: (敺靘寞LVM摨行), D: R: H  L0 r, C( e
/dev/sdb:+ k) y# B0 U8 G
Timing buffered disk reads: 546 MB in  3.01 seconds = 181.43 MB/sec( c1 s% E) ~! F$ w4 ~* z+ P% f
皜祈岫蝖祉撖怠仿摨:1 T  l9 ^% {' m. d
hdparm -t --direct /dev/sdb
, P% y! x0 w1 V
5 P' _7 D- A5 |( z1 M# {. B/dev/sdb: (雿輻禿aid0摨血翰)+ C  [$ s! B' n$ w  b
Timing O_DIRECT disk reads: 1326 MB in  3.29 seconds = 402.57 MB/sec
' O/ q6 ?6 u6 ]9 w- {3 U0 P6 L) [: n/ G/ v) r8 H3 N' k
/dev/sdb: (敺靘寞LVM摨行)8 \1 z+ R( Q0 I$ `* K9 Z$ H
Timing O_DIRECT disk reads: 560 MB in  3.00 seconds = 186.36 MB/sec
3 O$ H; R  ~7 c3 O3 z1 m) G( v3 k/ j* D1 o  J0 L1 ]

4 t% M) h- Q# p. e血皜祈岫 /dev/sda  SSD蝖祉 摨血芣 raid0 scsi 蝖祉銝$ d0 B3 A2 V* z" W+ a, a7 a# W
7 W4 W) _$ ]( D: |  o4 E  K
3 m2 @, K" @. c* A. Y, B; S: r7 q
- m; \$ u8 _! w- I* r" m
4 e# ]8 }3 X, }/ x6 ^- ^

" R* B& {1 w) I
6 C& ^& f% m4 g  R+ e2 S- N

雿輻券

祉蝛閬

BT蝳

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

QQ|撠暺撅||52AV璈A

GMT+8, 2024-11-25 21:30 , Processed in 0.063958 second(s), 16 queries .

蝯∠.撱

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

鋆貉憒 敹恍敺 餈銵