Disks/pool gone after reboot/shutdown, can get it back.. but.. help

mirkywoody

Cadet
Joined
Nov 19, 2019
Messages
5
<div class="bbWrapper">Hello there awesome people.<br /> I spent 20 hours now trying to troubleshoot something, and i think it's time to ask for help. This is part of my own experiment/learning at an school.<br /> <br /> <b>Hardware</b><br /> Server: HP DL360G7 - dual x5660 - 96gb ram ...<br /> Controller: LSI SAS 3801E (chip: c1068e) ... Flashed to IT mode.<br /> <br /> Diskshell: 16bay disk shell with... 2x controller/expander: Promise J630S<br /> Disks: 16x Seagate ST33000650SS A003 ... 3TB disks.<br /> <br /> <b>FreeNAS</b><br /> version: 11.2-U6<br /> installed on hardware raid1, onboard controller. (also had on usb stick before).<br /> <br /> <b>Problem:</b> disks and created pool disapears after reboot or shutdown.. and will not appear again before disconnecting and reconnecting sas cable to disk shell. Everything actually works, can make a share, transfer, etc. But gone after reboot/shutdown, and i can get the pool back. <br /> Ofc i don't want to reconnect cable at everytime on start.<br /> <br /> <br /> <b>Further story...</b><br /> On fresh install of FreeNAS, with the diskshell connected, the disks do not appear!. However, if i unplug the cable to the diskshell, and connnect it again, the disks will show. (important thing i found out about this, is to wait sufficent time before plugging back in, or it wont work!! disks wont come up, it needs the time).<br /> I then can make my pool, Z3 on all 16 disks, and make my shares, etc. everthing works. ...<br /> <br /> But then after reboot, the disks are not seen in &quot;disks&quot; or with command &quot;mptutil show drives&quot; .. also nothing on &quot;sesutil map&quot;, or &quot;camcontrol devlist&quot;.. but the controller itself can still be seen with forexample &quot;mptutil show adapter&quot;.<br /> I then can do the re-connect trick. And everything can be gotten back into order.<br /> <br /> I also tried with the FreeNAS nightly dev, just to see, but it was same.<br /> <br /> I think i read something about my controller maybe not supporting more than 2tb disks?, but i can see them as.. 2.7gb something(must be after some formatting), everything working, when it works.<br /> ...<br /> <br /> So whats the problem here guys?.<br /> To me it.... feels like..... some timeout issue? or something not re-initializing?... that is the only thing i can say in generel, not super experienced here.</div>
 

Heracles

Wizard
Joined
Feb 2, 2018
Messages
1,401
<div class="bbWrapper">Hey mirki,<br /> <br /> According to your post, your disk shell boots up too slowly. It is not ready to present itself to FreeNAS in time when FreeNAS needs it and is ready to read and access your drives. I do not know if FreeNAS can delays some parts of its own boot process to wait for your too slow disk shell... Or maybe can you boot your disk shell first and wait for a long enough before booting up FreeNAS ?<br /> <br /> If indeed you are in a race condition, know that FreeNAS is wining that race very clearly. So you need to slow it down, to speed up the disk shell, to delay FreeNAS or anything like that for FreeNAS not asking for the disks before the shell is ready to present them.<br /> <br /> Good luck with that one,</div>
 

mirkywoody

