ashift differs from ashift in configuration from import

Moderators: jhartley, MSR734, nola

ashift differs from ashift in configuration from import

Post by grahamperrin » Sun Oct 21, 2012 4:02 am

In a configuration for import, ashift is 9:

Code: Select all
sh-3.2$ date
Sun 21 Oct 2012 09:54:34 BST
sh-3.2$ uptime
 9:54  up  2:21, 4 users, load averages: 0.82 0.76 0.67
sh-3.2$ sudo zdb -CCe crypt

Configuration for import:
        vdev_children: 1
        version: 28
        pool_guid: 12887253980953825356
        name: 'crypt'
        state: 1
        vdev_tree:
            type: 'root'
            id: 0
            guid: 12887253980953825356
            children[0]:
                type: 'disk'
                id: 0
                guid: 11764303400396822435
                whole_disk: 0
                metaslab_array: 30
                metaslab_shift: 22
                ashift: 9
                asize: 519045120
                is_log: 0
                create_txg: 4
                path: '/dev/dsk/GPTE_2C8D7C8B-97BF-4769-A661-CFD5ED06C745'

MOS Configuration:
        version: 28
        name: 'crypt'
        state: 1
        txg: 155
        pool_guid: 12887253980953825356
        hostname: 'macbookpro08-centrim.home@1B4C77AE-B80A-59F9-B5CB-7A86B7437D40'
        vdev_children: 1
        vdev_tree:
            type: 'root'
            id: 0
            guid: 12887253980953825356
            children[0]:
                type: 'disk'
                id: 0
                guid: 11764303400396822435
                path: '/dev/dsk/GPTE_2C8D7C8B-97BF-4769-A661-CFD5ED06C745'
                whole_disk: 0
                metaslab_array: 30
                metaslab_shift: 22
                ashift: 9
                asize: 519045120
                is_log: 0
                create_txg: 4


For the imported pool, ashift is 0 (zero):

Code: Select all
sh-3.2$ zpool import
  pool: crypt
    id: 12887253980953825356
 state: ONLINE
action: The pool can be imported using its name or numeric identifier.
config:

   crypt                                        ONLINE
     GPTE_2C8D7C8B-97BF-4769-A661-CFD5ED06C745  ONLINE
sh-3.2$ zpool import crypt
sh-3.2$ zpool get all crypt
NAME   PROPERTY       VALUE      SOURCE
crypt  size           492Mi      -
crypt  capacity       0%         -
crypt  altroot        -          default
crypt  health         ONLINE     -
crypt  guid           12887253980953825356  default
crypt  version        28         default
crypt  failmode       continue   default
crypt  listsnapshots  off        default
crypt  autoexpand     off        default
crypt  free           492Mi      -
crypt  allocated      223Ki      -
crypt  readonly       off        -
crypt  ashift         0          default
sh-3.2$ zfs get all crypt
NAME   PROPERTY              VALUE                  SOURCE
crypt  type                  filesystem             -
crypt  creation              Sun Oct 21  5:48 2012  -
crypt  used                  108Ki                  -
crypt  available             460Mi                  -
crypt  referenced            36.5Ki                 -
crypt  compressratio         1.00x                  -
crypt  mounted               yes                    -
crypt  quota                 none                   default
crypt  reservation           none                   default
crypt  recordsize            128Ki                  default
crypt  mountpoint            /Volumes/crypt         default
crypt  checksum              on                     default
crypt  compression           off                    default
crypt  atime                 on                     default
crypt  devices               off                    temporary
crypt  exec                  on                     default
crypt  setuid                off                    temporary
crypt  readonly              off                    default
crypt  snapdir               hidden                 default
crypt  canmount              on                     default
crypt  copies                1                      default
crypt  version               5                      -
crypt  utf8only              on                     -
crypt  normalization         formD                  -
crypt  casesensitivity       sensitive              -
crypt  refquota              none                   default
crypt  refreservation        none                   default
crypt  primarycache          all                    default
crypt  secondarycache        all                    default
crypt  usedbysnapshots       0                      -
crypt  usedbydataset         36.5Ki                 -
crypt  usedbychildren        72Ki                   -
crypt  usedbyrefreservation  0                      -
crypt  logbias               latency                default
crypt  sync                  standard               default
sh-3.2$


Are ashift differences of that type normal, acceptable, for a single pool?
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom

Return to General Discussion

Who is online

Users browsing this forum: ilovezfs and 2 guests

cron