Skip to contentSkip to conversation

Automounting DVD images

DISCUSSION Michael 2 participants 9 messages Dec 8, 2006 – Dec 13, 2006 Kernel automounter

lore
Share & tools
lore

Michael

author
#0 lore raw

Hello,

I have been trying to get autofs to mount DVD iso images but so far have been unsuccessful. I want to make this work from various client machines and not on the machine that servers out the iso.

I tried some examples from the web but can't seem to make them work. I can mount the file by hand over NFS without any issues.

Here is my configuration

NIS:

auto.master
/mythtv auto.mythtv
bg,hard,intr,retry=10000,rsize=32768,wsize=32768,timeo=600,nfsvers=3,tcp

auto.mythtv
iso --timeout=60 -fstype=autofs auto.mythtv.iso
video -rw filer:/export/services/mythtv/video

auto.mythtv.iso
* -fstype=iso9660,ro,loop /mythtv/video/Movies/&

I have tried various incarnations of the auto.mythtv.iso map but none actually worked. Can someone give me a hint?

[root@fc5 mythtv]# cd /mythtv/iso
[root@fc5 iso]# cd MOVIE.iso
-bash: cd: MOVIE.iso: No such file or directory

Here is log from a FC5 box with autofs.4.1.4-33

Dec  8 09:44:19 fc5 automount[30292]: failed to mount /mythtv/iso/MOVIE.iso

Here is the log from a FC6 box with autofs 5.0.1-0.rc2.28.1

Dec  8 09:50:20 fc6 automount[2557]: mounted indirect mount on 
/mythtv/iso with timeout 300, freq 75 seconds
Dec  8 09:50:20 fc6 automount[2557]: ghosting enabled
Dec  8 09:50:20 fc6 automount[2557]: mounted /mythtv/iso
Dec  8 09:50:24 fc6 automount[2557]: attempting to mount entry 
/mythtv/iso/MOVIE.iso
Dec  8 09:50:24 fc6 automount[2557]: lookup_name_file_source_instance: 
file map not found
Dec  8 09:50:24 fc6 automount[2557]: failed to mount /mythtv/iso/MOVIE.iso
Dec  8 09:50:24 fc6 automount[2557]: attempting to mount entry 
/mythtv/iso/MOVIE.iso
Dec  8 09:50:24 fc6 automount[2557]: lookup_name_file_source_instance: 
file map not found
Dec  8 09:50:24 fc6 automount[2557]: failed to mount /mythtv/iso/MOVIE.iso
Dec  8 09:50:24 fc6 automount[2557]: attempting to mount entry 
/mythtv/iso/MOVIE.iso
Dec  8 09:50:24 fc6 automount[2557]: lookup_name_file_source_instance: 
file map not found
Dec  8 09:50:24 fc6 automount[2557]: failed to mount /mythtv/iso/MOVIE.iso

Thanks,
Michael

maintainer
#1 lore raw
Quoted 17 lines · Michael

Hello,

I have been trying to get autofs to mount DVD iso images but so far have been unsuccessful. I want to make this work from various client machines and not on the machine that servers out the iso.

I tried some examples from the web but can't seem to make them work. I can mount the file by hand over NFS without any issues.

Here is my configuration

NIS:

auto.master
/mythtv auto.mythtv
bg,hard,intr,retry=10000,rsize=32768,wsize=32768,timeo=600,nfsvers=3,tcp

Quoted 6 lines

auto.mythtv
iso --timeout=60 -fstype=autofs auto.mythtv.iso
video -rw filer:/export/services/mythtv/video

auto.mythtv.iso
* -fstype=iso9660,ro,loop /mythtv/video/Movies/&

What happens if you use:
* -fstype=iso9660,ro,loop :/mythtv/video/Movies/&

Quoted 41 lines

I have tried various incarnations of the auto.mythtv.iso map but none actually worked. Can someone give me a hint?

[root@fc5 mythtv]# cd /mythtv/iso
[root@fc5 iso]# cd MOVIE.iso
-bash: cd: MOVIE.iso: No such file or directory

Here is log from a FC5 box with autofs.4.1.4-33

Dec  8 09:44:19 fc5 automount[30292]: failed to mount /mythtv/iso/MOVIE.iso

Here is the log from a FC6 box with autofs 5.0.1-0.rc2.28.1

Dec  8 09:50:20 fc6 automount[2557]: mounted indirect mount on 
/mythtv/iso with timeout 300, freq 75 seconds
Dec  8 09:50:20 fc6 automount[2557]: ghosting enabled
Dec  8 09:50:20 fc6 automount[2557]: mounted /mythtv/iso
Dec  8 09:50:24 fc6 automount[2557]: attempting to mount entry 
/mythtv/iso/MOVIE.iso
Dec  8 09:50:24 fc6 automount[2557]: lookup_name_file_source_instance: 
file map not found
Dec  8 09:50:24 fc6 automount[2557]: failed to mount /mythtv/iso/MOVIE.iso
Dec  8 09:50:24 fc6 automount[2557]: attempting to mount entry 
/mythtv/iso/MOVIE.iso
Dec  8 09:50:24 fc6 automount[2557]: lookup_name_file_source_instance: 
file map not found
Dec  8 09:50:24 fc6 automount[2557]: failed to mount /mythtv/iso/MOVIE.iso
Dec  8 09:50:24 fc6 automount[2557]: attempting to mount entry 
/mythtv/iso/MOVIE.iso
Dec  8 09:50:24 fc6 automount[2557]: lookup_name_file_source_instance: 
file map not found
Dec  8 09:50:24 fc6 automount[2557]: failed to mount /mythtv/iso/MOVIE.iso

Thanks,
Michael

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

author
#2 lore raw
Quoted 23 lines · Ian Kent
Quoted 21 lines · Michael