Cadet
Joined
Nov 19, 2019
Messages
5
<div class="bbWrapper"><blockquote data-attributes="member: 82877" data-quote="Heracles" data-source="post: 556196" class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote js-expandWatch"> <div class="bbCodeBlock-title"> <a href="/community/goto/post?id=556196" class="bbCodeBlock-sourceJump" rel="nofollow" data-xf-click="attribution" data-content-selector="#post-556196">Heracles said:</a> </div> <div class="bbCodeBlock-content"> <div class="bbCodeBlock-expandContent js-expandContent "> Hey mirki,<br /> <br /> According to your post, your disk shell boots up too slowly. It is not ready to present itself to FreeNAS in time when FreeNAS needs it and is ready to read and access your drives. I do not know if FreeNAS can delays some parts of its own boot process to wait for your too slow disk shell... Or maybe can you boot your disk shell first and wait for a long enough before booting up FreeNAS ?<br /> <br /> If indeed you are in a race condition, know that FreeNAS is wining that race very clearly. So you need to slow it down, to speed up the disk shell, to delay FreeNAS or anything like that for FreeNAS not asking for the disks before the shell is ready to present them.<br /> <br /> Good luck with that one, </div> <div class="bbCodeBlock-expandLink js-expandLink"><a role="button" tabindex="0">Click to expand...</a></div> </div> </blockquote><br /> thanks :).<br /> but but...... hmm... the disk shell is always powered on. has been powered on for loooong time before FreeNAS starts in all my testing.<br /> But i am not sure how it all works, does the FreeNAS/controller send a signal for it power on in another sense? initialize with it. is that what you mean?.<br /> <br /> I could look into delaying boot of freenas just to try it, must be someone who done that before.<br /> ALSO, in the SAS controller utility (the one accessed at boot), there are various timeout and delay options.</div>
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
<div class="bbWrapper"><blockquote data-attributes="member: 98830" data-quote="mirkywoody" data-source="post: 556194" class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote js-expandWatch"> <div class="bbCodeBlock-title"> <a href="/community/goto/post?id=556194" class="bbCodeBlock-sourceJump" rel="nofollow" data-xf-click="attribution" data-content-selector="#post-556194">mirkywoody said:</a> </div> <div class="bbCodeBlock-content"> <div class="bbCodeBlock-expandContent js-expandContent "> installed on hardware raid1, onboard controller. </div> <div class="bbCodeBlock-expandLink js-expandLink"><a role="button" tabindex="0">Click to expand...</a></div> </div> </blockquote>This is not a good thing. No hardware RAID for FreeNAS if you want support. (using the onboard controller is fine, just not in Hardware RAID mode)<br /> <br /> It looks like your disk shell is something a little special and perhaps not suited to FreeNAS.<br /> <br /> Does that shell behave normally with any other OS?<br /> <br /> You may want to do some tinkering with the delay options in the SAS controller utility as it will be the part most likely to deliver success.</div>
 

Fredda

Guru
Joined
Jul 9, 2019
Messages
608
<div class="bbWrapper">What happens if you enter the BIOS of the HBA card upon reboot? Usually RAID or HBA cards have kind of a &quot;rescan drives&quot; function.<br /> Is there a way you can make them reappear via the HBA-BIOS?</div>
 

mirkywoody

