LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
 
Search this Thread
Old 12-19-2007, 04:48 PM   #1
VeeDubbs
Member
 
Registered: Feb 2006
Location: Wisconsin
Distribution: SuSe 10. Ubuntu
Posts: 47

Rep: Reputation: 15
SAN Partition on Linux


Okay - not sure if this is the right place to be asking this but I'm stumped!

I have a SLES 10 SP1 box and an IBM Fast T600 SAN. I made a 200GB partition on the SAN and I mapped it to the server using Storage Manager 9. Everything looks good in Storage Manager as far as I know.

Now, how do I go about getting this partition mounted on my SLES box? Should it just appear there? I've rebooted hoping SLES would find it upon reboot - but that did not work. Am I missing a simple step?

I know that's kind of a vague description - but I'm kind of new to the SAN world. Hope someone can lend a few ideas. Thanks!
 
Old 12-20-2007, 12:39 AM   #2
nolinuxnollife
Registered User
 
Registered: Jan 2005
Location: india
Distribution: RedHat and Madrake
Posts: 55
Blog Entries: 1

Rep: Reputation: 15
You should have client applications (typically a driver - software) that can recognise the san FS as a local disk..plz chek the complete documentation
 
Old 12-23-2007, 10:00 AM   #3
kiranbyk
LQ Newbie
 
Registered: Jan 2007
Posts: 23

Rep: Reputation: 16
Are you using FC or iscsi for mapping the storage to the server?????

If you are using iscsi the OS comes with the iscsi-utils package which recognizes the disk if properly configured.

If you are using FC, check the zoning in the FC switches and the WWN's.
 
1 members found this post helpful.
Old 12-25-2007, 09:05 AM   #4
VeeDubbs
Member
 
Registered: Feb 2006
Location: Wisconsin
Distribution: SuSe 10. Ubuntu
Posts: 47

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by kiranbyk View Post
Are you using FC or iscsi for mapping the storage to the server?????

If you are using iscsi the OS comes with the iscsi-utils package which recognizes the disk if properly configured.

If you are using FC, check the zoning in the FC switches and the WWN's.
Thanks guys! I am using FC for mapping. Now that you know this - assuming all zones and WWNs are correct - should it just show up in the filesystem?
 
Old 12-27-2007, 08:06 AM   #5
ech310n
Member
 
Registered: Jan 2004
Distribution: RHEL, Fedora
Posts: 46

Rep: Reputation: 16
Provided that your SAN LUN has been setup and presented to your host correctly, and you've rebooted to reload your Fibre Channel HBA drivers, you should now be able to see the device listed by doing

cat /proc/scsi/scsi

Normally the new device will show up as sd(next available letter) so if your internal hard disk is sda, then your SAN disk should be sdb. If that appears to be the case then you can check this by running:

fdisk -l /dev/sdb

It should say that it doesn't contain a valid partition table, but show you a size around 200GB. Then you'll just need to partition it (again using fdisk) and then either slap a filesystem on it and mount it, or pvcreate it, add it to an LVM volume group and then create yourself a logical volume or volumes, format and mount them.
 
1 members found this post helpful.
Old 01-02-2008, 03:42 PM   #6
cjcox
Member
 
Registered: Jun 2004
Posts: 305

Rep: Reputation: 42
rescan-scsi-bus.sh -w -l

That should find newly exposed LUNs on your fabric (if device is actually visible via zoning and LUN masking).

Optionally the -r option can be added to dynamically remove devices that disappeared because they are no longer visible.
 
1 members found this post helpful.
Old 01-04-2008, 04:40 PM   #7
VeeDubbs
Member
 
Registered: Feb 2006
Location: Wisconsin
Distribution: SuSe 10. Ubuntu
Posts: 47

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by cjcox View Post
rescan-scsi-bus.sh -w -l

That should find newly exposed LUNs on your fabric (if device is actually visible via zoning and LUN masking).

Optionally the -r option can be added to dynamically remove devices that disappeared because they are no longer visible.
Thanks for all the replies guys!

cjcox - I do that rescan command and at the end it says it found 2 new devices. Where exactly would I find these?
 
Old 01-05-2008, 06:02 PM   #8
cjcox
Member
 
Registered: Jun 2004
Posts: 305

Rep: Reputation: 42
If you want to use old style names (NOT recommended)... do an lsscsi (part of the scsi rpm)

But, you'd do better to either places those devices under LVM control (recommended) or use their non-persistent names (once partitioned, etc.) ... look at /dev/disk/by-id/*

You can learn a bit more on this by looking at a doc I just wrote at http://www.ntlug.org/Articles/LVM
 
Old 06-24-2009, 06:23 AM   #9
smartyshan
LQ Newbie
 
Registered: Jun 2007
Location: Riyadh,KSA
Distribution: Redhat,Ubuntu,Solaris
Posts: 24

Rep: Reputation: 15
Dear All aboves,

I have a little confusion.

I configured SAN,HBA,LUNs etc etc..

It shows /dev/sdc1 and /dev/sdc2 hard drive partitions and its size and seems all good.

The question is that how I mount this partition? remeber I am using this partition as replica for some exercise or in other words it already have data in it, and we are not able to format it.

while "mount" command giva slap that I must have to format.


long story short: I want to mount SAN partitions without loosing its data.

Last edited by smartyshan; 06-24-2009 at 06:24 AM.
 
Old 05-29-2011, 09:20 AM   #10
magikey
LQ Newbie
 
Registered: Feb 2011
Posts: 1

Rep: Reputation: 0
Question

Quote:
Originally Posted by ech310n View Post
Provided that your SAN LUN has been setup and presented to your host correctly, and you've rebooted to reload your Fibre Channel HBA drivers, you should now be able to see the device listed by doing

cat /proc/scsi/scsi

Normally the new device will show up as sd(next available letter) so if your internal hard disk is sda, then your SAN disk should be sdb. If that appears to be the case then you can check this by running:

fdisk -l /dev/sdb

It should say that it doesn't contain a valid partition table, but show you a size around 200GB. Then you'll just need to partition it (again using fdisk) and then either slap a filesystem on it and mount it, or pvcreate it, add it to an LVM volume group and then create yourself a logical volume or volumes, format and mount them.
Good day,

How this is done on RHEL????
 
Old 05-29-2011, 10:40 AM   #11
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
@magikey: First, the snippet you quoted is exactly how it's done on RHEL4/5. Second, please start a new thread (referencing this one, if needed).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
SAN Partition and Device Drive Problem jaz_comp Linux - Hardware 2 02-22-2007 02:07 PM
SAN Partition and Device Drive Problem jaz_comp Linux - General 1 02-22-2007 03:39 AM
Linux partition in SAN (SCSI) antonioxcom Linux - General 5 07-07-2004 01:13 PM


All times are GMT -5. The time now is 03:54 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration