Operating System - Linux
1753726 Members
4681 Online
108799 Solutions
New Discussion юеВ

Re: Finding SAN disks device to mount

 
SOLVED
Go to solution
Ian Derringer
Regular Advisor

Finding SAN disks device to mount

Greetings,
I am running RH AS 3.0 with SAN MSA1000 series environment.

Here is the ouput:
Host: scsi2 Channel: 00 Id: 00 Lun: 00
Vendor: COMPAQ Model: MSA1000 Rev: 4.82
Type: Unknown ANSI SCSI revision: 04
Host: scsi2 Channel: 00 Id: 00 Lun: 01
Vendor: COMPAQ Model: MSA1000 VOLUME Rev: 4.82
Type: Direct-Access ANSI SCSI revision: 04

How do I know which scsi device to fdisk and mount?? Please help!!

Thank you in advance.
Ian D.
7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: Finding SAN disks device to mount

san presents devices to the system that appear as scsi.

You need to check that the world wide name on the san, assigned to the LUN matches the world wide name of the fiber card on the Linux box trying to mount the LUN.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Marco_113
Frequent Advisor
Solution

Re: Finding SAN disks device to mount

try to see /proc/scsi/scsi
xyko_1
Esteemed Contributor

Re: Finding SAN disks device to mount

Hi Ian,

try dmesg | grep disk

They may appear as sd? where ? is a or b or c...

regards,
xyko
Ian Derringer
Regular Advisor

Re: Finding SAN disks device to mount

Hi,
It came up as sda. What do I need to do next? Can I do fdsik on device sda?

Thanks!!
Ian
xyko_1
Esteemed Contributor

Re: Finding SAN disks device to mount

Hi Ian,

now you have to do all the necessary steps to get this device ready to use.

you have to format one or more partitions using fdisk,
you have to make a file system for each partitions you have created (mke2fs to create ext2 or ext3 file systems);
and you have to create one mount point for each partition and mount them;

don't forget to update your /etc/fstab to get the partitions mounted on boot.

hope it helps,
xyko
Ian Derringer
Regular Advisor

Re: Finding SAN disks device to mount

Xyko - Do I do fdisk for device sda or everything underneath it? I just want to make once big volume 800GB, is that possible? Do you know anything about LVM or virtual array?

Thanks for your help!
xyko_1
Esteemed Contributor

Re: Finding SAN disks device to mount

Hi Ian,

It's possible to make a filesystem with all the space avaiable on sda.

you just have to call fdisk /dev/sda and add one single primary partition, that will be called /dev/sda1. You will set the begining and ending off the partition with the default pointed by fdisk. Then you write the partition table and exit fdisk.

Now you are ready to make our new filesystem.

LVM is a very good thing because gives you more flexibility to enlarge end reduce filesystems. But it's a litle bit more dificult to manage them regular filesystems. I can't give all knoledge that you need here in few words. You have to stud a litle and Red Hat manuals is a good point to it.

Virtual arrays is another good way to create very large filesystems and has others uses also regarding availability. You have to read about software-raid to know about that. www.tldp.org has a good how-to material about that.

Please try to understand a litle bit about those things and we talk about your doubts.

regards,
xyko