Cadet
Joined
Nov 19, 2019
Messages
5
<div class="bbWrapper"><blockquote data-attributes="member: 55604" data-quote="sretalla" data-source="post: 556209" class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote js-expandWatch"> <div class="bbCodeBlock-title"> <a href="/community/goto/post?id=556209" class="bbCodeBlock-sourceJump" rel="nofollow" data-xf-click="attribution" data-content-selector="#post-556209">sretalla said:</a> </div> <div class="bbCodeBlock-content"> <div class="bbCodeBlock-expandContent js-expandContent "> This is not a good thing. No hardware RAID for FreeNAS if you want support. (using the onboard controller is fine, just not in Hardware RAID mode)<br /> <br /> It looks like your disk shell is something a little special and perhaps not suited to FreeNAS.<br /> <br /> Does that shell behave normally with any other OS?<br /> <br /> You may want to do some tinkering with the delay options in the SAS controller utility as it will be the part most likely to deliver success. </div> <div class="bbCodeBlock-expandLink js-expandLink"><a role="button" tabindex="0">Click to expand...</a></div> </div> </blockquote><br /> I did know that it's no-go with freenas + hardware raid anywhere :D, but did anyway, and it worked.. but yes, I changed it to non-hardware raid before i left for home. There also was a weird error message on boot drive at times, oddly after it adds the disk shell drives. I don't see it could be causing trouble tho, everything seemed to work, etc.<br /> <br /> maybe it is a special snow flake disk shell. It is a Symantec Norton branded one.<br /> Will do other OS once I exhausted some more ideas.<br /> I did try to mess around with the settings in controller utility, seemingly not changing anything so far.. will post my options there later.<br /> <br /> <blockquote data-attributes="member: 96669" data-quote="Fredda" data-source="post: 556218" class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote js-expandWatch"> <div class="bbCodeBlock-title"> <a href="/community/goto/post?id=556218" class="bbCodeBlock-sourceJump" rel="nofollow" data-xf-click="attribution" data-content-selector="#post-556218">Fredda said:</a> </div> <div class="bbCodeBlock-content"> <div class="bbCodeBlock-expandContent js-expandContent "> What happens if you enter the BIOS of the HBA card upon reboot? Usually RAID or HBA cards have kind of a &quot;rescan drives&quot; function.<br /> Is there a way you can make them reappear via the HBA-BIOS? </div> <div class="bbCodeBlock-expandLink js-expandLink"><a role="button" tabindex="0">Click to expand...</a></div> </div> </blockquote><br /> The drives have always appeared in the HBA-BIOS/utility, no problem there it seems. I look there before FreeNAS starts, ofc, and they are there, but not in FreeNAS until i re-plug the cable to disk shell.</div>
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
<div class="bbWrapper"><blockquote data-attributes="member: 98830" data-quote="mirkywoody" data-source="post: 556227" class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote js-expandWatch"> <div class="bbCodeBlock-title"> <a href="/community/goto/post?id=556227" class="bbCodeBlock-sourceJump" rel="nofollow" data-xf-click="attribution" data-content-selector="#post-556227">mirkywoody said:</a> </div> <div class="bbCodeBlock-content"> <div class="bbCodeBlock-expandContent js-expandContent "> I did know that it's no-go with freenas + hardware raid anywhere :D, but did anyway, and it worked.. but yes, I changed it to non-hardware raid before i left for home. There also was a weird error message on boot drive at times, oddly after it adds the disk shell drives. I don't see it could be causing trouble tho, everything seemed to work, etc. </div> <div class="bbCodeBlock-expandLink js-expandLink"><a role="button" tabindex="0">Click to expand...</a></div> </div> </blockquote>OK, well, you were lucky not to have problems and I'm glad to see you're out of harm's way now.<br /> <br /> I wonder if we could be looking at something more like firmware on the HBA or in the backplane of the shell... perhaps see if you can find something in that direction to work with.</div>
 

mirkywoody

