Getting ashift property values: use zdb, not zpool

This forum is to find answers to problems you may be having with ZEVO Community Edition.

Moderators: jhartley, MSR734, nola

Getting ashift property values: use zdb, not zpool

Post by grahamperrin » Wed Jul 24, 2013 11:40 am

With ZEVO Community Edition 1.1.1:

  • the zpool get subcommand does not work for the ashift property.

For true ashift property values:

  • after using ZEVO to import the pool, use zdb(8).

Example

An environment, disk6:

Code: Select all
sh-3.2$ diskutil info /dev/disk6 | grep "Block Size"
   Device Block Size:        512 Bytes
sh-3.2$ diskutil list /dev/disk6
/dev/disk6
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *616.0 GB   disk6
   1:                        EFI                         209.7 MB   disk6s1
   2:                        ZFS                         615.7 GB   disk6s2
sh-3.2$ zpool status gjp22
  pool: gjp22
 state: ONLINE
 scan: scrub repaired 0 in 13h19m with 0 errors on Sat Jul 13 05:51:49 2013
config:

   NAME                                         STATE     READ WRITE CKSUM
   gjp22                                        ONLINE       0     0     0
     GPTE_71B8BDA2-3EBA-4B91-9E1C-2AE2B1DAAD06  ONLINE       0     0     0  at disk6s2
   cache
     GPTE_919F54A7-3805-4ED0-A54E-B87FF01398FD  ONLINE       0     0     0  at disk1s2

errors: No known data errors


The issue with zpool:

Code: Select all
sh-3.2$ zpool get ashift gjp22
NAME   PROPERTY  VALUE   SOURCE
gjp22  ashift    0       default


The truth with zdb:

Code: Select all
sh-3.2$ sudo zdb -l /dev/disk6s2 | grep " ashift:"
Password:
        ashift: 12
        ashift: 12
        ashift: 12
        ashift: 12
grahamperrin Offline

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

Return to Troubleshooting

Who is online

Users browsing this forum: No registered users and 1 guest

cron