linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stan Hoeppner <stan@hardwarefreak.com>
To: mashtin.bakir@gmail.com
Cc: linux-raid@vger.kernel.org
Subject: SOLVED Re: vess raid stripes disappear
Date: Fri, 10 May 2013 02:55:34 -0500	[thread overview]
Message-ID: <518CA7F6.4000000@hardwarefreak.com> (raw)
In-Reply-To: <CANSWD74J9HZCbE4ba1Y5UMRQjjDDZiof21-tUJOKdJmHBvuyXw@mail.gmail.com>

On 5/9/2013 6:29 AM, mashtin.bakir@gmail.com wrote:
> I have an interesting problem with a Vessraid 1830s.
> We have a few of these that work fine but one seems
> to lose its filesets. The only difference between the
> good ones and the bad one is that the bad one has firmware
> version 3.06 while the good ones are at 3.05 (This may
> not be relevant).

It's not a firmware problem Mashtin.  The problem here is incomplete
education.  More accurately, the problem is that you've confused
concepts of hardware RAID and Linux software RAID.  I will attempt to
help you separate these so you understand the line in the sand
separating the two.

> Here's what happens. If I plug the raid into a 32 bit
> RHEL5 box with large files enabled, syslog does pick
> it up:
> 
> kernel: Vendor: Promise  Model:VessRAID 1830s Rev: 0306
> Type: Direct-Access     ANSI SCSI revision: 05
> SCSI device sdc:2929686528 2048-byte hdwr sectors (5999998 MB)

The kernel sees a single 6TB SCSI device/LUN presented by the Promise
array..

> Using the web gui, I can carve out partitions,

The Promise web gui doesn't create partitions.  That's the job of the
operating system.  What it does allow you to do is carve out multiple
virtual drives from a single RAID set and export them as individual LUNs.

> I make three stripes across 4 disks of 2Terabytes each
> using RAID5.

This is not possible with the Promise firmware.  I think you're simply
using incorrect terminology here.  According to your dmesg output above
you have created a single hardware RAID5 array of 4 disks, one 6TB
virtual drive, and exported it as a single LUN.

...
> I then use gnu-parted (v3.1) to make the
> filesets:

parted doesn't create "filesets".  It creates partitions.  What are
"filesets"?

> mklabel gpt
> mkpart primray 0 0

Ok so you created a primary partition.

> set 1 raid on

^^^^^^^^^^^^^^^

THIS IS THE PROBLEM.  "set 1 raid on" is used exclusively with Linux
software RAID.  What this does is tell the Kernel to look for a software
RAID superblock on the partition and auto start the array.  You are not
using md/RAID, but hardware RAID, so the superblock doesn't exist.  This
is the source of your problem.  This is where you have confused hardware
and software RAID concepts.

> I create the fileset using

Ok so when you say "fileset" you actually mean "file system".

> mkfs.ext3 -m0 /dev/sdc1
> I can then mount the FS and write to it.
> 
> If I either reboot the RAID or the host, the FS disappears
> ie cat/proc/partitions   shows only sdc, not sdc1.
> If I go back into parted, the label is intact
> But I can't even mkfs without re-creating the label/partition,
> in wich case I get:

This is a direct result of "set 1 raid on" as explained above.  You
should see other error messages in dmesg about no superblock being found.

> ...Have been written, but we have been
> unable to
> inform the kernel of the change, probably because it/they are in use.  As a
> result, the old partition(s) will remain in use.  You should reboot now
> before
> making further changes.
> Ignore/Cancel? i

Clearing the parted RAID flag on the partition should fix your problem,
assuming you haven't done anything else wonky WRT software RAID and this
partition that hasn't been presented here.

Always remember this:  Any time your see "RAID" setup or configuration
referenced in Linux documentation or cheat sheets on the web, it is
invariably referring to a kernel software function, either md/RAID,
dm-raid, etc.  It is never referring to hardware RAID devices.  If you
have a hardware RAID device you will never configure anything RAID
related in Linux, whether it be parted, grub, md, dm, etc.

-- 
Stan



  parent reply	other threads:[~2013-05-10  7:55 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-09 11:29 vess raid stripes disappear mashtin.bakir
2013-05-09 14:59 ` Keith Keller
2013-05-09 15:10   ` Roman Mamedov
2013-05-09 15:32     ` Keith Keller
2013-05-09 15:41       ` Adam Goryachev
2013-05-09 16:23       ` David Brown
2013-05-09 21:33         ` Keith Keller
2013-05-09 21:27       ` NeilBrown
2013-05-10  7:55 ` Stan Hoeppner [this message]
2013-05-10 12:44   ` SOLVED " mashtin.bakir
2013-05-10 14:17     ` Stan Hoeppner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=518CA7F6.4000000@hardwarefreak.com \
    --to=stan@hardwarefreak.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=mashtin.bakir@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).