Doesn't work :( img file is not considered by zpool import -d :(
I already worked with lofiadm files to have a zpool on a file for testing, but 
also lofiadm -a file.img and zpool import -d /dev/lofi doesn't work...
I think I'll have to run a box against the vdi files and zfs transfer the pools 
on the host...
Da:
Peter Tribble
A:
discuss
Data:
28 settembre 2015 16.54.20 CEST
Oggetto:
Re: [discuss] mount vdi zpool
On Mon, Sep 28, 2015 at 3:44 PM, Gabriele Bulfon
[email protected]
wrote:
so, after raw conversion, you mean I can just use the file as a disk device in 
zpool import -d?
how can I specify the file as the device to use? never done this...
You should be able to just go
zpool import -d /directory
and it will look at all the files in that directory. If it actually finds 
anything then it will tell
you what it found, and you can add the pool name to the command to do the import
(you may have to give a new pool name as well to import it under a different 
name if
the name conflicts with an existing pool).
If this is an rpool, then it will have an SMI label and you need to get inside 
the partitions.
I'm not sure what to do in that case if it doesn't recognise it.
Da:
Peter Tribble
[email protected]
A:
discuss
[email protected]
Data:
28 settembre 2015 16.37.38 CEST
Oggetto:
Re: [discuss] mount vdi zpool
On Mon, Sep 28, 2015 at 3:05 PM, Gabriele Bulfon
[email protected]
wrote:
Hi,
is there any way to mount zpools inside a virtual box vdi disk image?
Any lofiadm trick to read the vdi and import from the lofi device?
Gabriele
illumos-discuss
|
Archives
|
Modify
Your Subscription
Not directly. But if you convert the vdi file to a raw disk image
VBoxManage internalcommands converttoraw file.vdi output.img
then you should be able to. ZFS might be able to read the file
directly (maybe if it's EFI labelled), or you might have to go via
lofi again if there are partitions. But converting it to a raw file is
going to be the first step.
--
-Peter Tribble
http://www.petertribble.co.uk/
-
http://ptribble.blogspot.com/
--
-Peter Tribble
http://www.petertribble.co.uk/
-
http://ptribble.blogspot.com/
illumos-discuss
|
Archives
|
Modify
Your Subscription



-------------------------------------------
illumos-discuss
Archives: https://www.listbox.com/member/archive/182180/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4
Powered by Listbox: http://www.listbox.com

Reply via email to