Does anyone here know whether its possible to create a zpool on top of lofiadm 
/ mkfile inside a smartos and/or LX zone ?

Basically I am looking at something similar to this: 
https://getpocket.com/a/read/141369096 . I get the first steps working but a 
normal zone root user does not have permission to create a new pool (even if it 
is just a local one). Can I give permission ? If yes what security risks would 
this expose ? 
mkdir szpools
cd szpools
 mkfile 1g szpool_1 szpool_2 

lofiadm -c aes-256-cbc -a szpools/szpool_1
  Enter passphrase: 
  Re-enter passphrase: 
  /dev/lofi/1

lofiadm -c aes-256-cbc -a szpools/szpool_2
  Enter passphrase: 
  Re-enter passphrase: 
  /dev/lofi/2

zpool create szpool raid-z2 /dev/lofi/1 /dev/lofi/2







-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to