NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: iscsifs
Stephen,
Thanks for the note.
Stephen Borrill writes:
> > amd64# iscsifs -v -h 127.0.0.1 -u nobody /mnt
> > [no response of any kind on the terminal]
>
> Correct operation is "no response of any kind on the terminal" - iscsifs
> does not detach from the terminal. On another terminal type mount to see
> what, if anything, has actually happened.
This was the point I was missing. Thanks. By the way, would it not
be useful to have some command line option that allowed iscsifs to go
into the background?
When I run iscsifs on the amd64/5.0.2 machine, I do in fact see stuff
under /mnt on another terminal. Thus, something changed between 5.0
and 5.0.2 to make this work and 5.2 may not be required.
# mount
/dev/puffs on /mnt type puffs|refuse:mnt (nosuid, nodev)
[ ... other stuff deleted ... ]
# ls -lR /mnt
total 64
drwxr-xr-x 2 root wheel 512 Aug 2 09:06 127.0.0.1
/mnt/127.0.0.1:
total 64
drwxr-xr-x 2 root wheel 512 Aug 2 09:06 target0
/mnt/127.0.0.1/target0:
total 448
lrw-r--r-- 1 root wheel 9 Aug 2 09:06 hostname -> 127.0.0.1
lrw-r--r-- 1 root wheel 9 Aug 2 09:06 ip -> 127.0.0.1
lrw-r--r-- 1 root wheel 16 Aug 2 09:06 product -> NetBSD iSCSI
-rw-r--r-- 1 root wheel 104857600 Aug 2 09:06 storage
lrw-r--r-- 1 root wheel 43 Aug 2 09:06 targetname ->
iqn.1994-04.org.netbsd.iscsi-target:target0
lrw-r--r-- 1 root wheel 8 Aug 2 09:06 vendor -> NetBSD
lrw-r--r-- 1 root wheel 4 Aug 2 09:06 version -> 0
Interestingly, if I use "-h localhost" in the iscsifs command it
fails, although other hostnames work fine and localhost is resolved by
the nameserver.
Now, I'm guessing that the current way to mount iscsifs as something
useful is to write up a script to run during the boot process that
will:
- run iscsifs in the background
- run vnconfig on the exposed storage
- mount /dev/vnd?a somewhere
and do the reverse on shutdown.
Are there any such scripts out there that are trying to do this using
the facilities of rc.subr so that they can be used within /etc/rc.d?
Thanks again for your help. At least now I understand what is
supposed to happen.
Cheers,
Brook
Home |
Main Index |
Thread Index |
Old Index