52AV璈A|52AV.ONE

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

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

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2016-1-2 20:13:26 | 芰閰脖 撣 |摨閬 |梯璅∪
砍敺 IT_man 2017-3-21 22:08 蝺刻摩
+ ^# r7 L9 Q1 o8 Z) |7 e; ?3 O0 p; S) i: c; t
: http://linux.vbird.org/linux_basic/0230filesystem.php#parted  http://blog.yam.com/wesley1981/article/16596463        賊隞 fstab, findfs, mount  blkid) C  R# @% I  e5 y$ y2 a, Y; S
fdisk 隢 :http://blogger.gtwang.org/2012/02/linux.html0 K0 D; u3 A: R
format 憭扳 16TB 蝖祉(>16TB銝摰閬冽迨隞) : http://www.unix-ninja.com/p/Formatting_Ext4_volumes_beyond_the_16TB_limit/http://blog.yourdream.cc/2014/11/19/morethan16t.html2 i+ s+ e. j  J) `* |

* ?0 f! d) |% R. f# B啣蝖祉,璈芸mount(銝隞孑ount芣舀急,璈銝芸mount) :/etc/fstab 乩銝銵:
# v! w3 n0 z: t/dev/sdb1               /home2                  ext4    defaults        1 1
* C9 D4 j1 ?" ~. o, ^! K  n: V. T5 z6 `, r) c1 ~  z+ ^
parted 閰喟敦隞:https://blog.gtwang.org/linux/pa ... -disk-partitions/2/
$ F4 j% ?, e1 s5 w   
5 ?. h  l1 S( r9 {; U- Q. {# H, [fdisk 隞文芣舀 MBR 銝舀 GPT ,閬 GPT蝖祉雿輻 parted 游隞文脩′蝣,隞乩撠隞蝝 parted冽% M- j8 m9 M' k' D
8 m/ E* U. a9 j$ X  x

5 Z# T" [7 b8 d2 F* Yparted 臭誑湔亙其銵隞文撠勗莎臭撣詨末函隞歹摰撣貊函隤瘜憒銝嚗
- ]  j/ ?! H9 A: ?5 D" y4 y: G6 ^/ A$ c0 Y' X
parted [鋆蝵孫 [隞 [窟]3 w9 y9 ^8 G/ `' {9 e) d
賊賂
$ U; U9 A0 {4 d: R6 ?' x) u隞文踝1 A! T  ?  }. ^; I0 H% W' h
          啣莎mkpart [primary|logical|extended] [ext4|vfat|xfs] 憪 蝯- m* p) q' q4 }5 [' g$ t( L2 j
          憿舐內莎print$ T* u% t  F* M* S! V$ V& U) k! w
          芷文莎rm [partition]
% N2 M1 A  m: M6 o' F& H% g/ N靘憒:
* f( ~" d0 x' z: K! H, y
& e7 z; `; {2 X
寞銝:) J& I5 O; v8 Z! s
(parted) mkpart primary 0 100% (primary皰artition name)! Z" Y7 v3 m  x, H) I, n
, b% x! f1 X( g; W8 K
寞鈭:2 |+ C' D( ?  X, c6 e
Partition name?  []? 30T_part, @' X( t7 A4 B# F! u8 j) {
File system type?  [ext2]? ext2  (ext4銝霅血)' _4 t$ f  ^$ C: E/ m+ A. z& V: v
Start? 0B or 0%
$ z1 T, l! O+ n6 u9 q0 Y% oEnd? 30TB or 100%
# N& \7 }! `" F8 A! n1 K1 rWarning: You requested a partition from 0.00B to 30.0TB.- e* b7 F2 n( [& q7 T; j
The closest location we can manage is 17.4kB to 30.0TB.
. M; s' l. h/ t7 qIs this still acceptable to you?3 p7 ?% U% u* q" `! p
Yes/No? Yes: e  a5 W3 d7 G; s, o8 i( ~5 A
Warning: The resulting partition is not properly aligned for best performance.
, u- F  @7 ?# s: S( VIgnore/Cancel?
  a* P( A8 X8 U" p- l5 s雿輻牠xt2撠曹銝餈啗郎" n/ D5 a4 W1 t/ h: V
mkfs -t ext4 /dev/sdb1 ===> format
% V# g" T8 z2 P, TERROR:/ `- l, o: F% y3 x% A
mkfs.ext4: Size of device /dev/sdb1 too big to be expressed in 32 bits0 a; Q% N6 i9 s+ w. K1 x3 r+ Q
        using a blocksize of 4096. d& L- Y7 |% ^, c! X! E
SOL: . b. D& f+ @; D' i: o4 k' b
format > 16TB see https://www.unix-ninja.com/p/For ... yond_the_16TB_limit
9 e, y" m3 `# m6 v/usr/local/src/wget -Oe2fsprogs-1.42.7.tar.gz http://downloads.sourceforge.net ... _mirror=superb-dca3
) p  T; R7 z  Z$ V4 M& r6 F: B/usr/local/src/tar -zxvf e2fsprogs-1.42.7.tar.gz
# e- S: |1 c% K' ]. b2 |cd /usr/local/src/e2fsprogs-1.42.77 n+ P% \5 i" S) P# P; Z0 T; ?' w- E
mkdir build
$ N' P4 B, \* j7 Fcd build' V1 y, p7 z, U' }: N2 o6 H
../configure
4 P% m. q4 H* m) x make
# A; F6 V6 v# A6 B( S. c make install5 }+ z% H7 O" V( a+ U, b
mke2fs -O 64bit,has_journal,extents,huge_file,flex_bg,uninit_bg,dir_nlink,extra_isize -i 4194304 /dev/sdb19 t' c# m0 q# e* \
憿舐內銝:
' [& `  x" h! U+ a  lThis filesystem will be automatically checked every 27 mounts or
0 U$ D" w" M+ P6 ?4 C- _7 n+ p180 days, whichever comes first.  Use tune2fs -c or -i to override.
& j* L0 j. \) g- O) b2 c0 j& L/etc/fstab銝剖乩 : (fstab隞蝝:http://horace1123.pixnet.net/blo ... b%E8%AA%AA%E6%98%8E)
" n0 j" E! }5 o. ?0 c7 V/dev/sdb1     /home2     ext4    defaults     1 0(蝚砌詨1:瘥亙隞,蝚砌詨0:蝟餌絞銝甇撣豢fsck銝瑼X)
& D- y3 w0 \" \1 M  Fmount /home2& [: ~  U. h8 y

$ a" k$ E$ v) ~: w5 B7 y4 M- W

! X; T* p' N# `% K) u6 U=======================================================================
( }5 E8 [, I9 ?( F: A
' ]  ], d1 _3 Z/ l% |, g% c( |[蝖祉皜祈岫]1.) [, x) f( q9 L
Linux蝖祉撖怠仿摨行葫閰衣隞:9 p$ T! m/ ]' k) }
#time dd if=/dev/zero of=/home2/test bs=2k count=1000000   //     /home2 痂ount raid0 33TB 蝖祉, 11*3TB銋SCSI蝖祉1 C  K, m  q7 c& m3 h
1000000+0 records in
) {" c& |' N- b* O; G4 q- ]0 a1000000+0 records out
3 F& @/ ?* ]7 d8 k& y- k2048000000 bytes (2.0 GB) copied, 3.58735 s, 571 MB/s: _2 Z6 D/ H+ d* M1 `. }0 S% ~+ G; g
% Y: S; Y2 x* t/ B; }! S
real    0m3.590s
8 ^, N* X# y+ f* a4 Vuser    0m0.130s
9 o" G# I9 s* u* `: \1 p: Msys     0m3.455s
  w% y3 y# O! M; q# m, g$ G8 Y5 W4 ^* H) p4 J8 v

+ z7 D& e6 z' u  @' \3 [# vLinux蝖祉霈摨行葫閰衣隞:7 F7 A4 a( P. O4 _( v9 W6 {
#time dd if=/home2/test of=/dev/null bs=2k: v9 g- S7 |2 O: t7 S9 P, l3 A* U
1000000+0 records in1 d! n: J) K4 {- N: X
1000000+0 records out
! x. p2 |* F0 `- z* J9 G+ j2048000000 bytes (2.0 GB) copied, 0.952334 s, 2.2 GB/s
9 _3 c& n2 G- x; f+ s* Q
* N+ Y+ N  b. Breal    0m0.954s0 T( Z' E1 l: N$ A% V7 B
user    0m0.083s
' x, b. Y: b, Ksys     0m0.868s) a1 V: c$ S/ l
2 U8 g* S- ^$ R% |# c1 S/ F: |
閫嚗
: ^  D7 U" w' F6 i" O$ ?/ {time 其閮
9 K  q: L$ x  D$ ~* B8 q. mdd 其銴鋆踝敺if OF
4 ~! b$ \; n1 u# @4 F% ]+ W' Sif=/dev/zero銝YIO嚗隞亙臭誑其皜祈岫蝝蝎孵神摨;璅 of=/dev/null 銝YIO嚗臭誑其皜祈岫蝝蝎寡摨
! Z/ |0 g/ U! s; Kbs 舀甈⊥葫閰血桐憭批嚗count航撖怎嚗訾撠望航憭批.
3 K( m! S4 x) ]+ Q* _6 R& T鞈頞憭扯皞蝣綽憭皜祈岫靘撟喳潦% v  n8 d; _' y- P% j# x* p" n6 V
豢頞憭扯蝖殷憭甈⊥葫閰血撟喳
; V! f4 Z0 j$ O望葫閰衣敺啁豢憿舐內摨衣貊嗅翰鈭, E. O1 Y8 x* D5 m$ }" D* O
3 }% N' ~( R  c2 [9 z" q4 t
皜祈岫摰閮敺芷 /home2/test
" n% a9 H3 O' i+ L7 h2.
5 [0 L; E$ P2 c0 ~$ d- }/ w- h虫蝔格寞:
, O* U9 f9 N  |2 q) f
' _% L% K- A1 ]% k7 J皜祈岫蝖祉霈摨:
0 f2 F5 ?+ L  m$ N- S- M( {hdparm -t /dev/sdb
$ X2 e- t+ i5 _
! I4 D9 ?6 Y8 X/dev/sdb: (雿輻禿aid0摨血翰)
+ S9 p9 @) Y# Z, I! | Timing buffered disk reads: 1732 MB in  3.00 seconds = 576.98 MB/sec0 C: g1 w0 k3 V6 N

& d6 w5 U' y* \7 g/dev/sdb: (敺靘寞LVM摨行)7 S  ^& {, O# S- r7 k% u. c
/dev/sdb:
: N  j2 O) L( R& X" ]% F) eTiming buffered disk reads: 546 MB in  3.01 seconds = 181.43 MB/sec" {, `/ r& j$ E; n
皜祈岫蝖祉撖怠仿摨:
! \% b' O$ i3 g3 G hdparm -t --direct /dev/sdb( R2 n8 n* q" ?0 G8 W' X& F
" I1 S0 O8 U% p5 G. l
/dev/sdb: (雿輻禿aid0摨血翰)
: u9 t5 U5 N& t* b  V Timing O_DIRECT disk reads: 1326 MB in  3.29 seconds = 402.57 MB/sec7 G, D, \& V3 E: ^7 S4 p

* P  M  |: _% K# q4 a: C3 z  k/dev/sdb: (敺靘寞LVM摨行): ^7 L; {# i. `. [) M* q" N3 T
Timing O_DIRECT disk reads: 560 MB in  3.00 seconds = 186.36 MB/sec
% B/ o" ~! M. s4 s3 O) A6 n6 ]8 M5 U
  t* U) N+ w% s
血皜祈岫 /dev/sda  SSD蝖祉 摨血芣 raid0 scsi 蝖祉銝
: s, I8 z6 z8 ]8 Z9 I4 c( n; K' f/ A* L: l. j/ g9 r
7 t' ?6 r9 c6 s/ `) E, H, \
0 X7 B& V( C/ r2 o3 R
1 ~: V7 O! D7 l/ A& x
9 e( G, h, o1 z" e+ _* W; [  O

) Q) f$ T$ q* X1 j& h, L) I, i1 f

雿輻券

祉蝛閬

BT蝳

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

QQ|撠暺撅||52AV璈A

GMT+8, 2024-11-22 05:04 , Processed in 0.065787 second(s), 16 queries .

蝯∠.撱

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

鋆貉憒 敹恍敺 餈銵