Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm making my first foray into ZFS with a spare iSCSI array. I have it all configured and working, but the filesystem is not being mounted on boot. Manually mounting (with zfs mount) works. I thought I had read that ZFS mounts things automatically and that I don't need to add a line to vfstab or anything. Is that right?
I don't see any errors in /var/adm/messages, where would ZFS log to?
I have a suspicion that iSCSI isn't up when ZFS starts, and that's why it's failing. If that's the case, how can I reorder startup / make ZFS depend on iscsi?
Code:
$ svcs -a | egrep "(zfs|iscsi)"
online 11:59:37 svc:/network/shares/group:zfs
online 11:59:42 svc:/network/iscsi/initiator:default
$ uname -a
SunOS a2 5.10 Generic_142900-03 sun4u sparc SUNW,Sun-Fire-V440
$ sudo zpool list
NAME SIZE USED AVAIL CAP HEALTH ALTROOT
tek2510array 680G 219K 680G 0% ONLINE -
Last edited by AlucardZero; 02-04-2010 at 12:51 PM.
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197
Rep:
What is the rest of your hardware setup? Is this direct connected or going through a switch? I'm not sure where to poke to see what your system is doing, but I have a similar setup that works, and the zpool and zfs come up at startup. I posted a rather long summary on the sunmanagers list of how I ended up setting it up. You might or might not find a clue by comparing it with your own notes -- http://www.sunmanagers.org/pipermail...er/008875.html
$ uptime
11:07am up 26 min(s), 1 user, load average: 0.01, 0.02, 0.05
$ sudo zpool list
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
Password:
NAME SIZE USED AVAIL CAP HEALTH ALTROOT
tek2510array 680G 179G 501G 26% ONLINE -
$ sudo zpool status
pool: tek2510array
state: ONLINE
scrub: none requested
config:
NAME STATE READ WRITE CKSUM
tek2510array ONLINE 0 0 0
raidz1 ONLINE 0 0 0
c3t600A0B80004934C0000001B64B6AB47Ed0 ONLINE 0 0 0
c3t600A0B80004934C0000001B84B6AB498d0 ONLINE 0 0 0
c3t600A0B80004934C0000001BA4B6AB51Cd0 ONLINE 0 0 0
c3t600A0B80004934C0000001BC4B6AB534d0 ONLINE 0 0 0
c3t600A0B80004934C0000001BE4B6AB548d0 ONLINE 0 0 0
errors: No known data errors
$ ls /tek2510array/
$ mount | grep tek2510
$
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
Okay, so the pool is automatically imported. What command do you use to mount its associated filesystem ? After that, what says "zfs get all tek2510array" ?
Side question: Why are you using sudo instead of OpenSolaris pfexec ?
What command do you use to mount its associated filesystem ? After that, what says "zfs get all tek2510array" ?
'zfs mount tek2510array' or 'zfs mount -a'.
Code:
$ sudo zfs get all tek2510array
Password:
NAME PROPERTY VALUE SOURCE
tek2510array type filesystem -
tek2510array creation Thu Feb 4 11:53 2010 -
tek2510array used 143G -
tek2510array available 391G -
tek2510array referenced 143G -
tek2510array compressratio 1.59x -
tek2510array mounted yes -
tek2510array quota none default
tek2510array reservation none default
tek2510array recordsize 128K default
tek2510array mountpoint /tek2510array default
tek2510array sharenfs off default
tek2510array checksum on default
tek2510array compression on local
tek2510array atime on default
tek2510array devices on default
tek2510array exec on default
tek2510array setuid on default
tek2510array readonly off default
tek2510array zoned off default
tek2510array snapdir hidden default
tek2510array aclmode groupmask default
tek2510array aclinherit restricted default
tek2510array canmount on default
tek2510array shareiscsi off default
tek2510array xattr on default
tek2510array copies 1 default
tek2510array version 4 -
tek2510array utf8only off -
tek2510array normalization none -
tek2510array casesensitivity sensitive -
tek2510array vscan off default
tek2510array nbmand off default
tek2510array sharesmb off default
tek2510array refquota none default
tek2510array refreservation none default
tek2510array primarycache all default
tek2510array secondarycache all default
tek2510array usedbysnapshots 0 -
tek2510array usedbydataset 143G -
tek2510array usedbychildren 4.85M -
tek2510array usedbyrefreservation 0 -
Quote:
Side question: Why are you using sudo instead of OpenSolaris pfexec ?
Because it's never come up before, I am used to typing sudo, and I manage systems of most flavors of Unix, all of which have sudo and only some of which have pfexec
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197
Rep:
x86 or SPARC? GigE?
I'm still not sure where to look. I'm going to be setting up and configuring some smf services at work today, and I will take a look at how the zfs and iscsi related services interact. I had a case once before where something didn't come up quite right every reboot. I changed the service dependencies in the xml file, re-imported it, and haven't had a problem since. Don't know if that might be related to your issues, but jlliagre might have a comment.
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197
Rep:
/var/svc/manifest/
You can prowl your way around a bit in the xml to see how it is structured. I've built a few new ones by starting with an existing one and copying it. There will be method sections that point to where the scripts are for stopping and starting things. Typically, that would be /lib/svc/method, though I've put my own in /usr/local.
man smf
and, of course, svcs and svcadm, and svccfg
It is svccfg which has the import option taking the xml file as its argument.
However, a quick look at my system didn't turn up any obvious tweak that you could do there. svcs shows zfs sharing services, but not zfs itself.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.