[solved] Mount NFS shares to Qnap

Discussion about using NAS on Linux and Unix OS.

[solved] Mount NFS shares to Qnap

Postby delos » Fri Aug 10, 2012 10:04 pm

Hi,

I have a qnap 859 pro+ and I would like to mount some nfs shares from another server to the qnap. The qnap has the possibilty to create virtual discs with iSCSI.
Is something possible like this for nfs shares? I would like to acces these shares via the qnap.

Regards,
delos
Last edited by delos on Thu Sep 06, 2012 3:44 am, edited 1 time in total.
delos
Starting out
 
Posts: 27
Joined: Sat Jul 21, 2012 5:00 pm
NAS Model: TS-859 Pro+

Re: Mount NFS shares to Qnap

Postby kitaets » Sat Aug 11, 2012 2:22 am

Your question is unclear. Do you need iSCSI or NFS mount? What have you already tried and have no success?
kitaets
New here
 
Posts: 6
Joined: Thu Jun 02, 2011 2:53 am
NAS Model: SS-839 Pro

Re: Mount NFS shares to Qnap

Postby delos » Sat Aug 11, 2012 2:51 am

Hi,

I have satellite receiver where I save all my recordings on. The files on the receivers internal hard-disk can be accessed via nfs or SAMBA file systems.
I want to mount the nfs shares of the receiver to a network folder of the qnap. The receiver runs on linux but does not support iSCSI.
I found something about mounting nfs shares to qnaps in the inet but in most cases this led to a non-bootable system. Those people tried to mount the shares in telnet with mount -nfs ....

Sorry for being unclear. Hope it got better ;-)
delos
Starting out
 
Posts: 27
Joined: Sat Jul 21, 2012 5:00 pm
NAS Model: TS-859 Pro+

Re: Mount NFS shares to Qnap

Postby kitaets » Sat Aug 11, 2012 4:47 am

Do you really want to mount the nfs shares? QNAP has an out-of-the-box ability of mounting SAMBA shares to a network folder - I mean folder aggregation - it's very useful.
If we are talking about accessing recordings then we don't need iSCSI anyway.
kitaets
New here
 
Posts: 6
Joined: Thu Jun 02, 2011 2:53 am
NAS Model: SS-839 Pro

Re: Mount NFS shares to Qnap

Postby pwilson » Sat Aug 11, 2012 4:53 am

kitaets wrote:Do you really want to mount the nfs shares? QNAP has an out-of-the-box ability of mounting SAMBA shares to a network folder - I mean folder aggregation - it's very useful.
If we are talking about accessing recordings then we don't need iSCSI anyway.


There are multiple possible ways to connect a Linux machine to the NAS, but using SAMBA shares is by far the most reliable. Gigabit all around on this network. To keep it easy to manage, I simply create empty folders in the "/share" directory on my Ubuntu box, that I can mount to.

I create subfolders within "/share" called "Public", "Download", "Multimedia", etc. I then simply mount my NAS shares onto these directories by modifying my "/etc/fstab" on my Ubuntu box to include the following lines:

My /etc/fstab file on my Ubuntu:
Code: Select all
//nasty2/Multimedia     /share/Multimedia   cifs  defaults,rw,credentials=/etc/nas-credentials
//nasty2/Public         /share/Public       cifs  defaults,rw,credentials=/etc/nas-credentials
//nasty2/Download       /share/Download     cifs  defaults,rw,credentials=/etc/nas-credentials
//nasty2/Web            /share/Web          cifs  defaults,rw,credentials=/etc/nas-credentials
//nasty2/Public         /share/Public       cifs  defaults,rw,credentials=/etc/nas-credentials


I then create my /etc/nas-credentials as follows:

Code: Select all
username=admin
password=DjD05$@Fwpfd


I leave my /etc/nas-credentials file with 600 for file permissions, so that other Ubuntu users can't see my username/password used to mount the NAS shares. Ubuntu "automounts" all my share automatically at every boot. This method is easy to setup, and it means I can access my "Multimedia" on all my machines by simply doing a "cd /share/Multimedia". It doesn't matter whether I'm on my NAS or my Ubuntu boxes, my "Multimedia" always lives in "/share/Multimedia" on all of my machines, including my NAS. (This makes it very easy to manage everything).

Patrick M. Wilson
Victoria, BC Canada
QNAP TS-419P+ w/ 4 * Seagate Barracuda 2TB 5900rpm (RAID5) - FW: QTS 4.0.1 Build0606
Forums: View My Profile - Search My Posts - Send Private Message - View My Photo - Top Community Forum Posters
QNAP: Turbo NAS User Manual - QNAP Wiki - QNAP Tutorials - QNAP FAQs - HowTos - QNAP Video Library
User avatar
pwilson
Moderator
 
Posts: 4268
Joined: Fri Mar 06, 2009 11:20 am
Location: Victoria, BC, Canada
NAS Model: TS-419P+

Re: Mount NFS shares to Qnap

Postby delos » Sat Aug 11, 2012 7:56 pm

Hi,

Thanks for your answers. "Folder aggregation" sounds good since a SAMBA-server is running on my sat-receiver. I haven't thought of it before. Though, I won't find the share I created following this description: http://web.qnap.com/pro_application.asp?ap_id=226
I created a SAMBA-share on my receiver "media" but I dont even see the "ShareRoot" in the Web File Manager.

Regards,
delos

[edit]
I just used windows explorer to access the qnap. There, I can see "ShareRoot". Still, in the web file manager I can't find it. Furthermore I cannot access ShareRoot with Windows-explorer though I set the rights to everything and everyone.
delos
Starting out
 
Posts: 27
Joined: Sat Jul 21, 2012 5:00 pm
NAS Model: TS-859 Pro+

Re: Mount NFS shares to Qnap

Postby delos » Sun Aug 12, 2012 10:40 pm

Hi,

After some research I found that these shares can only be accessed with the explorer and not the web file manager. Is there a workaround?

Regards,
delos
delos
Starting out
 
Posts: 27
Joined: Sat Jul 21, 2012 5:00 pm
NAS Model: TS-859 Pro+

Re: Mount NFS shares to Qnap

Postby schumaku » Sun Aug 12, 2012 11:06 pm

Aggregation is a SMABA functionality - in fact it was invented by Micosoft as DFS (Distributed FIle System) - folder aggregation is intended to aggregate shares on diffrent sorevers, typically sored on different locations, into one accessible on a central place.
User avatar
schumaku
Guru
 
Posts: 22554
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
NAS Model: TS-x79 Pro

Re: Mount NFS shares to Qnap

Postby delos » Sun Aug 12, 2012 11:08 pm

So there is no way to access these shares with the web file manger?

Grüsseli,
delos
delos
Starting out
 
Posts: 27
Joined: Sat Jul 21, 2012 5:00 pm
NAS Model: TS-859 Pro+

Re: Mount NFS shares to Qnap

Postby schumaku » Mon Aug 13, 2012 12:26 am

It's not a share. The Web File Manager does not access Microsoft File Shares - but the effective file system instead - just like NFS, ftp, AFP, ...
User avatar
schumaku
Guru
 
Posts: 22554
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
NAS Model: TS-x79 Pro

Re: Mount NFS shares to Qnap

Postby selvakarthi » Mon Aug 13, 2012 8:34 pm

how to copy a file from linux to windows share?

Regards,
Selva
http://www.chennaipackersmovers.com/ban ... movers.php
selvakarthi
First post
 
Posts: 1
Joined: Mon Aug 13, 2012 8:32 pm
NAS Model: TS-412


Return to Linux & Unix (NFS)

Who is online

Users browsing this forum: No registered users and 0 guests