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!

ISCSI initiator starts too late (after zfs) on reboot

iSCSI over TCP/IP.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
mgiammarco
NewUser
NewUser
Posts: 10
Joined: 22 Jul 2012 23:12
Status: Offline

ISCSI initiator starts too late (after zfs) on reboot

Post by mgiammarco »

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

User avatar
ChriZathens
Forum Moderator
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

Post by ChriZathens »

I believe that a workaround would be to add the command zpool import-a as a postinit script?
My Nas
  1. Case: Fractal Design Define R2
  2. M/B: Supermicro x9scl-f
  3. CPU: Intel Celeron G1620
  4. RAM: 16GB DDR3 ECC (2 x Kingston KVR1333D3E9S/8G)
  5. PSU: Chieftec 850w 80+ modular
  6. Storage: 8x2TB HDDs in a RaidZ2 array ~ 10.1 TB usable disk space
  7. O/S: XigmaNAS 11.2.0.4.6625 -amd64 embedded
  8. 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
NewUser
Posts: 2
Joined: 05 Aug 2013 09:51
Status: Offline

Re: ISCSI initiator starts too late (after zfs) on reboot

Post by amg »

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.

User avatar
alexey123
Moderator
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

Post by alexey123 »

You can find answer if you learn files into /etc/rc.d folder
Such /etc/rc.d/zfs
# PROVIDE: zfs
# REQUIRE: mountcritlocal
and /etc/rc.d/iscsi_initiator
# PROVIDE: iscsi_initiator
# REQUIRE: NETWORKING netwait
# BEFORE: mountcritremote
I attach start up sequence for NAS4Free, zfs need start before iscsi, this is server, not client.
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

amg
NewUser
NewUser
Posts: 2
Joined: 05 Aug 2013 09:51
Status: Offline

Re: ISCSI initiator starts too late (after zfs) on reboot

Post by amg »

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 ...

User avatar
raulfg3
Site Admin
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

Post by raulfg3 »

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

Post Reply

Return to “iSCSI (Internet Small Computer Systems Interface)”