Hello,
I installed nas4free (very nice...) and connected 5 hdd via iscsi. Then I built a zfs raid on top of them.
All is good but at reboot unfortunately zfs is not mounted/imported.
I can do a zpool import -a on command line.
I suppose that the iscsi initiator starts after zfs import at boot, is it possible?
I need a workaround btw!
Thanks,
Mario
This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
ISCSI initiator starts too late (after zfs) on reboot
-
mgiammarco
- NewUser

- Posts: 10
- Joined: 22 Jul 2012 23:12
- Status: Offline
- ChriZathens
- Forum Moderator

- Posts: 758
- Joined: 23 Jun 2012 09:14
- Location: Athens, Greece
- Contact:
- Status: Offline
Re: ISCSI initiator starts too late (after zfs) on reboot
I believe that a workaround would be to add the command zpool import-a as a postinit script?
My Nas
Backup Nas: U-NAS NSC-400, Gigabyte MB10-DS4 (4x4TB Seagate Exos disks in RaidZ configuration - 32GB RAM)
- Case: Fractal Design Define R2
- M/B: Supermicro x9scl-f
- CPU: Intel Celeron G1620
- RAM: 16GB DDR3 ECC (2 x Kingston KVR1333D3E9S/8G)
- PSU: Chieftec 850w 80+ modular
- Storage: 8x2TB HDDs in a RaidZ2 array ~ 10.1 TB usable disk space
- O/S: XigmaNAS 11.2.0.4.6625 -amd64 embedded
- Extra H/W: Dell Perc H310 SAS controller, crosflashed to LSI 9211-8i IT mode, 8GB Innodisk D150SV SATADOM for O/S
Backup Nas: U-NAS NSC-400, Gigabyte MB10-DS4 (4x4TB Seagate Exos disks in RaidZ configuration - 32GB RAM)
-
amg
- NewUser

- Posts: 2
- Joined: 05 Aug 2013 09:51
- Status: Offline
Re: ISCSI initiator starts too late (after zfs) on reboot
Hi,
I have a similar problem: I have attached 4 additinal disks as iscsi targets and organize sofware RAID5 of 8 disks.
But after restart iscsi_initiator service not starting and RAID not mounts.
I starting iscsi_initiator by command (/etc/rc.d/iscsi_initiator start) from console or WEBGUI:Advaced->command without problem. After that GEOM_RAID5 automatically found missing iscsi targets and mount the RAID.
But I don't find the way to start iscsi_initiator automatically.
Line "iscsi_initiator_enable="YES"" in rc.conf is present.
PostInit command have no result: "/etc/rc.d/iscsi_initiator start" as single command and as script - same result - system even not trying to start iscsi_initiator (not records in LOGs).
Tested on " 9.1.0.1 - Sandstorm (revision 775)" and "9.1.0.1 - Sandstorm (revision 804)" (x64) - same situation.
Please, help me start iscsi_initiator automatically.
I have a similar problem: I have attached 4 additinal disks as iscsi targets and organize sofware RAID5 of 8 disks.
But after restart iscsi_initiator service not starting and RAID not mounts.
I starting iscsi_initiator by command (/etc/rc.d/iscsi_initiator start) from console or WEBGUI:Advaced->command without problem. After that GEOM_RAID5 automatically found missing iscsi targets and mount the RAID.
But I don't find the way to start iscsi_initiator automatically.
Line "iscsi_initiator_enable="YES"" in rc.conf is present.
PostInit command have no result: "/etc/rc.d/iscsi_initiator start" as single command and as script - same result - system even not trying to start iscsi_initiator (not records in LOGs).
Tested on " 9.1.0.1 - Sandstorm (revision 775)" and "9.1.0.1 - Sandstorm (revision 804)" (x64) - same situation.
Please, help me start iscsi_initiator automatically.
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: ISCSI initiator starts too late (after zfs) on reboot
You can find answer if you learn files into /etc/rc.d folder
Such /etc/rc.d/zfs
Start sequence - from top to bottom on my diagramma
Such /etc/rc.d/zfs
and /etc/rc.d/iscsi_initiator# PROVIDE: zfs
# REQUIRE: mountcritlocal
I attach start up sequence for NAS4Free, zfs need start before iscsi, this is server, not client.# PROVIDE: iscsi_initiator
# REQUIRE: NETWORKING netwait
# BEFORE: mountcritremote
Start sequence - from top to bottom on my diagramma
You do not have the required permissions to view the files attached to this post.
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
-
amg
- NewUser

- Posts: 2
- Joined: 05 Aug 2013 09:51
- Status: Offline
Re: ISCSI initiator starts too late (after zfs) on reboot
Thanks,
BUT: I tryed to modify this files with same idea, AND - after restart files are same like befor restart, all my editions gone...
PS: embeded installation on USB flash.
PS2: in LOGs no records system to try to start iscsi_initiator at all... in all my experiments...
PS3: ther is NO file associated with GEOM_RAID5 in /etc/rc.d ...
BUT: I tryed to modify this files with same idea, AND - after restart files are same like befor restart, all my editions gone...
PS: embeded installation on USB flash.
PS2: in LOGs no records system to try to start iscsi_initiator at all... in all my experiments...
PS3: ther is NO file associated with GEOM_RAID5 in /etc/rc.d ...
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: ISCSI initiator starts too late (after zfs) on reboot
Try full install.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510