by Jimserac » Tue Aug 30, 2016 3:10 pm
Thanks Brendan, I will be following that with interest.
Lundman, you are CORRECT, that was exactly the problem and I have it working now.
Am quite pleased with the performance. An outline of how I did do it follows.
Rather than create the zpool using the physical partitions (forexample disk1s2 and disk1s2,
the correct operands in the zpool create after the word mirror seems to have been the VIRTUAL encrypted
devices as shown from "diskutil list", which in this case was /dev/disk3 and /dev/disk4
Let's start at the beginning and reiterate the steps taken ...
/dev/disk0 is of course my system disk which I do not touch.
(Of course I have it backed up with Clonezilla, just in case).
Plug in and Encrypt the two USB external drives using disk utility in the usual manner, selecting OSX extended journaled encrypted.
After that is done change ownership to ensure that they belong to you (username).
I do that by the command
sudo chown $(whoami):admin /Volumes/MyUSBDiskName1/ && sudo chown -R $(whoami):admin /Volumes/USBDiskName1
Repeat the command for the 2d Usb disk, using USBDiskName2, the Volume name of the 2d USB external disk.
Now that the two USB disks are encrypted, I reboot just to make sure that the Password entry works
After reboot and entering the password for the two USB disks, and the two icons for the USB disk Volumes appear, I do diskutil list
in order to double check the /dev/ number assignments.
In this case the USB Disk1 happened to be /dev/disk1 with an external virtual (unlocked, encrypted) drive /dev/disk3
Likewise, the 2d USB Disk, Disk2 was on /dev/disk2 with an external virtual (unlocked, encrypted) drive showing as /dev/disk4
These numbers may well be different on your system. The names of the disks will be under the physical reference.
This is important because when we enter the zpool create, we will use disk3 and disk4, the virtual, unlocked, encrypted /dev/disk#
Now we unmount both USB drives
diskutil unmount /Volumes/USBDIskName1
diskutil unmount /Volumes/USBDiskName2
Of course both icons for the USB disks disappear once these commands are issued.
NOW we are ready for the Zpool create command to create these two as zpool mirrored
sudo zpool create -f -o ashift=12 -O casesensitivity=insensitive -O normalization=formD MyZpoolName mirror /dev/disk3 /dev/disk4
it will of course ask for your administrator password, and then...
It takes a moment and then the Zpool icon with the name "MyZpoolName" appears on the desktop.
I make myself owner of it with the following:
sudo chown $(whoami):admin /Volumes/MyZpoolName/ && sudo chown -R $(whoami):admin /Volumes/MyZpoolName
Now I copy files into the "MyZpoolName" icon, using drag and drop, rsync...whatever.
When done copying in, I do a safe shutdown of the Zpool by:
sudo zpool export MyZpoolName
Then I reboot to see how it worked.
Sure enough, on reboot, the "Enter password" for the two encrypted USB disk Volumes appear and I enter the
two passwords, one at a time and the Two USB Disk Volume Icons appear.
Then I import the Zpool with
sudo zpool import MyZpoolName
and the two USB Disk Icons disappear and a Zpool Icon with the name "MyZpoolName" appears on the desktop in their
place,just as it should and we're ready to go.
Well done everyone. This is very powerful and now I can move on to higher RAIDS at some point.
Thanks !