Cadet
Joined
Nov 19, 2019
Messages
5
<div class="bbWrapper">Here are some logs finally, taken from /var/log/messages .. maybe there is better place to be looking?.<br /> I put on pastebin, since i reached maximum for post.<br /> <br /> <br /> <b>Freenas started, no disks found.</b><br /> <a href="https://pastebin.com/7snMdC9Y" target="_blank" class="link link--external" rel="nofollow ugc noopener">https://pastebin.com/7snMdC9Y</a><br /> <br /> <b>Unplugged/plugged cable back to diskshell, disks were found.</b><br /> <a href="https://pastebin.com/dcV62y9x" target="_blank" class="link link--external" rel="nofollow ugc noopener">https://pastebin.com/dcV62y9x</a><br /> <br /> <b>Pool made, all 16 in z3.</b><br /> <a href="https://pastebin.com/A0quDugr" target="_blank" class="link link--external" rel="nofollow ugc noopener">https://pastebin.com/A0quDugr</a><br /> <br /> <b>System rebooted, no disks found again.</b><br /> <a href="https://pastebin.com/K8iNPzDr" target="_blank" class="link link--external" rel="nofollow ugc noopener">https://pastebin.com/K8iNPzDr</a><br /> <br /> <b>Re-connected cable to disk shell again. Pool exported/disconnected and imported. (should it had brought the pool back up automatically?)</b><br /> <a href="https://pastebin.com/BGk9QKsr" target="_blank" class="link link--external" rel="nofollow ugc noopener">https://pastebin.com/BGk9QKsr</a><br /> <br /> <br /> <b><u>LSI Config utility - settings possibilities..</u></b><br /> <br /> Boot support - Enabled BIOS &amp; OS // Enabled BIOS // Enabled OS // None<br /> and....<br /> <br /> <script class="js-extraPhrases" type="application/json"> { "lightbox_close": "Close", "lightbox_next": "Next", "lightbox_previous": "Previous", "lightbox_error": "The requested content cannot be loaded. Please try again later.", "lightbox_start_slideshow": "Start slideshow", "lightbox_stop_slideshow": "Stop slideshow", "lightbox_full_screen": "Full screen", "lightbox_thumbnails": "Thumbnails", "lightbox_download": "Download", "lightbox_share": "Share", "lightbox_zoom": "Zoom", "lightbox_new_window": "New window", "lightbox_toggle_sidebar": "Toggle sidebar" } </script> <div class="bbImageWrapper js-lbImage" title="2019-11-22 11_08_44-.jpg" data-src="https://www.truenas.com/community/attachments/2019-11-22-11_08_44-jpg.34124/" data-lb-sidebar-href="" data-lb-caption-extra-html="" data-single-image="1"> <img src="https://www.truenas.com/community/attachments/2019-11-22-11_08_44-jpg.34124/" data-url="" class="bbImage" data-zoom-target="1" style="" alt="2019-11-22 11_08_44-.jpg" title="2019-11-22 11_08_44-.jpg" width="1920" height="956" loading="lazy" /> </div> <br /> <br /> <div class="bbImageWrapper js-lbImage" title="2019-11-22 11_09_00-.jpg" data-src="https://www.truenas.com/community/attachments/2019-11-22-11_09_00-jpg.34125/" data-lb-sidebar-href="" data-lb-caption-extra-html="" data-single-image="1"> <img src="https://www.truenas.com/community/attachments/2019-11-22-11_09_00-jpg.34125/" data-url="" class="bbImage" data-zoom-target="1" style="" alt="2019-11-22 11_09_00-.jpg" title="2019-11-22 11_09_00-.jpg" width="1920" height="958" loading="lazy" /> </div> <br /> <br /> <div class="bbImageWrapper js-lbImage" title="2019-11-22 11_09_45-.jpg" data-src="https://www.truenas.com/community/attachments/2019-11-22-11_09_45-jpg.34126/" data-lb-sidebar-href="" data-lb-caption-extra-html="" data-single-image="1"> <img src="https://www.truenas.com/community/attachments/2019-11-22-11_09_45-jpg.34126/" data-url="" class="bbImage" data-zoom-target="1" style="" alt="2019-11-22 11_09_45-.jpg" title="2019-11-22 11_09_45-.jpg" width="1920" height="953" loading="lazy" /> </div> <br /> <br /> <div class="bbImageWrapper js-lbImage" title="2019-11-22 11_07_17-.jpg" data-src="https://www.truenas.com/community/attachments/2019-11-22-11_07_17-jpg.34127/" data-lb-sidebar-href="" data-lb-caption-extra-html="" data-single-image="1"> <img src="https://www.truenas.com/community/attachments/2019-11-22-11_07_17-jpg.34127/" data-url="" class="bbImage" data-zoom-target="1" style="" alt="2019-11-22 11_07_17-.jpg" title="2019-11-22 11_07_17-.jpg" width="1892" height="929" loading="lazy" /> </div> <br /> <br /> Disks are always found here.<br /> <br /> <div class="bbImageWrapper js-lbImage" title="2019-11-22 11_08_15-.jpg" data-src="https://www.truenas.com/community/attachments/2019-11-22-11_08_15-jpg.34128/" data-lb-sidebar-href="" data-lb-caption-extra-html="" data-single-image="1"> <img src="https://www.truenas.com/community/attachments/2019-11-22-11_08_15-jpg.34128/" data-url="" class="bbImage" data-zoom-target="1" style="" alt="2019-11-22 11_08_15-.jpg" title="2019-11-22 11_08_15-.jpg" width="1920" height="956" loading="lazy" /> </div></div>
 

subhuman

