LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
Search this Thread
Old 05-05-2007, 01:56 PM   #1
krigby
LQ Newbie
 
Registered: May 2007
Posts: 5

Rep: Reputation: 0
How do I create a partition on our SAN, RHEL Qlogic and EMC


My company is setting up an RHEL server to test the performance of Oracle on Linux. This is our first experience with Linux in the Enterprise and we need a little help.

We installe RHEL on a PowerEdge server with a QLogic fiber card connected to our EMC storage device and carved out a 100 GB partition on the SAN. Now we need to mount that partition somewhere, but we are stuck.

Following a reboot we have a new device /dev/sdb that we assume is the new 'disk' but when we try to mount it we get an error 'can't read superblock'.

Could someone please point me to some step by step instructions for configuring and mounting the new partition.

I have been using Linux at home for years and run a RH web/data server, but this is our/my first experience trying to connect a Linux server to the SAN. Any help would be greatly appreciated. I am committed to making this project a success in the hope that my company embraces Linux.
 
Old 05-05-2007, 02:12 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,373

Rep: Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962
Quote:
RHEL on a PowerEdge
this *is* only a trial right??

the device you'll be presenting is seen as a block device, e.g. a hard drive. you would need to partition it as you speculate. use fdisk to partition it and then format the relevant partitions, e.g. "mke2fs -j /dev/sda1"
 
Old 05-05-2007, 02:54 PM   #3
krigby
LQ Newbie
 
Registered: May 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Yes, this is only a trial, or more precisely a proof of concept.

We tried to partition it using fdisk, but got an error, I can't recall the error off the top of my head, I will try again at work on Monday and get the error message.
 
Old 05-07-2007, 10:24 AM   #4
krigby
LQ Newbie
 
Registered: May 2007
Posts: 5

Original Poster
Rep: Reputation: 0
I ran the following command:
fdisk /dev/sbd
and got:
Unable to read /dev/sdb
 
Old 05-07-2007, 11:30 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,373

Rep: Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962
does /dev/sdb actually exist? ´ls -l /dev/sdb´
 
Old 05-07-2007, 01:24 PM   #6
samash
Member
 
Registered: Jun 2006
Location: Delaware
Distribution: Redhat, Fedora
Posts: 43

Rep: Reputation: 15
I use the gui system settings --> Logical Volume manager. You'll need to pvcreate the partition.
 
Old 05-07-2007, 01:32 PM   #7
samash
Member
 
Registered: Jun 2006
Location: Delaware
Distribution: Redhat, Fedora
Posts: 43

Rep: Reputation: 15
Forgot to ask are you using power path? If so, you will need to intialize the /dev/emcpowera. Here are my cryptic notes. It failed for me but it created a device that you'll need to pvcreate.

pvcreate command failed. Command attempted: "/usr/sbin/pvcreate -M 2 /dev/emcpowera1" - System Error Message: Device /dev/emcpowera1 not found (or ignored by filtering).


The Fix: Go to the command line prompt

1. Cd /dev
2. ll emcpower(letter/number) example emcpowera1
3. pvcreate –M2 /dev/emcpower(letter/number)
 
Old 05-08-2007, 04:45 AM   #8
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
if you do have powerpath, you'll need to install EMCpower.LINUX - the rpm can be bound in powerlink.emc.com
if you have it installed, run:

powermt display dev=all

to list the LUNS in your system. if you see the emcpower devices listed and the corresponding LUN numbers, you need to rescan your fc_hosts - if you have restarted your machine, this should be done at startup.

to partition the disk, locate the emcpower devices (ie /dev/emcpowerX). and run fdisk /dev/emcpowerX.

for devices like this, consider using LVM2.
 
Old 05-08-2007, 03:05 PM   #9
rahulk
Member
 
Registered: Mar 2006
Posts: 110

Rep: Reputation: 16
Firstly, I would recommend you to use emcgrab (Powermt RPM as pointed out by one of the senior member) software since RHEL 2.1 is having some issues with pseudo device bindings.

cat /proc/scsi/qlaXXXX/0

this will give you the idea whether the LUN has been properly presented to your server or not.

/dev/emcpowera should be the first pseudo device which binds itself to /dev/sda or /dev/sdb depending upon emcpower.conf file.

You can fdisk the same without any issues.

powermt display dev=all| grep emcpower will display all the emc pseudo devices which have been automatically attached with /dev/sd* device.

Remember /dev/emcpower* are indeed the block devices but they are actually attached to /dev/sd* device.

Hope this helps!!
Rahul Khare
 
Old 05-15-2007, 11:51 AM   #10
krigby
LQ Newbie
 
Registered: May 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for all the input, I will let you know how things go.
 
Old 05-15-2007, 11:53 AM   #11
krigby
LQ Newbie
 
Registered: May 2007
Posts: 5

Original Poster
Rep: Reputation: 0
To answer Chris' question, yes /dev/sbd does exist.
 
Old 02-26-2009, 01:27 PM   #12
pradeepkumare
LQ Newbie
 
Registered: Feb 2009
Posts: 1

Rep: Reputation: 0
Thumbs up Device /dev/sdb not found (or ignored by filtering)

# pvcreate -ff /dev/sdb /dev/sdc
Device /dev/sdb not found (or ignored by filtering).
Device /dev/sdc not found (or ignored by filtering).


Solution :

Vi the /etc/lvm/lvm.conf and search for name line "filter" . Got to end of the line and remove the string "r/.*/" , and save it .


Before editing:

filter = [ "r|^/dev/mapper/.*-lv.*|", "a|^/dev/mapper/.*|", "r/.*/" ]



Should look like

filter = [ "r|^/dev/mapper/.*-lv.*|", "a|^/dev/mapper/.*|"]


Then run the pvcreate on the disks ;
 
Old 07-27-2011, 06:28 PM   #13
hahacc
Member
 
Registered: Oct 2010
Posts: 69

Rep: Reputation: 1
Post emcgrab download url

Just go to http://www.doxer.org/learn-linux/emcgrab-download-url/ to have emcgrab download.
 
Old 08-07-2011, 07:07 AM   #14
Kaustuv
LQ Newbie
 
Registered: Aug 2011
Posts: 20

Rep: Reputation: Disabled
R u sure ur backend has SATA disk? Which array u r using? Confirm first with naviseccli. It seems that u r not using multipath software. Make sure first that Zoning is proper. LUN masking is working properly. If everything goes well, u need to scan the devices from ur RHEL host. I can't remember the command. Search in EMC site.
 
  


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
RHEL 4 doesn't see SAN devices after boot bret Red Hat 1 12-20-2006 05:21 PM
How to install a DAS / SAN box on RHEL 4 nimdasmetsys Linux - Enterprise 1 09-21-2006 10:24 AM
SAN Tape Robot/Library Configuration for RHEL AS 3.0 MensaWater Linux - Hardware 1 06-07-2005 07:34 PM
SAN Tape Robot/Library Configuration for RHEL AS 3.0 MensaWater Linux - Enterprise 0 06-02-2005 09:45 AM
Operativsystem cannot detect new SAN devices using Qlogic fiber channel adapters sjensen Linux - Software 1 11-25-2003 05:51 AM


All times are GMT -5. The time now is 01:03 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration