Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home for zfsonlinux.org
« Groups Home
automount no longer working
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 1 - 25 of 38 - Collapse all  -  Translate all to Translated (View all originals)   Newer >
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
UbuntuNewbie  
View profile  
 More options Aug 26 2011, 1:42 am
From: UbuntuNewbie <chessdo...@googlemail.com>
Date: Thu, 25 Aug 2011 22:42:04 -0700 (PDT)
Local: Fri, Aug 26 2011 1:42 am
Subject: automount no longer working
Hi all,

tonight, my machine updated from the ppa.

previously, i had automount turned on in /etc/default/zfs (which still
is unchanged). But the filesystems no longer automount, thus forcing
me to wait and later manually "sudo zfs mount -a".

Can i change that? Is this intentional?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
UbuntuNewbie  
View profile  
 More options Aug 26 2011, 1:45 am
From: UbuntuNewbie <chessdo...@googlemail.com>
Date: Thu, 25 Aug 2011 22:45:45 -0700 (PDT)
Local: Fri, Aug 26 2011 1:45 am
Subject: Re: automount no longer working
Oh, btw, i forgot to mention that this time, i has serious problems to
perform the update because the pool was unable to unmount prior to the
update. That is why i went back to an earlier OS configuration first,
unshared the network folders to allow for a safe pool export. then i
updated from there and imported the pool again.

... this is when automount was no longer working.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Darik Horn  
View profile  
 More options Aug 27 2011, 11:02 pm
From: Darik Horn <dajh...@vanadac.com>
Date: Sat, 27 Aug 2011 22:02:52 -0500
Local: Sat, Aug 27 2011 11:02 pm
Subject: Re: [zfs-discuss] automount no longer working

On Thu, 2011-08-25 at 22:42 -0700, UbuntuNewbie wrote:
> Hi all,

> tonight, my machine updated from the ppa.

> previously, i had automount turned on in /etc/default/zfs (which still
> is unchanged). But the filesystems no longer automount, thus forcing
> me to wait and later manually "sudo zfs mount -a".

> Can i change that? Is this intentional?

No.  I started merging the upstream init script into the customized KQ
init script, particularly the `zfs share -a` command.

It seems that some systems without an NFS service choked on the sharenfs
property.  The fix is to install the nfs-kernel-server package or unset
the sharenfs property.

The nfs-kernel-server package is currently a suggestion.  I'm thinking
about whether to promote it to a recommendation or dependency, or to
protect it with a ZFS_SHARE='n' in the /etc/defaults/zfs file.

A dud release was pushed to the staging area, but it failed testing and
was not published to the regular PPA.  Don't use the staging area unless
you are willing to test for breakages.

--
Darik Horn <dajh...@vanadac.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
UbuntuNewbie  
View profile  
 More options Aug 28 2011, 10:46 am
From: UbuntuNewbie <chessdo...@googlemail.com>
Date: Sun, 28 Aug 2011 07:46:10 -0700 (PDT)
Local: Sun, Aug 28 2011 10:46 am
Subject: Re: [zfs-discuss] automount no longer working
Hello,

Darik Horn schrieb:

> On Thu, 2011-08-25 at 22:42 -0700, UbuntuNewbie wrote:
> > Hi all,

> > tonight, my machine updated from the ppa.

> > previously, i had automount turned on in /etc/default/zfs (which still
> > is unchanged). But the filesystems no longer automount, thus forcing
> > me to wait and later manually "sudo zfs mount -a".

> > Can i change that? Is this intentional?

> No.  I started merging the upstream init script into the customized KQ
> init script, particularly the `zfs share -a` command.

i see, ...makes sense

> It seems that some systems without an NFS service choked on the sharenfs
> property.  The fix is to install the nfs-kernel-server package or unset
> the sharenfs property.

ok, i had indeed played with that, had the package and the property.
But since i failed at getting it to behave as expected, i reverted
both to the earlier state (unset property, package removed).

just checked that again, just to be certain.

> The nfs-kernel-server package is currently a suggestion.  I'm thinking
> about whether to promote it to a recommendation or dependency, or to
> protect it with a ZFS_SHARE='n' in the /etc/defaults/zfs file.