Hello,

I have been trying to get autofs to mount DVD iso images but so far have been unsuccessful. I want to make this work from various client machines and not on the machine that servers out the iso.

I tried some examples from the web but can't seem to make them work. I can mount the file by hand over NFS without any issues.

Here is my configuration

NIS:

auto.master
/mythtv auto.mythtv
bg,hard,intr,retry=10000,rsize=32768,wsize=32768,timeo=600,nfsvers=3,tcp

auto.mythtv
iso --timeout=60 -fstype=autofs auto.mythtv.iso
video -rw filer:/export/services/mythtv/video

Quoted 7 lines
Quoted 3 lines

auto.mythtv.iso
* -fstype=iso9660,ro,loop /mythtv/video/Movies/&

What happens if you use:
* -fstype=iso9660,ro,loop :/mythtv/video/Movies/&

Same:

Dec  8 13:12:27 fc6 automount[12059]: mounted /mythtv/iso
Dec  8 13:12:35 fc6 automount[12059]: attempting to mount entry 
/mythtv/iso/MOVIE.iso
Dec  8 13:12:35 fc6 automount[12059]: lookup_name_file_source_instance: 
file map not found
Dec  8 13:12:35 fc6 automount[12059]: failed to mount /mythtv/iso/MOVIE.iso
Dec  8 13:12:35 fc6 automount[12059]: attempting to mount entry 
/mythtv/iso/MOVIE.iso
Dec  8 13:12:35 fc6 automount[12059]: lookup_name_file_source_instance: 
file map not found
Dec  8 13:12:35 fc6 automount[12059]: failed to mount /mythtv/iso/MOVIE.iso
Dec  8 13:12:35 fc6 automount[12059]: attempting to mount entry 
/mythtv/iso/MOVIE.iso
Dec  8 13:12:35 fc6 automount[12059]: lookup_name_file_source_instance: 
file map not found
Dec  8 13:12:35 fc6 automount[12059]: failed to mount /mythtv/iso/MOVIE.iso

Michael

maintainer
#3 lore raw
Quoted 34 lines · Michael
Quoted 23 lines · Ian Kent
Quoted 21 lines · Michael

Hello,

I have been trying to get autofs to mount DVD iso images but so far have been unsuccessful. I want to make this work from various client machines and not on the machine that servers out the iso.

I tried some examples from the web but can't seem to make them work. I can mount the file by hand over NFS without any issues.

Here is my configuration

NIS:

auto.master
/mythtv auto.mythtv
bg,hard,intr,retry=10000,rsize=32768,wsize=32768,timeo=600,nfsvers=3,tcp

auto.mythtv
iso --timeout=60 -fstype=autofs auto.mythtv.iso
video -rw filer:/export/services/mythtv/video

Quoted 7 lines
Quoted 3 lines

auto.mythtv.iso
* -fstype=iso9660,ro,loop /mythtv/video/Movies/&

What happens if you use:
* -fstype=iso9660,ro,loop :/mythtv/video/Movies/&

Same:

Quoted 16 lines
Dec  8 13:12:27 fc6 automount[12059]: mounted /mythtv/iso
Dec  8 13:12:35 fc6 automount[12059]: attempting to mount entry 
/mythtv/iso/MOVIE.iso
Dec  8 13:12:35 fc6 automount[12059]: lookup_name_file_source_instance: 
file map not found
Dec  8 13:12:35 fc6 automount[12059]: failed to mount /mythtv/iso/MOVIE.iso
Dec  8 13:12:35 fc6 automount[12059]: attempting to mount entry 
/mythtv/iso/MOVIE.iso
Dec  8 13:12:35 fc6 automount[12059]: lookup_name_file_source_instance: 
file map not found
Dec  8 13:12:35 fc6 automount[12059]: failed to mount /mythtv/iso/MOVIE.iso
Dec  8 13:12:35 fc6 automount[12059]: attempting to mount entry 
/mythtv/iso/MOVIE.iso
Dec  8 13:12:35 fc6 automount[12059]: lookup_name_file_source_instance: 
file map not found
Dec  8 13:12:35 fc6 automount[12059]: failed to mount /mythtv/iso/MOVIE.iso

Then you need to provide a debug log.
You need to ensure that daemon.debug is being set somewhere by syslog. Check that because this is not nearly as much logging as would be expected.

I'd also add that I don't think the maps are quite right either but I don't have any suggestions atm. So give us the debug log first.

Ian

author
#4 lore raw
Quoted 7 lines · Ian Kent

On Fri, 2006-12-08 at 13:15 -0700, Michael wrote:

Then you need to provide a debug log.
You need to ensure that daemon.debug is being set somewhere by syslog. Check that because this is not nearly as much logging as would be expected.

Quoted 6 lines

I'd also add that I don't think the maps are quite right either but I don't have any suggestions atm. So give us the debug log first.

Ian

Dec  8 22:14:38 fc6 automount[2587]: handle_packet: type = 3
Dec  8 22:14:38 fc6 automount[2587]: handle_packet_missing_indirect: 
token 2, name iso, request pid 3381
Dec  8 22:14:38 fc6 automount[2587]: attempting to mount entry /mythtv/iso
Dec  8 22:14:38 fc6 automount[2587]: lookup_name_file_source_instance: 
file map not found
Dec  8 22:14:38 fc6 automount[2587]: lookup_mount: lookup(yp): looking 
up iso
Dec  8 22:14:38 fc6 automount[2587]: lookup_mount: lookup(yp): iso -> 
--timeout=60 -fstype=autofs  auto.mythtv.iso
Dec  8 22:14:38 fc6 automount[2587]: parse_mount: parse(sun): expanded 
entry: --timeout=60 -fstype=autofs  auto.mythtv.iso
Dec  8 22:14:38 fc6 automount[2587]: parse_mount: parse(sun): gathered 
options: -timeout=60,fstype=autofs
Dec  8 22:14:38 fc6 automount[2587]: parse_mount: parse(sun): 
dequote("auto.mythtv.iso") -> auto.mythtv.iso
Dec  8 22:14:38 fc6 automount[2587]: parse_mount: parse(sun): core of 
entry: options=-timeout=60,fstype=autofs, loc=auto.mythtv.iso
Dec  8 22:14:38 fc6 automount[2587]: sun_mount: parse(sun): mounting 
root /mythtv, mountpoint iso, what auto.mythtv.iso, fstype autofs, 
options -timeout=60
Dec  8 22:14:38 fc6 automount[2587]: do_mount: auto.mythtv.iso 
/mythtv/iso type autofs options -timeout=60 using module autofs
Dec  8 22:14:38 fc6 automount[2587]: mount_mount: mount(autofs): 
fullpath=/mythtv/iso what=auto.mythtv.iso options=-timeout=60
Dec  8 22:14:38 fc6 automount[2587]: lookup_nss_read_map: reading map 
files auto.mythtv.iso
Dec  8 22:14:38 fc6 automount[2587]: read_file_source_instance: file map 
/etc/auto.mythtv.iso not found
Dec  8 22:14:38 fc6 automount[2587]: lookup_nss_read_map: reading map 
nis auto.mythtv.iso
Dec  8 22:14:38 fc6 automount[2587]: lookup_init: lookup(yp): 
ctxt->mapname=auto.mythtv.iso
Dec  8 22:14:38 fc6 automount[2587]: parse_init: parse(sun): init 
gathered global options: timeout=60
Dec  8 22:14:38 fc6 automount[2587]: mounted indirect mount on 
/mythtv/iso with timeout 300, freq 75 seconds
Dec  8 22:14:38 fc6 automount[2587]: ghosting enabled
Dec  8 22:14:38 fc6 automount[2587]: send_ready: token = 2
Dec  8 22:14:38 fc6 automount[2587]: mounted /mythtv/iso
Dec  8 22:14:38 fc6 automount[2587]: handle_packet: type = 3
Dec  8 22:14:38 fc6 automount[2587]: handle_packet_missing_indirect: 
token 3, name MOVIE.iso, request pid 3381
Dec  8 22:14:38 fc6 automount[2587]: attempting to mount entry 
/mythtv/iso/MOVIE.iso
Dec  8 22:14:38 fc6 automount[2587]: lookup_name_file_source_instance: 
file map not found
Dec  8 22:14:38 fc6 automount[2587]: lookup_mount: lookup(yp): looking 
up MOVIE.iso
Dec  8 22:14:38 fc6 automount[2587]: send_fail: token = 3
Dec  8 22:14:38 fc6 automount[2587]: handle_packet: type = 3
Dec  8 22:14:38 fc6 automount[2587]: handle_packet_missing_indirect: 
token 4, name MOVIE.iso, request pid 3381
Dec  8 22:14:38 fc6 automount[2587]: failed to mount /mythtv/iso/MOVIE.iso
Dec  8 22:14:38 fc6 automount[2587]: attempting to mount entry 
/mythtv/iso/MOVIE.iso
Dec  8 22:14:38 fc6 automount[2587]: lookup_name_file_source_instance: 
file map not found
Dec  8 22:14:38 fc6 automount[2587]: lookup_mount: lookup(yp): looking 
up MOVIE.iso
Dec  8 22:14:38 fc6 automount[2587]: send_fail: token = 4
Dec  8 22:14:38 fc6 automount[2587]: handle_packet: type = 3
Dec  8 22:14:38 fc6 automount[2587]: handle_packet_missing_indirect: 
token 5, name MOVIE.iso, request pid 3381
Dec  8 22:14:38 fc6 automount[2587]: failed to mount /mythtv/iso/MOVIE.iso
Dec  8 22:14:38 fc6 automount[2587]: attempting to mount entry 
/mythtv/iso/MOVIE.iso
Dec  8 22:14:38 fc6 automount[2587]: lookup_name_file_source_instance: 
file map not found
Dec  8 22:14:38 fc6 automount[2587]: lookup_mount: lookup(yp): looking 
up MOVIE.iso
Dec  8 22:14:38 fc6 automount[2587]: send_fail: token = 5
Dec  8 22:14:38 fc6 automount[2587]: failed to mount /mythtv/iso/MOVIE.iso
Dec  8 22:14:47 fc6 ntpd[2652]: synchronized to 192.168.101.1, stratum 3
Dec  8 22:14:51 fc6 automount[2587]: st_expire: state 1 path /home
Dec  8 22:14:51 fc6 automount[2587]: expire_proc: exp_proc = 1086486848 
path /home
Dec  8 22:14:51 fc6 automount[2587]: expire_proc_indirect: expire 
/home/mikey
Dec  8 22:14:52 fc6 automount[2587]: expire_proc_indirect: 1 remaining 
in /home
Dec  8 22:14:52 fc6 automount[2587]: mount still busy /home
Dec  8 22:14:52 fc6 automount[2587]: expire_cleanup: got thid 1086486848 
path /home stat 2
Dec  8 22:14:52 fc6 automount[2587]: expire_cleanup: sigchld: exp 
1086486848 finished, switching from 2 to 1
Dec  8 22:14:52 fc6 automount[2587]: st_ready: st_ready(): state = 2 
path /home
Dec  8 22:15:02 fc6 automount[2587]: st_expire: state 1 path /mythtv
Dec  8 22:15:02 fc6 automount[2587]: expire_proc: exp_proc = 1086486848 
path /mythtv
Dec  8 22:15:02 fc6 automount[2587]: st_expire: state 1 path /mythtv/iso
Dec  8 22:15:02 fc6 automount[2587]: expire_proc: exp_proc = 1099077952 
path /mythtv/iso
Dec  8 22:15:02 fc6 automount[2587]: expire_cleanup: got thid 1099077952 
path /mythtv/iso stat 0
Dec  8 22:15:02 fc6 automount[2587]: expire_cleanup: sigchld: exp 
1099077952 finished, switching from 2 to 1
Dec  8 22:15:02 fc6 automount[2587]: st_ready: st_ready(): state = 2 
path /mythtv/iso
Dec  8 22:15:02 fc6 automount[2587]: expire_proc_indirect: 1 submounts 
remaining in /mythtv
Dec  8 22:15:02 fc6 automount[2587]: mount still busy /mythtv
Dec  8 22:15:02 fc6 automount[2587]: expire_cleanup: got thid 1086486848 
path /mythtv stat 1
Dec  8 22:15:02 fc6 automount[2587]: expire_cleanup: sigchld: exp 
1086486848 finished, switching from 2 to 1
Dec  8 22:15:02 fc6 automount[2587]: st_ready: st_ready(): state = 2 
path /mythtv
Dec  8 22:15:19 fc6 automount[2587]: st_expire: state 1 path /misc
Dec  8 22:15:19 fc6 automount[2587]: expire_proc: exp_proc = 1086486848 
path /misc
Dec  8 22:15:19 fc6 automount[2587]: expire_cleanup: got thid 1086486848 
path /misc stat 0
Dec  8 22:15:19 fc6 automount[2587]: expire_cleanup: sigchld: exp 
1086486848 finished, switching from 2 to 1
Dec  8 22:15:19 fc6 automount[2587]: st_ready: st_ready(): state = 2 
path /misc
Dec  8 22:15:23 fc6 automount[2587]: st_expire: state 1 path /net
Dec  8 22:15:23 fc6 automount[2587]: expire_proc: exp_proc = 1086486848 
path /net
Dec  8 22:15:23 fc6 automount[2587]: expire_cleanup: got thid 1086486848 
path /net stat 0
Dec  8 22:15:23 fc6 automount[2587]: expire_cleanup: sigchld: exp 
1086486848 finished, switching from 2 to 1
Dec  8 22:15:23 fc6 automount[2587]: st_ready: st_ready(): state = 2 

