Mirror jail storage.

Status
Not open for further replies.

Plato

Contributor
Joined
Mar 24, 2016
Messages
101
Hi,

I'm using 256 GB Sandisk SSD for the jail, But now I want to create a mirror for it.

As you may know this is very easy with boot volume. Just add another usb and use attach command and voila, now your boot volume is mirrored instead of a stripe.

Now is there any easy way to do this for the jail disk also? I also attached another 256 GB SSD, and trying to mirror on to it.

I searched through forum, but as far as I can see there is no easy way to do this.

Here is the configuration:
Code:
  pool: jail
 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: scrub repaired 0 in 0h9m with 0 errors on Sun Jul 30 00:09:23 2017
config:

		NAME										  STATE	 READ WRITE CKSUM
		jail										  ONLINE	   0	 0	 0
		  gptid/46c58489-f1f0-11e5-8051-d05099c089a6  ONLINE	   0	 0	 0



Just ignore feature line. My pool is created on 9.x and I'm using 11 right now.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
There is currently no way to do this through the GUI; it would need to be done through the CLI using the zpool attach command. To do it correctly, the SSD would need to be partitioned to add a 2 GB swap partition at the beginning, and the remainder would need to be added by gptid. It's been discussed here before; a search should find instructions.
 
Status
Not open for further replies.
Top