How Map a NAS Device to a Folder

Issues related to hardware problems
Post Reply
blakkguru
Posts: 3
Joined: 2015/12/23 10:53:31

How Map a NAS Device to a Folder

Post by blakkguru » 2015/12/23 11:31:01

I need help please ...

I am developing a web based PHP file manager on an intranet.
I would want to use 2 NAS devices ... 1 for raw files and the other for completed works.

Question:
Is there a way to mount and mirror these NAS drives to specific web directories on the intranet?
For example:
http://intranet.com/raw --- to NAS 1 for raw files
http://intranet.com/done --- to NAS 2 for completed work

I actually need the two NAS to list as folders [raw and done] under (as sub-directories or folders) WWW root folder.
Any ideas on how to make that work on Linux CentOS?

Thank you.

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: How Map a NAS Device to a Folder

Post by aks » 2015/12/24 20:10:59

NAS does not provide block devices!
If you're gonna use NAS, use NFS (for ease).

blakkguru
Posts: 3
Joined: 2015/12/23 10:53:31

Re: How Map a NAS Device to a Folder

Post by blakkguru » 2016/01/05 07:13:43

aks wrote:NAS does not provide block devices!
If you're gonna use NAS, use NFS (for ease).
Hello Aks
Thanks for the response.
However, I am very lost with your reply ... I am quite a newbie and can't really understand what you mean by "NAS does not provide block devices!" Can you please explain further?
Also, do NAS devices provide NFS services or functionality?

This is very crucial for a project I'm working on
HELP NEEDED PLEASE!!!

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: How Map a NAS Device to a Folder

Post by aks » 2016/01/05 17:26:12

I'm assuming you wish to provide raw (block level) access.
NAS will provide file level access - i.e.: you can access files and directories over the network (with say NFS). You present the storage as a file protocol (NFS/CIFS etc).
SAN or iSCSI will provide blocks (raw devices) and not really care about the disk format (sort of) and the files stored there. You present the storage as a SCSI device.

blakkguru
Posts: 3
Joined: 2015/12/23 10:53:31

Re: How Map a NAS Device to a Folder

Post by blakkguru » 2016/01/05 23:11:57

aks wrote:I'm assuming you wish to provide raw (block level) access.
NAS will provide file level access - i.e.: you can access files and directories over the network (with say NFS). You present the storage as a file protocol (NFS/CIFS etc).
SAN or iSCSI will provide blocks (raw devices) and not really care about the disk format (sort of) and the files stored there. You present the storage as a SCSI device.

Aks, forgive me your humble student! I'm still learning to wrap my head around this.

Now if I'm getting you right, you are saying I can only access a Synology Disk Station 8-Bay (NAS) at file level and not at device level like how a USB external HDD is accessed.
If I'm correct, does that make it impossible to setup symbolic links?
http://intranet.com/raw --symbolic link-- to NAS 1 for raw files
http://intranet.com/done --symbolic link-- to NAS 2 for completed work

And would symbolic links not work as a good solution?

drk
Posts: 405
Joined: 2014/01/30 20:38:28

Re: How Map a NAS Device to a Folder

Post by drk » 2016/01/06 02:25:40

blakkguru wrote:Now if I'm getting you right, you are saying I can only access a Synology Disk Station 8-Bay (NAS) at file level and not at device level like how a USB external HDD is accessed.
Looks like 8bay Synology NAS devices will do both NFS and iSCSI.

Post Reply