Pool Import on another server should work when you
- enable the inititiator service on the new machine
- setup target discovery (manual or sendtarget)
- reload targets: devfsadm -i iscsi
A LUN from the target should now be available like a local disks.
A zpool import should allow to import the pool from the disk
I am working with my napp-it 16.09 dev on an an extension of your idea
with pool-mirroring where I
- use two storagserver with an identical ZFS pool on each
- a create a zvol and target/LUN from the whole datapoolor a large
fraction of it on each
On one storagehead (Master), i
- use an initiator to import the two LUNsfrom both server
- build a "user" netraid pool with a mirror-vdev (in fact this is a
netraid pool mirror over the net)
- share NFS and SMB over a virtual IP
A failover means to switch the LUNs to the second machine where the pool
is imported
and shared with a virtual ip switch over
If the Master node fails, the failover is initiuated manually or
automatically.
The netraid pool is then in a degraded state (with the security level of
the underlying pool)
While the basic idea is quite simple and works, the problem is to
automate this,
and some weird timeout problems with the initiators and the disk
detection as I switch the target
ip as a virtual IP as well to avoid the possibility of concurrent LUN
access in case of a problem.
Gea
On 17.08.2016 18:39, 龙白滔 wrote:
Hi,
We were creating a 2-way mirroring zpool using a local HDD and a
remote iSCSI target. The iSCSI target and the initiator were connected
through a 10Gb network. The zpool works fine.
When we shut down the iSCSI initiator machine, we lose the HDD disk.
We tried to recover the zpool on another machine (e.g., the iSCSI
target server or another machine that can connect to the iSCSI
target). So far we haven't succeed yet, but I read from some old posts
before 2010 saying that it works.
Let's move further about this test. If we create a RAID1+0 zpool,
which consists of 4 vdevs, each of which is a mirror between a local
HDD and a remote iSCSI target. If we lose the local machine, can we
recover the whole zpool from another machine that can connect to all
needed iSCSI targets? and how?
Your comments will be highly appreciated.
Baitao from China
*smartos-discuss* | Archives
<https://www.listbox.com/member/archive/184463/=now>
<https://www.listbox.com/member/archive/rss/184463/23140977-a7885f8f>
| Modify
<https://www.listbox.com/member/?&>
Your Subscription [Powered by Listbox] <http://www.listbox.com>
Tel 07171 602 624
Fax 07171 69259
[email protected]
http://rz.hfg-gmuend.de
-------------------------------------------
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