path /net

Michael

maintainer
#5 lore raw
In reply to Michael
Quoted 24 lines · Michael
Quoted 23 lines · Ian Kent
Quoted 21 lines · Michael

Hello,

I have been trying to get autofs to mount DVD iso images but so far have been unsuccessful. I want to make this work from various client machines and not on the machine that servers out the iso.

I tried some examples from the web but can't seem to make them work. I can mount the file by hand over NFS without any issues.

Here is my configuration

NIS:

auto.master
/mythtv auto.mythtv
bg,hard,intr,retry=10000,rsize=32768,wsize=32768,timeo=600,nfsvers=3,tcp

auto.mythtv
iso --timeout=60 -fstype=autofs auto.mythtv.iso
video -rw filer:/export/services/mythtv/video

Quoted 7 lines
Quoted 7 lines
Quoted 3 lines

auto.mythtv.iso
* -fstype=iso9660,ro,loop /mythtv/video/Movies/&

What happens if you use:
* -fstype=iso9660,ro,loop :/mythtv/video/Movies/&

What happens if you also use this patch:

daemon/spawn.c +1 -1
index 7f0a6e0..6f59bf2 100644
@@ -272,7 +272,7 @@ int spawn_mount(logger *log, ...)
 #ifdef ENABLE_MOUNT_LOCKING
 	options = SPAWN_OPT_LOCK;
 #else
-	options = SPAWN_OPT_NONE;
+	options = SPAWN_OPT_ACCESS;
 #endif
 
 	va_start(arg, log);
author
#6 lore raw
Quoted 9 lines · Ian Kent

What happens if you also use this patch:

daemon/spawn.c +0 -0
index 7f0a6e0..6f59bf2 100644

daemon/spawn.c int spawn_mount(logger *log, ...) · line 278

Quoted 8 lines
daemon/spawn.c +1 -1
@@ -272,7 +272,7 @@ int spawn_mount(logger *log, ...)
 #ifdef ENABLE_MOUNT_LOCKING
 	options = SPAWN_OPT_LOCK;
 #else
-	options = SPAWN_OPT_NONE;
+	options = SPAWN_OPT_ACCESS;
 #endif
 
 	va_start(arg, log);

That seems to break autofs rather badly. With that patch I can no longer mount my home directory or the directory where the iso file actually lives.

Michael