> A dud release was pushed to the staging area, but it failed testing and
> was not published to the regular PPA.  Don't use the staging area unless
> you are willing to test for breakages.

To be honest: i wouldnt even know, how to access the staging area. I
have only 0.6.0.31 and have to manually mount after boot, although the
default is set to 'yes'

Anything else that i could/should check?

Datakanja


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Darik Horn  
View profile  
 More options Aug 28 2011, 11:38 am
From: Darik Horn <dajh...@vanadac.com>
Date: Sun, 28 Aug 2011 10:38:42 -0500
Local: Sun, Aug 28 2011 11:38 am
Subject: Re: [zfs-discuss] automount no longer working

On Sun, 2011-08-28 at 07:46 -0700, UbuntuNewbie wrote:
> > The nfs-kernel-server package is currently a suggestion.  I'm thinking
> > about whether to promote it to a recommendation or dependency, or to
> > protect it with a ZFS_SHARE='n' in the /etc/defaults/zfs file.

> > A dud release was pushed to the staging area, but it failed testing and
> > was not published to the regular PPA.  Don't use the staging area unless
> > you are willing to test for breakages.

> To be honest: i wouldnt even know, how to access the staging area. I
> have only 0.6.0.31 and have to manually mount after boot, although the
> default is set to 'yes'

This comment was for people that are lurking on the list.

The staging area for ZFS should be hidden, but Launchpad currently
requires a privileged account to change the setting.

> Anything else that i could/should check?

What happens if you run `/etc/init.d/zfs start` manually?  

It sounds like 0.6.0.31 update could have a bug, but I haven't found it
yet. Anybody that has an init problem should complain about it here to
give me a hint for fixing it.

Provide system details, version numbers, etc.

--
Darik Horn <dajh...@vanadac.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andreas Neustifter  
View profile  
 More options Aug 28 2011, 12:38 pm
From: Andreas Neustifter <andreas.neustif...@gmail.com>
Date: Sun, 28 Aug 2011 18:38:05 +0200
Local: Sun, Aug 28 2011 12:38 pm
Subject: Re: [zfs-discuss] automount no longer working
Hi All!

On 28 August 2011 17:38, Darik Horn <dajh...@vanadac.com> wrote:

> On Sun, 2011-08-28 at 07:46 -0700, UbuntuNewbie wrote:

>> Anything else that i could/should check?

> What happens if you run `/etc/init.d/zfs start` manually?

> It sounds like 0.6.0.31 update could have a bug, but I haven't found it
> yet. Anybody that has an init problem should complain about it here to
> give me a hint for fixing it.

> Provide system details, version numbers, etc.

Same here!

System:
Linux ubuntu1104 2.6.38-11-generic #48-Ubuntu SMP Fri Jul 29 19:02:55
UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

Versions:
0.6.0.22.rc5-0ubuntu1~natty1 & 0.6.0.31-0ubuntu2~natty1

PPA:
http://ppa.launchpad.net/dajhorn/zfs/ubuntu

zpool status:
  pool: data
 state: ONLINE
 scan: scrub repaired 0 in 3h24m with 0 errors on Tue Jun 28 01:47:02 2011
config:

        NAME        STATE     READ WRITE CKSUM
        data        ONLINE       0     0     0
          mirror-0  ONLINE       0     0     0
            sdc2    ONLINE       0     0     0
            sda2    ONLINE       0     0     0

errors: No known data errors

  pool: hiavail
 state: ONLINE
 scan: scrub repaired 0 in 0h42m with 0 errors on Tue Jun 28 08:14:51 2011
config:

        NAME        STATE     READ WRITE CKSUM
        hiavail     ONLINE       0     0     0
          mirror-0  ONLINE       0     0     0
            sdc1    ONLINE       0     0     0
            sdb6    ONLINE       0     0     0
            sda6    ONLINE       0     0     0

errors: No known data errors

/etc/default/zfs:
# Automatically run `zfs mount -a` at system startup if set non-empty.
ZFS_MOUNT='yes'

# Automatically run `zfs unmount -a` at system shutdown if set non-empty.
ZFS_UNMOUNT='yes'

