Discussion:
EON // Saving Configurations
Travis T
2010-07-14 04:45:15 UTC
Permalink
I'm new to Solaris as well as the forums, but I've been looking for a home NAS OS for some time now and I think I've found it. Being a long time M$ user, I'm now forcing myself to learn the *nix OSs, and this is going to be my bread and butter.

I have just recently discovered how to properly run updimg.sh for changes to be saved. Unfortunately, this doesn't seem to save all configurations (ie zpool, zfs). I read that I need to uncomment the 'zpool import -a' in the /mnt/eon0/.exec file, but found that it is already uncommented. I believe I have found the problem, but I'm unsure of how to correct it.

eon:34:/etc#zpool import
pool: tank
id: 12832500389463231813
state: ONLINE
status: The pool was last accessed by another system.
action: The pool can be imported using its name or numeric identifier and
the '-f' flag.
see: http://www.sun.com/msg/ZFS-8000-EY
config:

tank ONLINE
raidz1-0 ONLINE
c0t0d0p0 ONLINE
c0t1d0p0 ONLINE
c0t2d0p0 ONLINE
c0t3d0p0 ONLINE
eon:35:/etc#zpool import -a
cannot import 'tank': pool may be in use from other system, it was last accessed by eon (hostid: 0x4fd355) on Tue Jul 13 12:52:24 2010
use '-f' to import anyway

Importing with the 'force' option works fine, but what effects does this have on the system? I believe I could change the .exec file to include the 'f' switch, but seems that would just be a bandage for another problem. Suggestions?

Also, aside from the updimg.sh and correcting the zpool import function in the exec file, what other changes would need to be saved seperately?

Thanks

Travis
--
This message posted from opensolaris.org
Andre Lue
2010-07-14 12:46:58 UTC
Permalink
Hi Travist,

Everything you observed and stated is correct. You are just missing a step.

After installing EON to usb and booting you have to run setup.sh this sets network configs but most importantly sets hostid which if not set causes what you are see with zpool import.

After running setup.sh you would run updimg.sh

Make sure the zpool name is set in .exec and do not add the -f switch to the file
Let me know if this doesn't help.
--
This message posted from opensolaris.org
Travis T
2010-07-15 00:24:17 UTC
Permalink
Thanks dre... I'm glad I'm on the right track.

Although I didn't say so, I did run setup.sh, which asked for hostname, IP addresses (which I currently have set to DHCP), and that's it. I'll try re-running it (since I've rebooted so many times since the original install, I may have forgotten the last time to run setup).

How can I find out exactly what configurations are saved by running updimg.sh? What changes require re-running this?
--
This message posted from opensolaris.org
Andre Lue
2010-07-15 01:23:49 UTC
Permalink
Did you build the zpool before or after running setup.sh?

If after, you would have to run zpool import -f once the match the zpool with the hostid.

after booting run hostid it will print in hex

zdb will give you the hostid of the zpool but I think in decimal.
--
This message posted from opensolaris.org
Travis T
2010-07-15 01:40:40 UTC
Permalink
That seems to have worked. I re-ran setup, updimg.sh and rebooted and the zpools are still populated. I also verified the hostid and you are correct - the hostid command shows in hex, and the zdb shows it in decimal. A quick conversion shows they are the same.

On to my next problem - AD authentication. I had this working at one time, but currently it is not working. I can see the shares in MS explorer, but the only way I can connect is by using the root account. I've followed the AD Authentication steps on the EON site. On my first try, I saw many debugging messages on the local terminal when trying to access the shares, but via ssh I don't see these. Where can I find logs to review what's happening?

Thanks for your help dre - I'm slowly picking this up!
--
This message posted from opensolaris.org
Continue reading on narkive:
Loading...