Dec 12 11:36:30 fcvm automount[2028]: st_expire: state 1 path /mythtv
Dec 12 11:36:30 fcvm automount[2028]: expire_proc: exp_proc = 3075345296 path /mythtv
Dec 12 11:36:30 fcvm automount[2028]: expire_cleanup: got thid 3075345296 path /mythtv stat 0
Dec 12 11:36:30 fcvm automount[2028]: expire_cleanup: sigchld: exp 3075345296 finished, switching from 2 to 1
Dec 12 11:36:30 fcvm automount[2028]: st_ready: st_ready(): state = 2 path /mythtv
Dec 12 11:36:32 fcvm automount[2028]: handle_packet: type = 3
Dec 12 11:36:32 fcvm automount[2028]: handle_packet_missing_indirect: token 1, name iso, request pid 2545
Dec 12 11:36:32 fcvm automount[2028]: attempting to mount entry /mythtv/iso
Dec 12 11:36:32 fcvm automount[2028]: lookup_name_file_source_instance: file map not found
Dec 12 11:36:32 fcvm automount[2028]: lookup_mount: lookup(yp): looking up iso
Dec 12 11:36:32 fcvm automount[2028]: lookup_mount: lookup(yp): iso -> --timeout=60 -fstype=autofs	auto.mythtv.iso
Dec 12 11:36:32 fcvm automount[2028]: parse_mount: parse(sun): expanded entry: --timeout=60 -fstype=autofs	auto.mythtv.iso
Dec 12 11:36:32 fcvm automount[2028]: parse_mount: parse(sun): gathered options: -timeout=60,fstype=autofs
Dec 12 11:36:32 fcvm automount[2028]: parse_mount: parse(sun): dequote("auto.mythtv.iso") -> auto.mythtv.iso
Dec 12 11:36:32 fcvm automount[2028]: parse_mount: parse(sun): core of entry: options=-timeout=60,fstype=autofs, loc=auto.mythtv.iso
Dec 12 11:36:32 fcvm automount[2028]: sun_mount: parse(sun): mounting root /mythtv, mountpoint iso, what auto.mythtv.iso, fstype autofs, options -timeout=60
Dec 12 11:36:32 fcvm automount[2028]: do_mount: auto.mythtv.iso /mythtv/iso type autofs options -timeout=60 using module autofs
Dec 12 11:36:32 fcvm automount[2028]: mount_mount: mount(autofs): fullpath=/mythtv/iso what=auto.mythtv.iso options=-timeout=60
Dec 12 11:36:32 fcvm automount[2028]: lookup_nss_read_map: reading map files auto.mythtv.iso
Dec 12 11:36:32 fcvm automount[2028]: read_file_source_instance: file map /etc/auto.mythtv.iso not found
Dec 12 11:36:32 fcvm automount[2028]: lookup_nss_read_map: reading map nis auto.mythtv.iso
Dec 12 11:36:32 fcvm automount[2028]: lookup_init: lookup(yp): ctxt->mapname=auto.mythtv.iso
Dec 12 11:36:32 fcvm automount[2028]: parse_init: parse(sun): init gathered global options: timeout=60
Dec 12 11:36:32 fcvm automount[2028]: mounted indirect mount on /mythtv/iso with timeout 300, freq 75 seconds
Dec 12 11:36:32 fcvm automount[2028]: ghosting enabled
Dec 12 11:36:32 fcvm automount[2028]: send_ready: token = 1
Dec 12 11:36:32 fcvm automount[2028]: mounted /mythtv/iso
Dec 12 11:36:48 fcvm automount[2028]: st_expire: state 1 path /misc
Dec 12 11:36:48 fcvm automount[2028]: expire_proc: exp_proc = 3075345296 path /misc
Dec 12 11:36:48 fcvm automount[2028]: expire_cleanup: got thid 3075345296 path /misc stat 0
Dec 12 11:36:48 fcvm automount[2028]: expire_cleanup: sigchld: exp 3075345296 finished, switching from 2 to 1
Dec 12 11:36:48 fcvm automount[2028]: st_ready: st_ready(): state = 2 path /misc
Dec 12 11:36:49 fcvm automount[2028]: handle_packet: type = 3
Dec 12 11:36:49 fcvm automount[2028]: handle_packet_missing_indirect: token 2, name MOVIE.iso, request pid 2545
Dec 12 11:36:49 fcvm automount[2028]: attempting to mount entry /mythtv/iso/MOVIE.iso
Dec 12 11:36:49 fcvm automount[2028]: lookup_name_file_source_instance: file map not found
Dec 12 11:36:49 fcvm automount[2028]: lookup_mount: lookup(yp): looking up MOVIE.iso
Dec 12 11:36:49 fcvm automount[2028]: send_fail: token = 2
Dec 12 11:36:49 fcvm automount[2028]: handle_packet: type = 3
Dec 12 11:36:49 fcvm automount[2028]: handle_packet_missing_indirect: token 3, name MOVIE.iso, request pid 2545
Dec 12 11:36:49 fcvm automount[2028]: failed to mount /mythtv/iso/MOVIE.iso
Dec 12 11:36:49 fcvm automount[2028]: attempting to mount entry /mythtv/iso/MOVIE.iso
Dec 12 11:36:49 fcvm automount[2028]: lookup_name_file_source_instance: file map not found
Dec 12 11:36:49 fcvm automount[2028]: lookup_mount: lookup(yp): looking up MOVIE.iso
Dec 12 11:36:49 fcvm automount[2028]: send_fail: token = 3
Dec 12 11:36:49 fcvm automount[2028]: handle_packet: type = 3
Dec 12 11:36:49 fcvm automount[2028]: handle_packet_missing_indirect: token 4, name MOVIE.iso, request pid 2545
Dec 12 11:36:49 fcvm automount[2028]: failed to mount /mythtv/iso/MOVIE.iso
Dec 12 11:36:49 fcvm automount[2028]: attempting to mount entry /mythtv/iso/MOVIE.iso
Dec 12 11:36:49 fcvm automount[2028]: lookup_name_file_source_instance: file map not found
Dec 12 11:36:49 fcvm automount[2028]: lookup_mount: lookup(yp): looking up MOVIE.iso
Dec 12 11:36:49 fcvm automount[2028]: send_fail: token = 4
Dec 12 11:36:49 fcvm automount[2028]: failed to mount /mythtv/iso/MOVIE.iso
Dec 12 11:36:51 fcvm automount[2028]: st_expire: state 1 path /net
Dec 12 11:36:51 fcvm automount[2028]: expire_proc: exp_proc = 3075345296 path /net
Dec 12 11:36:51 fcvm automount[2028]: expire_cleanup: got thid 3075345296 path /net stat 0
Dec 12 11:36:51 fcvm automount[2028]: expire_cleanup: sigchld: exp 3075345296 finished, switching from 2 to 1
Dec 12 11:36:51 fcvm automount[2028]: st_ready: st_ready(): state = 2 path /net
Dec 12 11:36:52 fcvm automount[2028]: handle_packet: type = 3
Dec 12 11:36:52 fcvm automount[2028]: handle_packet_missing_indirect: token 5, name mikey, request pid 2545
Dec 12 11:36:52 fcvm automount[2028]: attempting to mount entry /home/mikey
Dec 12 11:36:52 fcvm automount[2028]: lookup_name_file_source_instance: file map not found
Dec 12 11:36:52 fcvm automount[2028]: lookup_mount: lookup(yp): looking up mikey
Dec 12 11:36:52 fcvm automount[2028]: lookup_mount: lookup(yp): mikey -> -rw             filer:/export/users/&
Dec 12 11:36:52 fcvm automount[2028]: parse_mount: parse(sun): expanded entry: -rw             filer:/export/users/mikey
Dec 12 11:36:52 fcvm automount[2028]: parse_mount: parse(sun): gathered options: rw
Dec 12 11:36:52 fcvm automount[2028]: parse_mount: parse(sun): dequote("filer:/export/users/mikey") -> filer:/export/users/mikey
Dec 12 11:36:52 fcvm automount[2028]: parse_mount: parse(sun): core of entry: options=rw, loc=filer:/export/users/mikey
Dec 12 11:36:52 fcvm automount[2028]: sun_mount: parse(sun): mounting root /home, mountpoint mikey, what filer:/export/users/mikey, fstype nfs, options rw
Dec 12 11:36:52 fcvm automount[2028]: mount_mount: mount(nfs): root=/home name=mikey what=filer:/export/users/mikey, fstype=nfs, options=rw
Dec 12 11:36:52 fcvm automount[2028]: mount_mount: mount(nfs): nfs options="rw", nosymlink=0, ro=0
Dec 12 11:36:52 fcvm automount[2028]: mount_mount: mount(nfs): calling mkdir_path /home/mikey
Dec 12 11:36:52 fcvm automount[2028]: mount_mount: mount(nfs): calling mount -t nfs -s -o rw filer:/export/users/mikey /home/mikey
Dec 12 11:36:52 fcvm automount[2028]: mount(nfs): nfs: mount failure filer:/export/users/mikey on /home/mikey
Dec 12 11:36:52 fcvm automount[2028]: send_fail: token = 5
Dec 12 11:36:52 fcvm automount[2028]: handle_packet: type = 3
Dec 12 11:36:52 fcvm automount[2028]: handle_packet_missing_indirect: token 6, name mikey, request pid 2545
Dec 12 11:36:52 fcvm automount[2028]: failed to mount /home/mikey
Dec 12 11:36:52 fcvm automount[2028]: attempting to mount entry /home/mikey
Dec 12 11:36:52 fcvm automount[2028]: lookup_name_file_source_instance: file map not found
Dec 12 11:36:52 fcvm automount[2028]: lookup_mount: lookup(yp): looking up mikey
Dec 12 11:36:52 fcvm automount[2028]: send_fail: token = 6
Dec 12 11:36:52 fcvm automount[2028]: handle_packet: type = 3
Dec 12 11:36:52 fcvm automount[2028]: handle_packet_missing_indirect: token 7, name mikey, request pid 2545
Dec 12 11:36:52 fcvm automount[2028]: failed to mount /home/mikey
Dec 12 11:36:52 fcvm automount[2028]: attempting to mount entry /home/mikey
Dec 12 11:36:52 fcvm automount[2028]: lookup_name_file_source_instance: file map not found
Dec 12 11:36:52 fcvm automount[2028]: lookup_mount: lookup(yp): looking up mikey
Dec 12 11:36:52 fcvm automount[2028]: send_fail: token = 7
Dec 12 11:36:53 fcvm automount[2028]: failed to mount /home/mikey
Dec 12 11:36:59 fcvm automount[2028]: st_expire: state 1 path /services
Dec 12 11:36:59 fcvm automount[2028]: expire_proc: exp_proc = 3075345296 path /services
Dec 12 11:36:59 fcvm automount[2028]: expire_cleanup: got thid 3075345296 path /services stat 0
Dec 12 11:36:59 fcvm automount[2028]: expire_cleanup: sigchld: exp 3075345296 finished, switching from 2 to 1
Dec 12 11:36:59 fcvm automount[2028]: st_ready: st_ready(): state = 2 path /services

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

maintainer
#7 lore raw
Quoted 15 lines · Michael
Quoted 14 lines · Ian Kent

What happens if you also use this patch:

daemon/spawn.c +1 -1
index 7f0a6e0..6f59bf2 100644
@@ -272,7 +272,7 @@ int spawn_mount(logger *log, ...)
 #ifdef ENABLE_MOUNT_LOCKING
 	options = SPAWN_OPT_LOCK;
 #else
-	options = SPAWN_OPT_NONE;
+	options = SPAWN_OPT_ACCESS;
 #endif
 
Quoted 7 lines

daemon/spawn.c int spawn_mount(logger *log, ...) · line 278

Quoted 3 lines
daemon/spawn.c +0 -0
 	va_start(arg, log);

That seems to break autofs rather badly. With that patch I can no longer mount my home directory or the directory where the iso file actually lives.

That's a bit of a surprise, I didn't expect it to break other maps. I'll check into that before doing anything else.

Does the /home mount also break if you don't use /mythtv map?

Quoted 101 lines

Michael

plain text document attachment (debug.autofs)

Dec 12 11:36:30 fcvm automount[2028]: st_expire: state 1 path /mythtv
Dec 12 11:36:30 fcvm automount[2028]: expire_proc: exp_proc = 3075345296 path /mythtv
Dec 12 11:36:30 fcvm automount[2028]: expire_cleanup: got thid 3075345296 path /mythtv stat 0
Dec 12 11:36:30 fcvm automount[2028]: expire_cleanup: sigchld: exp 3075345296 finished, switching from 2 to 1
Dec 12 11:36:30 fcvm automount[2028]: st_ready: st_ready(): state = 2 path /mythtv
Dec 12 11:36:32 fcvm automount[2028]: handle_packet: type = 3
Dec 12 11:36:32 fcvm automount[2028]: handle_packet_missing_indirect: token 1, name iso, request pid 2545
Dec 12 11:36:32 fcvm automount[2028]: attempting to mount entry /mythtv/iso
Dec 12 11:36:32 fcvm automount[2028]: lookup_name_file_source_instance: file map not found
Dec 12 11:36:32 fcvm automount[2028]: lookup_mount: lookup(yp): looking up iso
Dec 12 11:36:32 fcvm automount[2028]: lookup_mount: lookup(yp): iso -> --timeout=60 -fstype=autofs	auto.mythtv.iso
Dec 12 11:36:32 fcvm automount[2028]: parse_mount: parse(sun): expanded entry: --timeout=60 -fstype=autofs	auto.mythtv.iso
Dec 12 11:36:32 fcvm automount[2028]: parse_mount: parse(sun): gathered options: -timeout=60,fstype=autofs
Dec 12 11:36:32 fcvm automount[2028]: parse_mount: parse(sun): dequote("auto.mythtv.iso") -> auto.mythtv.iso
Dec 12 11:36:32 fcvm automount[2028]: parse_mount: parse(sun): core of entry: options=-timeout=60,fstype=autofs, loc=auto.mythtv.iso
Dec 12 11:36:32 fcvm automount[2028]: sun_mount: parse(sun): mounting root /mythtv, mountpoint iso, what auto.mythtv.iso, fstype autofs, options -timeout=60
Dec 12 11:36:32 fcvm automount[2028]: do_mount: auto.mythtv.iso /mythtv/iso type autofs options -timeout=60 using module autofs
Dec 12 11:36:32 fcvm automount[2028]: mount_mount: mount(autofs): fullpath=/mythtv/iso what=auto.mythtv.iso options=-timeout=60
Dec 12 11:36:32 fcvm automount[2028]: lookup_nss_read_map: reading map files auto.mythtv.iso
Dec 12 11:36:32 fcvm automount[2028]: read_file_source_instance: file map /etc/auto.mythtv.iso not found
Dec 12 11:36:32 fcvm automount[2028]: lookup_nss_read_map: reading map nis auto.mythtv.iso
Dec 12 11:36:32 fcvm automount[2028]: lookup_init: lookup(yp): ctxt->mapname=auto.mythtv.iso
Dec 12 11:36:32 fcvm automount[2028]: parse_init: parse(sun): init gathered global options: timeout=60
Dec 12 11:36:32 fcvm automount[2028]: mounted indirect mount on /mythtv/iso with timeout 300, freq 75 seconds
Dec 12 11:36:32 fcvm automount[2028]: ghosting enabled
Dec 12 11:36:32 fcvm automount[2028]: send_ready: token = 1
Dec 12 11:36:32 fcvm automount[2028]: mounted /mythtv/iso
Dec 12 11:36:48 fcvm automount[2028]: st_expire: state 1 path /misc
Dec 12 11:36:48 fcvm automount[2028]: expire_proc: exp_proc = 3075345296 path /misc
Dec 12 11:36:48 fcvm automount[2028]: expire_cleanup: got thid 3075345296 path /misc stat 0
Dec 12 11:36:48 fcvm automount[2028]: expire_cleanup: sigchld: exp 3075345296 finished, switching from 2 to 1
Dec 12 11:36:48 fcvm automount[2028]: st_ready: st_ready(): state = 2 path /misc
Dec 12 11:36:49 fcvm automount[2028]: handle_packet: type = 3
Dec 12 11:36:49 fcvm automount[2028]: handle_packet_missing_indirect: token 2, name MOVIE.iso, request pid 2545
Dec 12 11:36:49 fcvm automount[2028]: attempting to mount entry /mythtv/iso/MOVIE.iso
Dec 12 11:36:49 fcvm automount[2028]: lookup_name_file_source_instance: file map not found
Dec 12 11:36:49 fcvm automount[2028]: lookup_mount: lookup(yp): looking up MOVIE.iso
Dec 12 11:36:49 fcvm automount[2028]: send_fail: token = 2
Dec 12 11:36:49 fcvm automount[2028]: handle_packet: type = 3
Dec 12 11:36:49 fcvm automount[2028]: handle_packet_missing_indirect: token 3, name MOVIE.iso, request pid 2545
Dec 12 11:36:49 fcvm automount[2028]: failed to mount /mythtv/iso/MOVIE.iso
Dec 12 11:36:49 fcvm automount[2028]: attempting to mount entry /mythtv/iso/MOVIE.iso
Dec 12 11:36:49 fcvm automount[2028]: lookup_name_file_source_instance: file map not found
Dec 12 11:36:49 fcvm automount[2028]: lookup_mount: lookup(yp): looking up MOVIE.iso
Dec 12 11:36:49 fcvm automount[2028]: send_fail: token = 3
Dec 12 11:36:49 fcvm automount[2028]: handle_packet: type = 3
Dec 12 11:36:49 fcvm automount[2028]: handle_packet_missing_indirect: token 4, name MOVIE.iso, request pid 2545
Dec 12 11:36:49 fcvm automount[2028]: failed to mount /mythtv/iso/MOVIE.iso
Dec 12 11:36:49 fcvm automount[2028]: attempting to mount entry /mythtv/iso/MOVIE.iso
Dec 12 11:36:49 fcvm automount[2028]: lookup_name_file_source_instance: file map not found
Dec 12 11:36:49 fcvm automount[2028]: lookup_mount: lookup(yp): looking up MOVIE.iso
Dec 12 11:36:49 fcvm automount[2028]: send_fail: token = 4
Dec 12 11:36:49 fcvm automount[2028]: failed to mount /mythtv/iso/MOVIE.iso
Dec 12 11:36:51 fcvm automount[2028]: st_expire: state 1 path /net
Dec 12 11:36:51 fcvm automount[2028]: expire_proc: exp_proc = 3075345296 path /net
Dec 12 11:36:51 fcvm automount[2028]: expire_cleanup: got thid 3075345296 path /net stat 0
Dec 12 11:36:51 fcvm automount[2028]: expire_cleanup: sigchld: exp 3075345296 finished, switching from 2 to 1
Dec 12 11:36:51 fcvm automount[2028]: st_ready: st_ready(): state = 2 path /net
Dec 12 11:36:52 fcvm automount[2028]: handle_packet: type = 3
Dec 12 11:36:52 fcvm automount[2028]: handle_packet_missing_indirect: token 5, name mikey, request pid 2545
Dec 12 11:36:52 fcvm automount[2028]: attempting to mount entry /home/mikey
Dec 12 11:36:52 fcvm automount[2028]: lookup_name_file_source_instance: file map not found
Dec 12 11:36:52 fcvm automount[2028]: lookup_mount: lookup(yp): looking up mikey
Dec 12 11:36:52 fcvm automount[2028]: lookup_mount: lookup(yp): mikey -> -rw             filer:/export/users/&
Dec 12 11:36:52 fcvm automount[2028]: parse_mount: parse(sun): expanded entry: -rw             filer:/export/users/mikey
Dec 12 11:36:52 fcvm automount[2028]: parse_mount: parse(sun): gathered options: rw
Dec 12 11:36:52 fcvm automount[2028]: parse_mount: parse(sun): dequote("filer:/export/users/mikey") -> filer:/export/users/mikey
Dec 12 11:36:52 fcvm automount[2028]: parse_mount: parse(sun): core of entry: options=rw, loc=filer:/export/users/mikey
Dec 12 11:36:52 fcvm automount[2028]: sun_mount: parse(sun): mounting root /home, mountpoint mikey, what filer:/export/users/mikey, fstype nfs, options rw
Dec 12 11:36:52 fcvm automount[2028]: mount_mount: mount(nfs): root=/home name=mikey what=filer:/export/users/mikey, fstype=nfs, options=rw
Dec 12 11:36:52 fcvm automount[2028]: mount_mount: mount(nfs): nfs options="rw", nosymlink=0, ro=0
Dec 12 11:36:52 fcvm automount[2028]: mount_mount: mount(nfs): calling mkdir_path /home/mikey
Dec 12 11:36:52 fcvm automount[2028]: mount_mount: mount(nfs): calling mount -t nfs -s -o rw filer:/export/users/mikey /home/mikey
Dec 12 11:36:52 fcvm automount[2028]: mount(nfs): nfs: mount failure filer:/export/users/mikey on /home/mikey
Dec 12 11:36:52 fcvm automount[2028]: send_fail: token = 5
Dec 12 11:36:52 fcvm automount[2028]: handle_packet: type = 3
Dec 12 11:36:52 fcvm automount[2028]: handle_packet_missing_indirect: token 6, name mikey, request pid 2545
Dec 12 11:36:52 fcvm automount[2028]: failed to mount /home/mikey
Dec 12 11:36:52 fcvm automount[2028]: attempting to mount entry /home/mikey
Dec 12 11:36:52 fcvm automount[2028]: lookup_name_file_source_instance: file map not found
Dec 12 11:36:52 fcvm automount[2028]: lookup_mount: lookup(yp): looking up mikey
Dec 12 11:36:52 fcvm automount[2028]: send_fail: token = 6
Dec 12 11:36:52 fcvm automount[2028]: handle_packet: type = 3
Dec 12 11:36:52 fcvm automount[2028]: handle_packet_missing_indirect: token 7, name mikey, request pid 2545
Dec 12 11:36:52 fcvm automount[2028]: failed to mount /home/mikey
Dec 12 11:36:52 fcvm automount[2028]: attempting to mount entry /home/mikey
Dec 12 11:36:52 fcvm automount[2028]: lookup_name_file_source_instance: file map not found
Dec 12 11:36:52 fcvm automount[2028]: lookup_mount: lookup(yp): looking up mikey
Dec 12 11:36:52 fcvm automount[2028]: send_fail: token = 7
Dec 12 11:36:53 fcvm automount[2028]: failed to mount /home/mikey
Dec 12 11:36:59 fcvm automount[2028]: st_expire: state 1 path /services
Dec 12 11:36:59 fcvm automount[2028]: expire_proc: exp_proc = 3075345296 path /services
Dec 12 11:36:59 fcvm automount[2028]: expire_cleanup: got thid 3075345296 path /services stat 0
Dec 12 11:36:59 fcvm automount[2028]: expire_cleanup: sigchld: exp 3075345296 finished, switching from 2 to 1
Dec 12 11:36:59 fcvm automount[2028]: st_ready: st_ready(): state = 2 path /services
author
#8 lore raw
Quoted 6 lines · Ian Kent

That's a bit of a surprise, I didn't expect it to break other maps. I'll check into that before doing anything else.

Does the /home mount also break if you don't use /mythtv map?

Yes, I just rebooted to verify a clean situation. /home doesn't work any more. Some paths work and some don't.

Michael