Contributor
Joined
Nov 21, 2019
Messages
121
<div class="bbWrapper">First, don't change a thing based on what I'm gonna say. I have zero experience with this HBA, which means I could be saying something totally wrong that could cost you everything. Maybe someone who is familiar with this can chime in however.<br /> Two things stick out. the first probably doesn't matter, but max int13 devices=24?<br /> The manual <a href="https://www.supermicro.com/manuals/other/LSI_HostRAID_2308.pdf" target="_blank" class="link link--external" rel="nofollow ugc noopener">https://www.supermicro.com/manuals/other/LSI_HostRAID_2308.pdf</a><br /> says that it does accept a value of 0. int13 means bootable, and you say you boot from drives connected to the motherboard, not from these disks. There's no need for any of them, let alone more than actually exist, to be bootable.<br /> But the spinup delays, those may be problematic. Looks like a non-logical combination. &quot;Every two seconds, spin up zero more drives.&quot;<br /> I haven't seen this with SAS, but I did years ago with SCSI. A drive set to delay spinup, if the controller wasn't set to issue that command wouldn't spin up until the first time you tried to access it- which of course took many seconds, which of course meant it timed-out. Sounds a lot like your current situation.<br /> <blockquote data-attributes="" data-quote="" data-source="" class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote js-expandWatch"> <div class="bbCodeBlock-content"> <div class="bbCodeBlock-expandContent js-expandContent "> This is part of my own experiment/learning <b>at an school.</b> </div> <div class="bbCodeBlock-expandLink js-expandLink"><a role="button" tabindex="0">Click to expand...</a></div> </div> </blockquote>Keep working on it! :)</div>
 

mirkywoody

Cadet
Joined
Nov 19, 2019
Messages
5
<div class="bbWrapper"><blockquote data-attributes="member: 98873" data-quote="subhuman" data-source="post: 557189" class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote js-expandWatch"> <div class="bbCodeBlock-title"> <a href="/community/goto/post?id=557189" class="bbCodeBlock-sourceJump" rel="nofollow" data-xf-click="attribution" data-content-selector="#post-557189">subhuman said:</a> </div> <div class="bbCodeBlock-content"> <div class="bbCodeBlock-expandContent js-expandContent "> First, don't change a thing based on what I'm gonna say. I have zero experience with this HBA, which means I could be saying something totally wrong that could cost you everything. Maybe someone who is familiar with this can chime in however.<br /> Two things stick out. the first probably doesn't matter, but max int13 devices=24?<br /> The manual <a href="https://www.supermicro.com/manuals/other/LSI_HostRAID_2308.pdf" target="_blank" class="link link--external" rel="nofollow ugc noopener">https://www.supermicro.com/manuals/other/LSI_HostRAID_2308.pdf</a><br /> says that it does accept a value of 0. int13 means bootable, and you say you boot from drives connected to the motherboard, not from these disks. There's no need for any of them, let alone more than actually exist, to be bootable.<br /> But the spinup delays, those may be problematic. Looks like a non-logical combination. &quot;Every two seconds, spin up zero more drives.&quot;<br /> I haven't seen this with SAS, but I did years ago with SCSI. A drive set to delay spinup, if the controller wasn't set to issue that command wouldn't spin up until the first time you tried to access it- which of course took many seconds, which of course meant it timed-out. Sounds a lot like your current situation.<br /> <br /> Keep working on it! :) </div> <div class="bbCodeBlock-expandLink js-expandLink"><a role="button" tabindex="0">Click to expand...</a></div> </div> </blockquote><br /> There is absolutely nothing to be lost here, in this setup :) no critical data or anything, so no worries. Ofcourse i don't want it to set on fire tho, and i do want it to work :).<br /> <br /> The settings in my screenshot is just from playing around, I had hoped to make all values default, but couldn't find, only part of it.<br /> I was thinking the spinup delay was about how... when you first plug in the disk shell, that it shouldn't create a big spike in power, but that wouldn't make sense, since it can also be powered without the controller.<br /> I will play around more with it today.</div>
 
Top