User Functions
Don't have an account yet? Sign up as a New User
Who's Online
Guest Users: 9
|
| View previous topic :: View next topic |
| Author |
Message |
numasan JBOD

Joined: 23 Apr 2012 Posts: 4
|
Posted: Mon Apr 23, 2012 12:00 pm Post subject: Volume only mounts at login |
|
|
Hola all,
Just setup a new Xsan on Lion 10.7.3 with 2 mdc's and 1 client (adding more later). I'd like to have the SAN volume mounted at boot and before any user login, but have trouble getting it to do this. Reason is having the users home on the SAN volume (not via AFS/NFS).
Looking at the logs, it seems the volume actually mounts during boot, but immediately unmounts.
Client Dmesg:
| Code: | Mounted filesystem OAPVolume to FSM on host 10.0.8.5
Using v2 readdir for 'OAPVolume'
Xsan: enabling extended security on volume "OAPVolume"
Xsan: volume 'OAPVolume' UUID: 84A0F2E2-372D-4E59-8C08-2F1FA63A6DFF
Disconnected OAPVolume from FSS host 10.0.8.5
Un-mounted filesystem OAPVolume from FSM on host 10.0.8.5 |
Client fsmpm log:
| Code: | ....
....
[0423 18:16:55] 0x104881000 NOTICE PortMapper: Mount Event for /OAPVolume on /dev/disk82
[0423 18:16:56] 0x102787000 NOTICE PortMapper: Unmount Event for /OAPVolume on /dev/disk82
[0423 18:17:07] 0x104a0a000 INFO Disk rescan delay completed
[0423 18:17:07] 0x104a0a000 INFO Disk rescan found 6 disks
[0423 18:17:10] 0x108081000 NOTICE PortMapper: Mount Event for /OAPVolume on /dev/disk83
[0423 18:17:11] 0x108081000 NOTICE PortMapper: Unmount Event for /OAPVolume on /dev/disk83
[0423 18:17:15] 0x104a0a000 INFO Starting Disk rescan
[0423 18:17:25] 0x102787000 NOTICE PortMapper: Mount Event for /OAPVolume on /dev/disk84
[0423 18:17:26] 0x102787000 NOTICE PortMapper: Unmount Event for /OAPVolume on /dev/disk84
....
.... |
This is at the login screen. When logging in the volume mounts after a ~20 second delay, which makes it unusable for user-dirs. Why can't it stay mounted after boot with no user logged in?
DNS, NTP, OD, etc works correctly.
Thank you in advance for any explanation/help. |
|
| Back to top |
|
 |
sf809 Been around the blocks

Joined: 21 Jan 2010 Posts: 27
|
Posted: Mon Apr 23, 2012 12:20 pm Post subject: |
|
|
Try this:
Mount Filesystems without Login on a Client!
sudo defaults write /Library/Preferences/SystemConfiguration/autodiskmount AutomountDisksWithoutUserLogin -bool true
Seb. |
|
| Back to top |
|
 |
numasan JBOD

Joined: 23 Apr 2012 Posts: 4
|
Posted: Wed Apr 25, 2012 7:16 am Post subject: |
|
|
Hi sf809, sorry for the late reply.
Unfortunately "AutomountDisksWithoutUserLogin" does not work, in fact the file /Library/Preferences/SystemConfiguration/autodiskmount.plist existed already.
I also tried using /etc/fstab (not fstab.hd) with no success - seems like Apple only read their own conf files (.plist)
I can't see why it wouldn't be possible to mount a volume without user logged in, on a technical level, but has Apple made it possible? |
|
| Back to top |
|
 |
mw10dot1 Xsan Master

Joined: 06 Dec 2006 Posts: 106
|
Posted: Wed Apr 25, 2012 7:46 am Post subject: Home folders on xsan |
|
|
Hi Numasan
While this does not answer you question. Even if you are able to make it work. I would not recommend putting the home folders on the SAN as you might run into performance issues with all the little reads and writes.
I have not tested this it is just my gut feeling.
Michael |
|
| Back to top |
|
 |
numasan JBOD

Joined: 23 Apr 2012 Posts: 4
|
Posted: Wed Apr 25, 2012 8:28 am Post subject: |
|
|
Hi Michael
Well you might be right, but it appears that others have put user homes on a SAN volume without issues (apparently), only they have reshared that through AFP/NFS to the clients. In terms of performance it should be the same wether the read/writes are done through a network protocol or xsan - in theory!
I would have shared the home-folder through NFS "locally" if it wasn't for the Mac mini's very slow USB-ethernet, and disk space constraints.
In any case I appreciate your comment. |
|
| Back to top |
|
 |
wrstuden Xsan Master

Joined: 04 Jan 2008 Posts: 99
|
Posted: Thu Apr 26, 2012 12:09 am Post subject: |
|
|
| numasan wrote: | Hi sf809, sorry for the late reply.
Unfortunately "AutomountDisksWithoutUserLogin" does not work, in fact the file /Library/Preferences/SystemConfiguration/autodiskmount.plist existed already. |
That was one shell command line split over two lines in the forum.
| numasan wrote: | I also tried using /etc/fstab (not fstab.hd) with no success - seems like Apple only read their own conf files (.plist)
I can't see why it wouldn't be possible to mount a volume without user logged in, on a technical level, but has Apple made it possible? |
/etc/fstab is not the right model for mounting Xsan volumes. Xsan volumes do not have one single device off of which to key an fstab entry. The device usually listed as the mount device for an Xsan mount only exists AFTER the mount succeeds. And clients usually don't have a config file indicating what cvlabel names make up what volume. Plus, even if a client can see all the disks in a volume, it won't be able to mount if there isn't an fsm running somewhere hosting the volume.
Note also the main issue isn't that the disk didn't mount, it's that it didn't stay mounted.  |
|
| Back to top |
|
 |
numasan JBOD

Joined: 23 Apr 2012 Posts: 4
|
Posted: Thu Apr 26, 2012 10:52 am Post subject: |
|
|
Hello wrstuden,
| wrstuden wrote: | | That was one shell command line split over two lines in the forum. |
Yes I know. I meant that the command would be redundant since the file already existed, with the suggested content.
| wrstuden wrote: | | /etc/fstab is not the right model for mounting Xsan volumes. Xsan volumes do not have one single device off of which to key an fstab entry. The device usually listed as the mount device for an Xsan mount only exists AFTER the mount succeeds. And clients usually don't have a config file indicating what cvlabel names make up what volume. Plus, even if a client can see all the disks in a volume, it won't be able to mount if there isn't an fsm running somewhere hosting the volume. |
Looks like Apple deprecated fstab in Lion anyway, just wondering since Linux can use it to mount volumes (acfs). On your last point, does the mdc's not host the volume + running a fsm, which the clients communicate with?
| wrstuden wrote: | Note also the main issue isn't that the disk didn't mount, it's that it didn't stay mounted.  |
Right That is what bugs me out. Clearly the volume mounts at boot, so what issues the unmount?? |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|