How do I create a partition on our SAN, RHEL Qlogic and EMC
Linux - EnterpriseThis forum is for all items relating to using Linux in the Enterprise.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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"
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.
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)
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.