Running 'sudo zfs mount -a' works fine, installing nfs-kernel-server
did not change anything.

Cheers, Andi


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
UbuntuNewbie  
View profile  
 More options Aug 29 2011, 6:29 am
From: UbuntuNewbie <chessdo...@googlemail.com>
Date: Mon, 29 Aug 2011 03:29:48 -0700 (PDT)
Local: Mon, Aug 29 2011 6:29 am
Subject: Re: [zfs-discuss] automount no longer working

> What happens if you run `/etc/init.d/zfs start` manually?

Works fine. Then no manual mount required. That is, what ran
automatically prior to the update.

> Provide system details, version numbers, etc.

Ubuntu natty 64 - version since problem update is 0.6.0.31 (zfs)

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Greg  
View profile  
 More options Aug 29 2011, 2:37 pm
From: Greg <rethe...@gmail.com>
Date: Mon, 29 Aug 2011 11:37:31 -0700 (PDT)
Local: Mon, Aug 29 2011 2:37 pm
Subject: Re: automount no longer working
I need to do more tests to narrow down, but sure seems like, if any
drive is having an issue, all zpools fail to automount.  I had this
error the other day:
sd 1:0:0:0: [sdb] Add. Sense: Unrecovered read error - auto reallocate
failed

So here's what I have noticed.  I couldn't automount zfs zpools on
Lucid (using PPA install), then I noticed that error on that drive.  I
pulled that drive, and then on reboot, automount worked again.
Interestingly, I have 3 zpools, and all of them would not automount.
with a swapped drive, automounts were working fine.  Then, just for
fun, I put that drive back into my raidz2 pool, and sure enough, the
pools all failed to mount.

Oddly, I have this same drive in the pool, but not getting that error
in my logs.  I also have the pool resilvered working fine.   Going to
do some reboots and see if what happens now.

Greg

PS > THANK YOU!!! To all of you working on this project!!  I know I am
not alone in thinking "I sure wish I had ZFS on my Linux servers!"
Running it on my home server now and loving it.  I am installing two
new servers at a client in the next month or so, and I am just trying
to resist the urge to setup the data array's with ZFS!  Its not quite
there yet, but I am very excited and looking forward to converting LVM
arrays!!

On Aug 29, 3:29 am, UbuntuNewbie <chessdo...@googlemail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Greg  
View profile   Translate to Translated (View Original)
 More options Aug 29 2011, 5:35 pm
From: Greg <rethe...@gmail.com>
Date: Mon, 29 Aug 2011 14:35:21 -0700 (PDT)
Local: Mon, Aug 29 2011 5:35 pm
Subject: Re: automount no longer working
Ok, I guess it has nothing to do with my "one drive". I just tried
several different combinations of add/removing the separate zpools,
but automount doesn't work every time. Only once did it automount the
third pool while the 1st and 2nd were removed, but on a following
attempt, it didn't automount it.

Greg

On Aug 29, 11:37 am, Greg <rethe...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andreas Neustifter  
View profile  
 More options Aug 30 2011, 4:29 am
From: Andreas Neustifter <andreas.neustif...@gmail.com>
Date: Tue, 30 Aug 2011 10:29:04 +0200
Local: Tues, Aug 30 2011 4:29 am
Subject: Re: [zfs-discuss] Re: automount no longer working
Hi all!

I managed to login as root fast enough this morning to get the
following error messages when trying to 'zfs mount -a':

Unable to open /dev/zfs: No such file or directory.
Verify that the ZFS module stack is loaded by running '/sbin/modprobe zfs'.
Unable to open /dev/zfs: No such file or directory.
Verify that the ZFS module stack is loaded by running '/sbin/modprobe zfs'.

I tried it several times and after about 30 seconds 'zfs mount -a' worked fine.

My guess is that the loading of modules is not finished when 'zfs
mount -a' is run in the init.d scripts and thus the zfs filesystems do
not get mounted.

Now that I think about it I remembered having problems with login when
I entered my username and password too soon after startup in gdm, the
zfs mount was not done at this point giving all sorts of strange error
messages from Gnome...

I guess it could be necessary to defer mounting of zfs until all
modules are loaded and also make eg. gdm dependent on the zfs startup
in the init.d scripts. This would increase "time to login" tough, also
for people how do not have the /home folder on zfs.

Sorry for the lengthy post, tried to be succinct.

Andi


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
UbuntuNewbie  
View profile  
 More options Aug 30 2011, 6:06 am
From: UbuntuNewbie <chessdo...@googlemail.com>
Date: Tue, 30 Aug 2011 03:06:49 -0700 (PDT)
Local: Tues, Aug 30 2011 6:06 am
Subject: Re: [zfs-discuss] Re: automount no longer working
Nice observation, Andreas.

> My guess is that the loading of modules is not finished when 'zfs
> mount -a' is run in the init.d scripts and thus the zfs filesystems do
> not get mounted.

i had the same thought, that some parallizing on boot/init could have
created the problem. And having many cores plus booting from SSD could
make me more vulnerable to the problem than others.

Anyway. Already prior to this issue, i had login happening BEFORE all
zfs filesystems were mounted, thus some failures occurred simply
because i started programs too soon. In the meantime i always checked
for zfs before doing anything. But since the update in question, even
waiting did not help. :-(


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andreas Neustifter  
View profile  
 More options Aug 31 2011, 3:30 pm
From: Andreas Neustifter <andreas.neustif...@gmail.com>
Date: Wed, 31 Aug 2011 21:30:03 +0200
Local: Wed, Aug 31 2011 3:30 pm
Subject: Re: [zfs-discuss] Re: automount no longer working
I opened a bug for this with a workaround-patch:

https://github.com/zfsonlinux/zfs/issues/381

Andi

On 30 August 2011 12:06, UbuntuNewbie <chessdo...@googlemail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Felipe Scarel  
View profile  
 More options Aug 31 2011, 4:50 pm
From: Felipe Scarel <fbsca...@gmail.com>
Date: Wed, 31 Aug 2011 17:50:38 -0300
Local: Wed, Aug 31 2011 4:50 pm
Subject: Re: [zfs-discuss] Re: automount no longer working

I applied your patch and got a minor error:

# /etc/init.d/zfs start
Starting ZFS subsystem filesystems[: 86: 0: unexpected operator
zfs[20399]: Unable to mount zfs, waiting...

Changed to "let COUNT++" and to use bash instead of sh, seems fine.

On Wed, Aug 31, 2011 at 16:30, Andreas Neustifter <


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christ Schlacta  
View profile  
 More options Aug 31 2011, 5:49 pm
From: Christ Schlacta <aarc...@aarcane.org>
Date: Wed, 31 Aug 2011 14:49:00 -0700
Subject: Re: [zfs-discuss] Re: automount no longer working

On 8/31/2011 1:50 PM, Felipe Scarel wrote:

I'm working on some zfs (and related) upstart scripts.  When I get them
tuned well, would anyone like them to be uploaded?  Most of the
not-quite-zfs scripts work on "started zfs" and "stopping zfs" events,
so anything except zfs itsself can just be tweaked to use those events
to start it.  (I plan to start tty 4, 5, 6 regularly, but 1, 2, and 3
only when ZFS is started so I can run emergency logins on 4 5 6 if
anything goes wrong, but won't be cleanly presented with a prompt until
zfs is live to alleviate some of these zfs race issues).  Also, zfs
upstart script handles waiting for udev to settle and ensuring proper
zfs module insertion, could be modified to run zpool clear before
mounting in case devices didn't finish loading before module loaded,
etc.  I'm planning to ensure every obvious case is handled without
breaking anything along the way.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
UbuntuNewbie  
View profile  
 More options Aug 31 2011, 6:14 pm
From: UbuntuNewbie <chessdo...@googlemail.com>
Date: Wed, 31 Aug 2011 15:14:49 -0700 (PDT)
Local: Wed, Aug 31 2011 6:14 pm
Subject: Re: [zfs-discuss] Re: automount no longer working
Andreas Neustifter schrieb:

> I opened a bug for this with a workaround-patch:

> https://github.com/zfsonlinux/zfs/issues/381

> Andi

Thank you.

After reading about the error in the script, i noticed a missing "$"-
sign (COUNT + 1) should read ($COUNT + 1).

Without further changes, my system now has the filesystems mounted
again after boot, and i am happy again. :-)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andreas Neustifter  
View profile  
 More options Sep 1 2011, 1:35 am
From: Andreas Neustifter <andreas.neustif...@gmail.com>
Date: Thu, 1 Sep 2011 07:35:01 +0200
Local: Thurs, Sep 1 2011 1:35 am
Subject: Re: [zfs-discuss] Re: automount no longer working
Hi!

On 31 August 2011 22:50, Felipe Scarel <fbsca...@gmail.com> wrote:

> I applied your patch and got a minor error:
> # /etc/init.d/zfs start
> Starting ZFS subsystem filesystems[: 86: 0: unexpected operator
> zfs[20399]: Unable to mount zfs, waiting...
> Changed to "let COUNT++" and to use bash instead of sh, seems fine.

I changed "COUNT=$(( COUNT + 1 ))" to "COUNT=$(( $COUNT + 1 ))", this
should do the trick too...

(Old bash habits die hard....)

Andi


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andreas Neustifter  
View profile  
 More options Sep 1 2011, 1:40 am
From: Andreas Neustifter <andreas.neustif...@gmail.com>
Date: Thu, 1 Sep 2011 07:40:17 +0200
Local: Thurs, Sep 1 2011 1:40 am
Subject: Re: [zfs-discuss] Re: automount no longer working
Hi Christ!

On 31 August 2011 23:49, Christ Schlacta <aarc...@aarcane.org> wrote:

> I'm working on some zfs (and related) upstart scripts.  When I get them
> tuned well, would anyone like them to be uploaded?  Most of the
> not-quite-zfs scripts work on "started zfs" and "stopping zfs" events, so
> anything except zfs itsself can just be tweaked to use those events to start
> it.  (I plan to start tty 4, 5, 6 regularly, but 1, 2, and 3 only when ZFS
> is started so I can run emergency logins on 4 5 6 if anything goes wrong,
> but won't be cleanly presented with a prompt until zfs is live to alleviate
> some of these zfs race issues).  Also, zfs upstart script handles waiting
> for udev to settle and ensuring proper zfs module insertion, could be
> modified to run zpool clear before mounting in case devices didn't finish
> loading before module loaded, etc.  I'm planning to ensure every obvious
> case is handled without breaking anything along the way.

Upstart scripts would be great, time permitting I am willing to test them.

I had a really hard time yesterday to try to generate a upstart zfs
event from the init.d scripts so that gdm is only started if zfs is
ready (for /home on zfs). Not sure if this even possible...

Andi


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christ Schlacta  
View profile  
 More options Sep 1 2011, 1:57 am
From: Christ Schlacta <aarc...@aarcane.org>
Date: Wed, 31 Aug 2011 22:57:20 -0700
Local: Thurs, Sep 1 2011 1:57 am
Subject: Re: [zfs-discuss] Re: automount no longer working
On 8/31/2011 22:40, Andreas Neustifter wrote:

I have some stringent requirements for zfs to be up before a number of
services.  I start zfs by default on 2345, so most core stuff is
settled, then start everything else on zfs started, so setting gdm to
start on started zfs, you'll be good to go.   I've been researching all
the start on clauses, and all the mechanisms to make stuff work together
nicely, and I think I've got most of it in place.  I just need to know
what ZFS needs to do aside from modprobe zfs and zfs mount -a

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Greg  
View profile  
 More options Sep 1 2011, 12:40 pm
From: Greg <rethe...@gmail.com>
Date: Thu, 1 Sep 2011 09:40:00 -0700 (PDT)
Subject: Re: automount no longer working
I'd love to use a script if you have time to make one.  I'll put it on
my home server right away and help test for you if you like.  Is it
possible to have it start on 12345?  I suppose you wouldn't need it on
1 normally, or maybe not *want* it to on 1, and if you were to boot
into single user, you could manually mount zfs anyway, right?

Also, I am assuming we would want zfs to auto mount without the
scripts in the future? right?  And that zfs should be mounting as
early as possible, before any services get going.  (I am thinking
mysql, pgsql, apache, samba, that kind of stuff)

Thanks guys!

Greg

On Aug 31, 10:57 pm, Christ Schlacta <aarc...@aarcane.org> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Upstart Init with ZFS Was: Re: [zfs-discuss] Re: automount no longer working" by Christ Schlacta
Christ Schlacta  
View profile  
 More options Sep 1 2011, 2:06 pm
From: Christ Schlacta <aarc...@aarcane.org>
Date: Thu, 01 Sep 2011 11:06:03 -0700
Local: Thurs, Sep 1 2011 2:06 pm
Subject: Upstart Init with ZFS Was: Re: [zfs-discuss] Re: automount no longer working
The runlevels are strange in linux.  Linux starts in a base runlevel,
not sure what it is called, but it does some basic stuff then switches
to runlevel 2, 3, 4, or 5 depending on which distro you're using.  most
modern distros use 2, but 2, 3, 4, and 5 are identical for most
configurations and 3, 4, and 5 are unused.

Once in runlevel 2, init starts running user defined scripts including
but not limited to scripts for non-root filesystems, services, etc.
Sysv init lets you specify the start order by prefixing init scripts
with an integer.  an application 00_mountall will run before 20_httpd
and 20_mysql, which can in theory run together (but usually don't) and
will NEVER run BEFORE 21_ldap, for example.

Upstart is a bit different.  upstart lets you specify ANY service to
depend on any other.  If you need mysql started before apache, then you
can specify, in your apache config file, "start on started mysql", or if
you only ever need mysql when apache is running, you might put "start on
starting apache" in your mysql config file.  The dependencies can go
either way, and which is right obviously depends on your situation.

Which brings us to ZFS.  We have three conditions around ZFS which
matter significantly.  "Do we need this to run before ZFS" "Does ZFS
need this to run before zfs can start" and "Do we need to run this after
ZFS".  These are "start on" conditions, and are intended to be
user-defined.  Picking good defaults is of course important, but no
default will provide 100% of the people the perfect answer.
Using the upstart starting and started conditions allow us to handle
these.  for the first condition:

Do we need this to run before ZFS?  in the upstart config for that job,
we enter "start on starting zfs" this will ensure that before ZFS is
started, this job has started

for the second:
Does ZFS need this to run before ZFS can start?  In the upstart config
for ZFS we can enter "start on starting servicename", and make sure
something starts our other service.
for the last, "do we need to run this after zfs?" we simply add "start
on started zfs" to the other service's config and it starts immediately
when ZFS starts.

I'm off to restart my system a few times to make sure ZFS is starting
properly, then I'll make a few minor tweaks as needed and post the
upstart script to the list.

On 9/1/2011 09:40, Greg wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Greg  
View profile  
 More options Sep 1 2011, 4:12 pm
From: Greg <rethe...@gmail.com>
Date: Thu, 1 Sep 2011 13:12:10 -0700 (PDT)
Local: Thurs, Sep 1 2011 4:12 pm
Subject: Re: Upstart Init with ZFS Was: Re: [zfs-discuss] Re: automount no longer working
Oh wow!  I had no idea!  One day I saw "upstart" mentioned in Ubuntu
and I had no idea it was a whole new startup system! Hahaha! I kept
thinking, "whats the big deal, I'll start this how I am used to?"
Thanks for such a great description, gonna do some playing with that
now.  Sounds way more useful with those dependencies.  I just never
took the time to lookup what they were talking about, and now the name
"upstart" make so much more sense. LOL!

Thanks!

Greg

On Sep 1, 11:06 am, Christ Schlacta <aarc...@aarcane.org> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christ Schlacta  
View profile  
 More options Sep 1 2011, 4:25 pm
From: Christ Schlacta <aarc...@aarcane.org>
Date: Thu, 01 Sep 2011 13:25:25 -0700
Local: Thurs, Sep 1 2011 4:25 pm
Subject: Re: Upstart Init with ZFS Was: Re: [zfs-discuss] Re: automount no longer working

Attached is zfs-init.tar.  un-tar it wherever, it will create zfs-init/
.  inside zfs-init are a readme file, and a directory structure that
mirrors / on a ubuntu system.  copy the files to their intended
location, and read the readme file to test.  (sudo cp -r zfs-init/./ /
should work, but is ill advised.)

read etc/default/zfs carefully.  I added a new option to it.

please provide feedback if anything needs to be changed, or if I've done
anything wrong.  I used the existing zfs init script as a template to
start zfs.

On 9/1/2011 13:12, Greg wrote:

  zfs-init.tar
13K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christ Schlacta  
View profile  
 More options Sep 1 2011, 4:36 pm
From: Christ Schlacta <aarc...@aarcane.org>
Date: Thu, 01 Sep 2011 13:36:55 -0700
Local: Thurs, Sep 1 2011 4:36 pm
Subject: Re: Upstart Init with ZFS Was: Re: [zfs-discuss] Re: automount no longer working
We live now in the age of computers, and in this age is contained the
age of linux.  I've found my equilibrium with linux, at long last.
I love linux, and could never live without it.  Linux runs my servers,
my embedded systems, and a bunch of other stuff, but Linux, sadly, will
never be my primary desktop OS.  I couldn't live without the games that
aren't available on linux, and need to use windows-only apps for school,
and so, I keep windows 7 on my desktop.  and it's pretty, and it's
stable, and it's protected by linux on my firewall.  I'm content.

Sure, windows 7 may be lacking in some of the features I love (multiple
virtual desktops, pretty 3D desktop, live wallpapers, a solid console
underpinning, and a metric asston of security and customization features
too numerous to count), but I can get the important ones (solid console
underpinning and an asston of security) using available windows products
like putty, which keep me in touch with my linux roots.

The age of Linux truly IS now, it's just that Linux will never truly be
the universal desktop OS like windows is now.  (at least in the
forseeable future)

On 9/1/2011 13:12, Greg wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Greg  
View profile  
 More options Sep 5 2011, 1:34 pm
From: Greg <rethe...@gmail.com>
Date: Mon, 5 Sep 2011 10:34:14 -0700 (PDT)
Local: Mon, Sep 5 2011 1:34 pm
Subject: Re: Upstart Init with ZFS Was: Re: [zfs-discuss] Re: automount no longer working
I have the scripts loaded up (thanks for making them!) but its still
not mounting zfs.
I did a quick check in dmesg and noticed this:

[   10.814194] SPL: Failed user helper '/bin/sh -c exec 0</dev/
null      1>/proc/sys/kernel/spl/kallsyms_lookup_name      2>/dev/
null; awk  '{ if ( $3 == "kallsyms_lookup_name" ) { print
$1 } }'      /proc/kallsyms ', rc = 32512
[   10.814268] SPL: Failed to Load Solaris Porting Layer v0.6.0.31, rc
= -99
[   40.755540] SPL: Loaded module v0.6.0.31, using hostid 0x007f0101

I suppose that's why they are not mounting if the ZFS module is
dependent on SPL, and SPL is not loading.  Not sure what to do with
this one.
Just a quick note about my sys, using Ubuntu Lucid x64 on an almost
clean load of the system of 10.04.3.  Using the PPA install.

Greg

On Sep 1, 1:25 pm, Christ Schlacta <aarc...@aarcane.org> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christ Schlacta  
View profile  
 More options Sep 5 2011, 2:20 pm
From: Christ Schlacta <aarc...@aarcane.org>
Date: Mon, 05 Sep 2011 11:20:03 -0700
Local: Mon, Sep 5 2011 2:20 pm
Subject: Re: Upstart Init with ZFS Was: Re: [zfs-discuss] Re: automount no longer working
Try these simple steps and see if they fix your issue.

dd if=/dev/urandom of=/etc/hostid bs=4 count=1
dpkg-reconfigure spl-dkms
dpkg-reconfigure zfs-dkms

then reboot your computer.
if SPL is loading, then you should import, export, import, export, then
import again each of your pools (use import -N to skip mounting to speed
the process up)

On 9/5/2011 10:34, Greg wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Messages 1 - 25 of 38   Newer >
« Back to Discussions « Newer topic     Older topic »