View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 13 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Wed Jan 14, 2004 8:24 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
I think this is probably trival to do compared to using samba to allow win32 machines to read/write directories (an issue on which I authored a howto on)... I'd be very thankful if someone would write a howto detailing stepwise how one can share a directory on a myth masterserver box, and then mount this share on a slave mythbox so that the slave's mythvideo module can use the files :)

on master: share out the /myth/video read only
on slave: mount the share in the local /myth/video

Thanks in advance :)

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 14, 2004 9:14 pm 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
http://www.mythtv.org/docs/mythtv-HOWTO-21.html#ss21.9

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 25, 2004 8:46 am 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
I followed the instructions on that link, and relevent files displayed below
Also, i did a

$ mkdir /myth/video/master
on the frontend's machine since that is where I would like to mount the NFS share from the mater's HD

Can you see a reason why I cannot get the nfs share to work? (I tried doing a /etc/fstab -a after editing it but I got:

bash: /etc/fstab: Permission denied)

Backend's /etc/exports:

# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
/myth/video (r)

Frontend's /etc/fstab:

# /etc/fstab: filesystem table.
#
# filesystem mountpoint type options dump pass
/dev/hda1 / ext3 defaults,errors=remount-ro 0 1
/dev/hda3 /cache auto defaults,auto 0 2
/dev/hda4 /myth auto defaults,auto 0 2

proc /proc proc defaults 0 0
/dev/fd0 /floppy vfat defaults,user,noauto,showexec,umask=022 0 0
/dev/cdrom /cdrom iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/dvd /dvd iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/cdaudio /cdaudio iso9660 defaults,ro,user,noexec,noauto 0 0

# Added for NFS
mythtv_server:/myth/video /myth/video/master nfs rsize=8192,wsize=8192,soft,nfsvers=3

# Added by KNOPPIX
/dev/hda2 none swap defaults 0 0

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 25, 2004 1:10 pm 
Offline
Joined: Mon Nov 17, 2003 8:59 am
Posts: 206
Location: Michigan
graysky wrote:
I tried doing a /etc/fstab -a after editing it but I got:
bash: /etc/fstab: Permission denied)


That should be exportfs -a

Also, the nfs stuff on R4 is busted. Try updating with apt-get.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 25, 2004 3:24 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
davem wrote:
Also, the nfs stuff on R4 is busted. Try updating with apt-get.


Which components do you reommend updating? Here are the options apt-get
gives me:

nfs-client nfs-kernel-server nfs-user-server nfsbooted
nfs-common nfs-server nfsboot

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 25, 2004 6:53 pm 
Offline
Joined: Mon Nov 17, 2003 8:59 am
Posts: 206
Location: Michigan
Just took a peek in my /var/lib/dpkg/info dir and see that I updated nfs-common and nfs-kernel-server. :)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 25, 2004 6:54 pm 
Offline
Joined: Tue Jan 06, 2004 1:21 am
Posts: 21
 
apt-get install nfs-kernel-server

apt-get install nfs-common
 


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 25, 2004 9:02 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
OK... did that. Also began reading the NFS HOWTO and it seems as though I need to:

Quote:
The daemons are all part of the nfs-utils package, and may be either in the /sbin directory or the /usr/sbin directory.

If your distribution does not include them in the startup scripts, then then you should add them, configured to start in the following order:

rpc.portmap
rpc.mountd, rpc.nfsd
rpc.statd, rpc.lockd (if necessary), rpc.rquotad


When I do a # rpcinfo -p I get:

root@mythtv-bedroom:/myth/video/master# rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper

So it's no wonder when I do a:

# mount 192.168.0.4:/myth/video/ /myth/video/master

I get:

mount: RPC: Program not registered

So I'm missing all of the deamons and have no idea how to add them. Anyone?

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 25, 2004 10:01 pm 
Offline
Joined: Mon Nov 17, 2003 8:59 am
Posts: 206
Location: Michigan
Is nfsd running on the master?

ps -ef | grep nfs


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 26, 2004 6:07 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
mythtv@mythtv_server:~ $ ps -ef | grep nfs
root 352 1 0 17:50 ? 00:00:00 [nfsd]
root 353 1 0 17:50 ? 00:00:00 [nfsd]
root 354 1 0 17:50 ? 00:00:00 [nfsd]
root 357 1 0 17:50 ? 00:00:00 [nfsd]
root 358 1 0 17:50 ? 00:00:00 [nfsd]
root 359 1 0 17:50 ? 00:00:00 [nfsd]
root 360 1 0 17:50 ? 00:00:00 [nfsd]
root 361 1 0 17:50 ? 00:00:00 [nfsd]
mythtv 579 563 0 19:06 pts/0 00:00:00 grep nfs

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 27, 2004 2:07 am 
Offline
Joined: Tue Jan 06, 2004 1:21 am
Posts: 21
Then, as root, to get things started:

/etc/init.d/nfs-kernel-server start
/etc/init.d/nfs-common start

(They don't start at boot.)


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 31, 2004 10:36 am 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
NFS is still broken on unstable. Get it from stable like this:
apt-get -t stable install nfs-common nfs-kernel-server

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 31, 2004 3:11 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
Quote:
root@mythtv_server:/home/mythtv# apt-get -t stable install nfs-common nfs-kernel-server
Reading Package Lists... Done
Building Dependency Tree... Done
Sorry, nfs-common is already the newest version.
Sorry, nfs-kernel-server is already the newest version.
0 packages upgraded, 0 newly installed, 0 to remove and 392 not upgraded.
root@mythtv_server:/home/mythtv#


Even after staring both manually and doing a # exportfs -ra still no luck

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 68 guests


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 post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu