Trouble adding encrypted disk to create a mirror

New to OpenZFS on OS X (Or ZFS in general)? Ask your questions here!

Trouble adding encrypted disk to create a mirror

Postby Sharko » Sat Jun 02, 2018 10:36 am

Hi, I've been trying to convert my single disk backup to a two disk mirror. I'm still running ZFS 1.5.2 under El Capitan. I bought an OWC two disk enclosure, and put the original 4TB backup disk and the new 4TB backup disk in the same enclosure, which is connected through ESATA. My original single disk backup was encrypted with the Filevault procedure, so I went through the procedure to encrypt the new disk with Filevault using the GUI Disk Utility. You can see what happens when :

Code: Select all
sh-3.2# diskutil cs list | grep Conversion
|       Conversion Status:       Complete
|       Conversion Status:       Complete
|       Conversion Status:       Complete
|       Conversion Status:       Complete
|       Conversion Status:       Complete
|       Conversion Status:       Complete
        Conversion Status:       Complete
sh-3.2# diskutil cs list
CoreStorage logical volume groups (7 found)
|

********* snipped data from first six groups ***************

+-- Logical Volume Group 600666BA-2B23-456F-803F-8CF1D006347E
    =========================================================
    Name:         EliteProDual-2_HFS
    Status:       Online
    Size:         4000443056128 B (4.0 TB)
    Free Space:   16560128 B (16.6 MB)
    |
    +-< Physical Volume E79F2AB9-62E0-466A-B323-AC80C7F08396
    |   ----------------------------------------------------
    |   Index:    0
    |   Disk:     disk13s2
    |   Status:   Online
    |   Size:     4000443056128 B (4.0 TB)
    |
    +-> Logical Volume Family CB1951D4-F3CE-4DBF-82A5-D472D2239A16
        ----------------------------------------------------------
        Encryption Type:         AES-XTS
        Encryption Status:       Unlocked
        Conversion Status:       Complete
        High Level Queries:      Fully Secure
        |                        Passphrase Required
        |                        Accepts New Users
        |                        Has Visible Users
        |                        Has Volume Key
        |
        +-> Logical Volume B3A51B3A-FB94-4DF0-826B-9843D0F244BC
            ---------------------------------------------------
            Disk:                  disk15
            Status:                Online
            Size (Total):          4000074170368 B (4.0 TB)
            Revertible:            No
            LV Name:               EliteProDual-2_HFS
            Volume Name:           EliteProDual-2_HFS
            Content Hint:          Apple_HFS
sh-3.2# zpool status -L ELITE
  pool: ELITE
 state: ONLINE
  scan: scrub repaired 0 in 10h10m with 0 errors on Sun Mar 11 03:31:41 2018
config:

   NAME        STATE     READ WRITE CKSUM
   ELITE       ONLINE       0     0     0
     disk14    ONLINE       0     0     0

errors: No known data errors
sh-3.2# diskutil unmount "/Volumes/EliteProDual-2_HFS/"
Volume EliteProDual-2_HFS on disk15 unmounted
sh-3.2# zpool attach                  ******** just to double check the argument order *************
missing pool name argument
usage:
   attach [-f] [-o property=value] <pool> <device> <new-device>
sh-3.2#
sh-3.2# zpool attach ELITE disk14 disk15
cannot attach disk15 to disk14: no such device in pool
sh-3.2#
 


So, the zpool status command gave me disk14 as the <device>. The diskutil command gave me disk15 as the <new-device>. I'm not sure how to interpret the error message. Is it possible that "zpool attach" is unable to make use of an encrypted unmounted HFS logical volume in the way that "zpool create" is able to?
Sharko
 
Posts: 47
Joined: Thu May 12, 2016 12:19 pm

Re: Trouble adding encrypted disk to create a mirror

Postby Sharko » Sat Jun 02, 2018 10:50 am

Interesting... I exported the existing ELITE pool, and shut down the backup enclosure. When I powered it on again, OS X told me a disk was unreadable and it offered to take me to Disk Utility to initialize it. I chose Ignore, and then ran the terminal command "diskutil cs list" and got this for the new disk:

Code: Select all
+-- Logical Volume Group 600666BA-2B23-456F-803F-8CF1D006347E
    =========================================================
    Name:         EliteProDual-2_HFS
    Status:       Online
    Size:         4000443056128 B (4.0 TB)
    Free Space:   16560128 B (16.6 MB)
    |
    +-< Physical Volume E79F2AB9-62E0-466A-B323-AC80C7F08396
    |   ----------------------------------------------------
    |   Index:    0
    |   Disk:     disk12s2
    |   Status:   Online
    |   Size:     4000443056128 B (4.0 TB)
    |
    +-> Logical Volume Family CB1951D4-F3CE-4DBF-82A5-D472D2239A16
        ----------------------------------------------------------
        Encryption Type:         AES-XTS
        Encryption Status:       Unlocked
        Conversion Status:       Complete
        High Level Queries:      Fully Secure
        |                        Passphrase Required
        |                        Accepts New Users
        |                        Has Visible Users
        |                        Has Volume Key
        |
        +-> Logical Volume B3A51B3A-FB94-4DF0-826B-9843D0F244BC
            ---------------------------------------------------
            Disk:                  disk15
            Status:                Online
            Size (Total):          4000074170368 B (4.0 TB)
            Revertible:            No
            LV Name:               EliteProDual-2_HFS
            Content Hint:          Apple_HFS


So it says it is online, but it has no Volume name any longer and it doesn't show up on the desktop. It appears that the zpool attach command did something to it, but failed to take it over completely. Trying to mount the logical volume in Disk Utility fails.
Sharko
 
Posts: 47
Joined: Thu May 12, 2016 12:19 pm


Return to Absolute Beginners Section

Who is online

Users browsing this forum: No registered users and 0 guests

cron