LinHES Forums http://forum.linhes.org/ |
|
request: howto on making LINUX shares for other mythboxes http://forum.linhes.org/viewtopic.php?f=11&t=513 |
Page 1 of 1 |
Author: | graysky [ Wed Jan 14, 2004 8:24 pm ] |
Post subject: | request: howto on making LINUX shares for other mythboxes |
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 ![]() |
Author: | cesman [ Wed Jan 14, 2004 9:14 pm ] |
Post subject: | |
http://www.mythtv.org/docs/mythtv-HOWTO-21.html#ss21.9 |
Author: | graysky [ Sun Jan 25, 2004 8:46 am ] |
Post subject: | |
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 |
Author: | davem [ Sun Jan 25, 2004 1:10 pm ] |
Post subject: | |
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. |
Author: | graysky [ Sun Jan 25, 2004 3:24 pm ] |
Post subject: | |
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 |
Author: | davem [ Sun Jan 25, 2004 6:53 pm ] |
Post subject: | |
Just took a peek in my /var/lib/dpkg/info dir and see that I updated nfs-common and nfs-kernel-server. ![]() |
Author: | mike [ Sun Jan 25, 2004 6:54 pm ] |
Post subject: | |
apt-get install nfs-kernel-server apt-get install nfs-common |
Author: | graysky [ Sun Jan 25, 2004 9:02 pm ] |
Post subject: | |
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? |
Author: | davem [ Sun Jan 25, 2004 10:01 pm ] |
Post subject: | |
Is nfsd running on the master? ps -ef | grep nfs |
Author: | graysky [ Mon Jan 26, 2004 6:07 pm ] |
Post subject: | |
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 |
Author: | mike [ Tue Jan 27, 2004 2:07 am ] |
Post subject: | |
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.) |
Author: | cesman [ Sat Jan 31, 2004 10:36 am ] |
Post subject: | |
NFS is still broken on unstable. Get it from stable like this: apt-get -t stable install nfs-common nfs-kernel-server |
Author: | graysky [ Sat Jan 31, 2004 3:11 pm ] |
Post subject: | |
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 |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |