CONTENTS
#contents
----
Lastmodified &lastmod;
----
*FreeBSD10から11へupgrade したら ZFSも [#i71e1a28]


 root@blackhole:~:17_04_04:9:44 # uname -a
 FreeBSD blackhole.smb.net 11.0-RELEASE-p8 FreeBSD 11.0-RELEASE-p8 #0: Wed Feb 22 06:12:04 UTC 2017     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

http://april.fool.jp/blogs/2015/01/freebsd-%E3%82%B7%E3%82%B9%E3%83%86%E3%83%A0%E3%82%A2%E3%83%83%E3%83%97%E3%82%B0%E3%83%AC%E3%83%BC%E3%83%89%E6%99%82%E3%81%AB%E3%81%AFzpoolzfs%E3%81%AE%E3%82%A2%E3%83%83%E3%83%97%E3%82%B0%E3%83%AC/

 $ zpool status
 
  pool: warehouse
  state: ONLINE
 status: Some supported features are not enabled on the pool. The pool can
        still be used, but some features are unavailable.
 action: Enable all features using 'zpool upgrade'. Once this is done,
        the pool may no longer be accessible by software that does not support
        the features. See zpool-features(7) for details.
  scan: none requested
 config:  
         NAME                                            STATE     READ WRITE CKSUM
         zroot                                           ONLINE       0     0     0
           raidz1-0                                      ONLINE       0     0     0
             gptid/79b8953a-7564-11e5-930e-8c89a51f0386  ONLINE       0     0     0
             gptid/7b267c42-7564-11e5-930e-8c89a51f0386  ONLINE       0     0     0
             gptid/7c484e02-7564-11e5-930e-8c89a51f0386  ONLINE       0     0     0


 
 zpool upgrade zroot

 gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0
 gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada1
 gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada2


 root@blackhole:~:17_04_04:9:32 # zpool status
   pool: zroot
  state: ONLINE
   scan: none requested
 config:
 
         NAME                                            STATE     READ WRITE CKSUM
         zroot                                           ONLINE       0     0     0
           raidz1-0                                      ONLINE       0     0     0
             gptid/79b8953a-7564-11e5-930e-8c89a51f0386  ONLINE       0     0     0
             gptid/7b267c42-7564-11e5-930e-8c89a51f0386  ONLINE       0     0     0
             gptid/7c484e02-7564-11e5-930e-8c89a51f0386  ONLINE       0     0     0
 
 errors: No known data errors
 root@blackhole:~:17_04_04:9:32 # gpart show ada0
 =>        34  5860533101  ada0  GPT  (2.7T)
           34           6        - free -  (3.0K)
           40        1024     1  freebsd-boot  (512K)
         1064     4194304     2  freebsd-swap  (2.0G)
      4195368  5856337760     3  freebsd-zfs  (2.7T)
   5860533128           7        - free -  (3.5K)

 root@blackhole:~:17_04_04:9:33 # camcontrol identify ada0
 pass0: <WDC WD30EFRX-68EUZN0 82.00A82> ACS-2 ATA SATA 3.x device
 pass0: 300.000MB/s transfers (SATA 2.x, UDMA5, PIO 8192bytes)
 
 protocol              ATA/ATAPI-9 SATA 3.x
 device model          WDC WD30EFRX-68EUZN0
 firmware revision     82.00A82
 serial number         WD-WCC4N1SRTJLC
 WWN                   50014ee20c236279
 cylinders             16383
 heads                 16
 sectors/track         63
 sector size           logical 512, physical 4096, offset 0
 LBA supported         268435455 sectors
 LBA48 supported       5860533168 sectors
 PIO supported         PIO4
 DMA supported         WDMA2 UDMA6
 media RPM             5400
 
 Feature                      Support  Enabled   Value           Vendor
 read ahead                     yes      yes
 write cache                    yes      yes
 flush cache                    yes      yes
 overlap                        no
 Tagged Command Queuing (TCQ)   no       no
 Native Command Queuing (NCQ)   yes              32 tags
 NCQ Queue Management           no
 NCQ Streaming                  no
 Receive & Send FPDMA Queued    no
 SMART                          yes      yes
 microcode download             yes      yes
 security                       yes      no
 power management               yes      yes
 advanced power management      no       no
 automatic acoustic management  no       no
 media status notification      no       no
 power-up in Standby            yes      no
 write-read-verify              no       no
 unload                         yes      yes
 general purpose logging        yes      yes
 free-fall                      no       no
 Data Set Management (DSM/TRIM) no
 Host Protected Area (HPA)      yes      no      5860533168/5860533168
 HPA - Security                 no

 root@blackhole:~:17_04_04:9:38 # zdb
 zroot:
     version: 5000
     name: 'zroot'
     state: 0
     txg: 9138320
     pool_guid: 8205809221381710835
     hostid: 1759158785
     hostname: 'blackhole.smb.net'
     com.delphix:has_per_vdev_zaps
     vdev_children: 1
     vdev_tree:
         type: 'root'
         id: 0
         guid: 8205809221381710835
         children[0]:
             type: 'raidz'
             id: 0
             guid: 12988772090358565254
             nparity: 1
             metaslab_array: 34
             metaslab_shift: 36
             ashift: 12
             asize: 8995320102912
             is_log: 0
             create_txg: 4
             com.delphix:vdev_zap_top: 157
             children[0]:
                 type: 'disk'
                 id: 0
                 guid: 6730515433404320309
                 path: '/dev/gptid/79b8953a-7564-11e5-930e-8c89a51f0386'
                 phys_path: '/dev/gptid/79b8953a-7564-11e5-930e-8c89a51f0386'
                 whole_disk: 1
                 create_txg: 4
                 com.delphix:vdev_zap_leaf: 158
             children[1]:
                 type: 'disk'
                 id: 1
                 guid: 4691406828913798906
                 path: '/dev/gptid/7b267c42-7564-11e5-930e-8c89a51f0386'
                 phys_path: '/dev/gptid/7b267c42-7564-11e5-930e-8c89a51f0386'
                 whole_disk: 1
                 create_txg: 4
                 com.delphix:vdev_zap_leaf: 159
             children[2]:
                 type: 'disk'
                 id: 2
                 guid: 9697705238108445282
                 path: '/dev/gptid/7c484e02-7564-11e5-930e-8c89a51f0386'
                 phys_path: '/dev/gptid/7c484e02-7564-11e5-930e-8c89a51f0386'
                 whole_disk: 1
                 create_txg: 4
                 com.delphix:vdev_zap_leaf: 160
     features_for_read:
         com.delphix:hole_birth
         com.delphix:embedded_data


----
Total access &counter(total);:本日 &counter(today);:昨日 &counter(yesterday);
#counter([total|today|yesterday]);

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS