LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-11-2009, 10:20 PM   #1
RobertSubnet
LQ Newbie
 
Registered: Jun 2009
Location: Phoenix, AZ
Distribution: CentOS
Posts: 11

Rep: Reputation: 0
CentOS: add SAN directory to local file system


Hello all. This is a great site and I have learned a lot just by lurking.

I have a CentOS 5.3 box and would like to add a directory on a remote SAN device to my local file system.

Using parted, what would the device name be to create the partition?

The SAN box has an IP address of 192.168.1.200

Can this even be done?

Thanks,
~Robert
 
Old 06-11-2009, 10:23 PM   #2
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 70
I wouldn't use parted, to be fair; what fs type are you trying to mount? You could use Samba if a Windows Partition, NFS if a *NIX Partition, SSHFS if needed.
 
Old 06-12-2009, 12:03 AM   #3
RobertSubnet
LQ Newbie
 
Registered: Jun 2009
Location: Phoenix, AZ
Distribution: CentOS
Posts: 11

Original Poster
Rep: Reputation: 0
Right now I do not have the partition defined. So anything that *nix recognizes would be fine. This is really an exercise in "lets see if I can do this..."
 
Old 06-12-2009, 12:10 AM   #4
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 70
Okay, well unless you do something RAID based, or similar, you'll need an existing partition on an existing system/box. This is a piece of the proverbial really, the partition obviously has to have an FS on it to even begin to save files on.

You'll struggle to get a remote disk recognised as a raw device on your machine, your best bet by far is to use something like nfs or samba to mount it over a network. For me:

Remote machine has ext3 FS and the relelvant nfs server modules in the kernel. The local machine has a mount point and nfs client modules in the kernel. Mount as per
Code:
mount remotemachine:/path/to/share/directory /local/mount/point
ls /local/mount/point
<THE REMOTE FILES HERE>
The file /etc/exports is used for nfs sharing; there are suggestions and samples in here before you edit it.

Thats how I would go for it. That being said, don't use NFS outside a network, it is insecure over the internet

Last edited by jamescondron; 06-12-2009 at 12:11 AM. Reason: Accidentally hit 'save'
 
Old 06-12-2009, 12:32 PM   #5
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Where is the remote SAN? 192.168.1.200 is an RFC 1928 IP -- not routable across the 'net.

Just curious, too: what type of SAN and how are you managing it?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How-To Delete File/Directory in CentOS console tyyp88 Linux - Newbie 13 12-15-2013 07:35 AM
Thank every one. PATHCHANGER sript file Add/Remove directory to path! icecoolcorey Programming 1 06-13-2008 01:42 AM
Reading CentOS file system g7ibby Linux - General 3 03-08-2007 03:07 PM
Local Disk VS SAN. mmars Linux - Hardware 0 05-05-2006 10:35 AM
How do I add a local directory as an YaST repository. simjii SUSE / openSUSE 4 04-03-2006 10:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration