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$N(B zpool $B$O!"(BFTP $B%5!<%PMQ$N%G!<%?$rJ];}$9$k(B a/ftproot
$B$H$$$&%G!<%?%;%C%H$,$"$k$N$G$9$,!"(B $B$=$N%G!<%?%;%C%H$N%9%J%C%W%7%g%C%H$r$D$/$C$F!"(Bdestroy
$B$7$?D>8e$K%7%9%F%`$r6/@)%j%;%C%H$7$^$7$?!#(B $BMFNL$O
$B:F5/F08e!"(Bzpool $B$rG'<1$7$?D>8e$N(B zfskern $B%+!<%M%k%W%m%;%9$NMM;R$O!"(B
$B
4 $BHVL\$K$"$k(B 100252 $B$N%9%l%C%I$,!"(Bdsl_scan_sync() $B$H$$$&$N$r8F$s$G$$$^$9!#(B $B$3$l$O(B scrub
$B$d(B resilvering $B$HF1$8$h$&$J%9%-%c%s$N=hM}$G$9!#(B zpool iostat $B$G$O(B 1MB/s, 500 IOPS $B$/$i$$$N(B
read $B$H$7$F8+$($F$$$^$9!#(B $B$3$l$,Av$C$F$$$k4V!"(Bwired $B$J%a%b%j$N>CHqNL$OA}$(B3$1$^$9!#(B $B;~$*$j=q$-9~$_%"%/%;%9!J(Bdestroy
$B$KD>@\4XO"$9$k=hM}!K$,H/@8$7!"
$B$^$?!"$"$kDxEY?J$`$H!"
$BC1$K%7%s%0%k%f!<%6%b!<%I$G:F5/F0$7$?$@$1$G!"(B zfs mount
$B$O!"$^$C$?$/$7$F$$$J$$>uBV(B$B$G$9!#(B $B$3$N(B dsl_scan_sync() $B$d(B dsl_pool_sync()
$B$N=hM}$N4V$O!"(B zfs destroy $B$N=hM}$,9T$J$o$l$F$$$^$9!#:$$C$?$3$H$K!"(B$B$3$N=hM}$,=*$k$^$G!"(B
a/ftproot $B$r%^%&%s%H$9$k$3$H$,$G$-$^$;$s!#(B
$B$J$+$J$+87$7$$$N$G$9$,!"$:$C$HBT$?$J$$$H$$$1$J$$$N$G$9!#(B destroy $B$7$F$k$o$1$G$9$+$i!"(B zpool list $B$GI=<($5$l$k(B ALLOC
$B$O!"$@$s$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%/$,H/@8$9$k$3$H$,$"$j$^$9!#8+J,$1$k%3%D$O!"(B Ctrl+T
$B$G
$B3:Ev$9$k%P!<%8%g%s$G!"$3$l$,=P$F;_$^$C$F$$$k$H$7$?$i!"(B
$B$=$N%P%0$rF'$s$G$$$k2DG=@-$,9b$$$H9M$($FNI$$$H;W$$$^$9!#(B zpool remove $B$d!"(Bzpool add
$B$N%?%$%_%s%0$GH/@8$7$d$9$/!"(B $B:F5/F0$7$F$b$3$l$K0z$C$+$+$jB3$1$k%1!<%9$,$"$j$^$9!#(B r225100
$B$NJQ99$rF~$l$F%+!<%M%k$r:F9=C[$9$l$P!"$3$N>I>u$O>C$($^$9!#(B slog $B$d(B cache
$B%G%P%$%9$rF~$l$F$$$k$H!":F8=$7$d$9$$%P%0$G$9!#(B Western Digital $B$NJ*M}%;%/%?D9(B 4KiB $B$N(B HDD (WDxxEARS $B$J$I(B) $B$,H/Gd$5$l$F$+$i$b$&(B 2
$BG/$[$I7P2a$7$^$7$?!#(B $B!V(BFreeBSD $B$G;H$($k$N(B?$B!W$H$$$&OC$r!"$$$m$$$m$J$H$3$m$G?R$M$i$l$?$j!"(B
$B@bL@$7$?$j$7$F$$$k$h$&$J5$$,$9$k$N$G$9$,!"(B $B$^$H$^$C$?;qNA$,$J$$$N$G!"$^$H$a$F$_$^$7$?!#(B $B$I$&$7$F(B WD $B$OJ*M}%;%/%?D9$r(B 512B $B$+$i(B 4096B $B$KJQ99$7$?$+!"(B
$B$H$$$&OC$O!"$$$m$$$m$J$H$3$m$G>R2p$5$l$F$$$k$N$G:#99$G$9$,!"(B $B$3$l$O(B WD
$B$@$1$,FH<+$K9M$($?$o$1$G$O$J$/$F!"(B $B%9%H%l!<%85!4o$N4k6H%3%s%=!<%7%"%`$G$"$k(B IDEMA (International Disk
Drive Equipment and Materials Association) $B$G5DO@$5$l$?
IDEMA $B$G$O!V(BHDD $B$,:#8e5-O?L)EY$rA}Bg$5$;$F$$$C$?;~!"(B $B<'5$G^BN>e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$,!"(B
$B%;%/%?D9$dAmMFNL$r8+$+$1>eJQ$($?$j!"5?;wE*$J%(%i!<$rH/@8$5$;$?$j$H$$$&IU2C5!G=$,IU$$$F$$$^$9!#(B
$B -S 4096 $B$r;XDj$7$F@8@.$7$?(B /dev/ada1.nop $B$r;H$C$F%"%/%;%9$9$k$H!"(B $B%;%/%?D9$,(B 4096B
$B$G$"$k$h$&$K8+$($^$9!#$=$l$r;H$C$F(B ZFS $B%G!<%?%;%C%H$r:n@.$7!"(B $B0l2s(B export $B$7$^$9!#$=$7$F(B
gnop $B%G%P%$%9$r:o=|$7$F$+$i(B import $B$9$l$P!"(B ashift $B$,(B 12
$B$K$J$C$?%G!<%?%;%C%H$,F@$i$l$k!"$H$$$&$o$1$G$9!#(B $B>/!96/0z$G$9$,!":#$N$H$3$m$O$3$N$h$&$JJ}K!$7$+$"$j$^$;$s!#(B $B2?$b$7$J$/$F$b;H$($k$N$G$9$,!"(B
$B%"%i%$%s%a%s%H$r9g$o$;$J$$$H@-G=$NDc2<$,H/@8$7$^$9$N$G!"(B $BLLE]$G$b9g$o$;$F$*$/$N$r$*$9$9$a$7$^$9!#(B $B$^$?!"(Bmirror $B$d(B raidz pool $B$K(B 512B $B$H(B 4096B $B$J(B HDD $B$r:.:_$5$;$k$H!"(B
$B@-G=$,Mn$A$k$3$H$,$"$j$^$9!#$3$l$O(B 4096B $B%;%/%?$J(B HDD $BFCM-$NOC$G$O$J$/!"(B
$B%G%P%$%9$NHsBP>N@-$K$h$C$FH/@8$9$kLdBj$G$9!#(B LAST MODIFIED: 2011/09/28 15:20:49 UTC
September 2011
$B46A[$O$3$A$i$^$G(B ($BFbMF$OF?L>$N%a!<%k$GAw$i$l$^$9(B)
Wednesday, September 28
* ZFS
$B$N%H%i%V%kB3$-(B(3)
* ZFS
$B$N%H%i%V%kB3$-(B(4)
* Errata
Friday, September 23
* ZFS $B$N%H%i%V%kB3$-(B
zpool $B$N>c32BP1~%U%m!<(B
panic $BEy$GA`:n$G$-$J$/$J$C$F$7$^$C$?;~$K$O(B
$B%G!<%?40A4@-$N%(%i!<(B
zdb $B%W%m%0%i%`(B
# zdb -d tank
# zdb -e -p /dev -d tank
# zdb -e -p /dev -AAA -d tank
# zdb -e -p /dev -F -d tank
# zdb -e -p /dev -cc tank
zfs $B$N>c32BP1~%U%m!<(B
* ZFS $B$N%H%i%V%kB3$-(B
(2)
# zfs destroy tank@20110920
load: 0.12 cmd: zfs 98 [tx->tx_sync_done_cv)] 355.56r 0.00u 0.03s 0% 2284k
load: 0.31 cmd: zpool 336 [zio->io_cv)] 1.20r 0.00u 0.06s 0% 2140k
$B%a%b%j$,B-$j$J$$(B?
# zpool list
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
a 18.1T 6.52T 11.6T 35% 1.81x ONLINE -
# zfs list a/ftproot
NAME USED AVAIL REFER MOUNTPOINT
a/ftproot 3.93T 6.80T 3.93T /a/ftproot
# procstat -w 1 -kk 9
PID TID COMM TDNAME KSTACK
9 100064 zfskern arc_reclaim_thre mi_switch+0x16e sleepq_timedwait+0x42 _cv_timedwait+0x14f arc_reclaim_thread+0x29d fork_exit+0x11d fork_trampoline+0xe
9 100065 zfskern l2arc_feed_threa mi_switch+0x16e sleepq_timedwait+0x42 _cv_timedwait+0x14f l2arc_feed_thread+0x1a8 fork_exit+0x11d fork_trampoline+0xe
9 100251 zfskern txg_thread_enter mi_switch+0x16e sleepq_wait+0x44 _cv_wait+0x13c txg_thread_wait+0x79 txg_quiesce_thread+0xb5 fork_exit+0x11d fork_trampoline+0xe
9 100252 zfskern txg_thread_enter mi_switch+0x16e sleepq_wait+0x44 _cv_wait+0x13c zio_wait+0x61 dsl_scan_sync+0x4d3 spa_sync+0x390 txg_sync_thread+0x139 fork_exit+0x11d fork_trampoline+0xe
# procstat -w 1 -kk 9
PID TID COMM TDNAME KSTACK
9 100064 zfskern arc_reclaim_thre mi_switch+0x16e sleepq_timedwait+0x42 _cv_timedwait+0x14f arc_reclaim_thread+0x29d fork_exit+0x11d fork_trampoline+0xe
9 100065 zfskern l2arc_feed_threa mi_switch+0x16e sleepq_timedwait+0x42 _cv_timedwait+0x14f l2arc_feed_thread+0x1a8 fork_exit+0x11d fork_trampoline+0xe
9 100251 zfskern txg_thread_enter mi_switch+0x16e sleepq_wait+0x44 _cv_wait+0x13c txg_thread_wait+0x79 txg_quiesce_thread+0xb5 fork_exit+0x11d fork_trampoline+0xe
9 100252 zfskern txg_thread_enter mi_switch+0x16e sleepq_wait+0x44 _cv_wait+0x13c zio_wait+0x61 dbuf_read+0x5e5 dmu_buf_hold+0xe0 bpobj_iterate_impl+0x23d bpobj_iterate_impl+0x31b dsl_scan_sync+0x4c3 spa_sync+0x390 txg_sync_thread+0x139 fork_exit+0x11d fork_trampoline+0xe
# procstat -w 1 -kk 9
PID TID COMM TDNAME KSTACK
9 100064 zfskern arc_reclaim_thre mi_switch+0x16e sleepq_timedwait+0x42 _cv_timedwait+0x14f arc_reclaim_thread+0x29d fork_exit+0x11d fork_trampoline+0xe
9 100065 zfskern l2arc_feed_threa <running>
9 100251 zfskern txg_thread_enter mi_switch+0x16e sleepq_wait+0x44 _cv_wait+0x13c txg_thread_wait+0x79 txg_quiesce_thread+0xb5 fork_exit+0x11d fork_trampoline+0xe
9 100252 zfskern txg_thread_enter mi_switch+0x16e sleepq_wait+0x44 _cv_wait+0x13c zio_wait+0x61 dsl_pool_sync+0x2c3 spa_sync+0x336 txg_sync_thread+0x139 fork_exit+0x11d fork_trampoline+0xe
vfs.zfs.arc_min="1G"
vfs.zfs.arc_max="2G"
vfs.zfs.arc_meta_limit="1G"
vfs.zfs.dedup.prefetch=0
vfs.zfs.prefetch_disable=1
vfs.zfs.l2arc_noprefetch=1
vfs.zfs.vdev.min_pending=1
vfs.zfs.vdev.max_pending=2
8-STABLE $B$N%P%0(B
load: 0.90 cmd: zpool 35 [spa_namespace_lock] 10.15r 0.00u 0.12s 0% 2116k
Saturday, September 3
* 4KiB $B%;%/%?$N(B HDD
$B$H(B FreeBSD
4096B $B%;%/%?D9$N(B HDD
# camcontrol identify ada1
pass2: <C300-CTFDDAC064MAG 0006> ATA-9 SATA 3.x device
pass2: 300.000MB/s transfers (SATA 2.x, UDMA5, PIO 8192bytes)
protocol ATA/ATAPI-9 SATA 3.x
device model C300-CTFDDAC064MAG
firmware revision 0006
serial number 00000000104702FF6594
WWN 500a7512ff6594
cylinders 16383
heads 16
sectors/track 63
sector size logical 512, physical 512, offset 0
LBA supported 125045424 sectors
LBA48 supported 125045424 sectors
PIO supported PIO4
DMA supported WDMA2 UDMA5
media RPM non-rotating
:
FreeBSD $B$G;H$($k$N(B?
LBA $B$N%"%i%$%s%a%s%H(B
$B2C;;$7$F(B$B8:;;$7$F$/$@$5$$!#(B $BHs>o$KJ,$+$j$E$i$$;EMM$J$N$G$9$,!"(Boffset
$B$,(B 1 $B$N;~!"O@M}%;%/%?$N@hF,$HJ*M}%;%/%?$N@hF,$O!"(B $BO@M}%;%/%?(B 1
$B8DJ,$@$1$:$l$F$$$^$9!#$3$N>l9g!"(B 8 $B$NG\?t$G$O$J$/!"(B8 $B$NG\?t(B + 1 8 $B$NG\?t(B -
1 $B$K4]$a$J$$$H$$$1$^$;$s!#(B $B!J(B2011/9/28 $B8m>pJs=$@5!K(B$BJ*M}%;%/%?D9$,(B 512B $B$@$HJs9p$5$l$k(B?
# zdb
p:
version: 28
name: 'p'
state: 0
txg: 4
pool_guid: 6065572820319548312
hostid: 521902490
hostname: 'test.allbsd.org'
vdev_children: 1
vdev_tree:
type: 'root'
id: 0
guid: 6065572820319548312
create_txg: 4
children[0]:
type: 'disk'
id: 0
guid: 16575765623681420282
path: '/dev/ada0s1f'
phys_path: '/dev/ada0s1f'
whole_disk: 1
metaslab_array: 30
metaslab_shift: 27
ashift: 9
asize: 15994191872
is_log: 0
create_txg: 4
# gnop create -S 4096 /dev/ada1
# gnop create -S 4096 /dev/ada2
# zpool create data mirror /dev/ada0.nop /dev/ada1.nop
# zpool export data
# gnop destroy /dev/ada0.nop /dev/ada1.nop
# zpool import data
$B46A[$O$3$A$i$^$G(B ($BFbMF$OF?L>$N%a!<%k$GAw$i$l$^$9(B)
Copyright (c) 1998-2014 Hiroki Sato/hrs
All rights reserved and unauthorized reproduction prohibitted.
This document is located at
URI:http://www.allbsd.org/%7Ehrs/diary/201109.html