linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: "Stuart D. Gathman" <stuart@bmsi.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Bad disk?
Date: Thu, 11 Nov 2010 11:46:37 -0500 (EST)	[thread overview]
Message-ID: <Pine.LNX.4.64.1011111140550.12331@bmsred.bmsi.com> (raw)
In-Reply-To: <4CDB01F8.6090202@gmail.com>

On Wed, 10 Nov 2010, Mauricio Tavares wrote:

> > Tell us exactly what you mean by "put a LVM on it".  Did you run
> > pvcreate?  vgcreate?  lvcreate? You might find the output of "pvs"
> > enlightening.  That will tell us what PVs you have created.
> > And list /dev/mapper so we know what dm-0 is, and include the output of
> > "lvs".
> >
> 	Let me put this way, I thought I did. I mean, after creating the
> partition, setting it to LVM (8e), then running
> 
> pvcreate /dev/sdc1
> vgcreate export /dev/sdc1
> lvcreate -L 400G --name vms export
> 
> I used mkfs.ext4 to create partition (on /dev/mapper/export-vms) and off I
> went. Do you think I missed a step?

Great.  Now include output of "lvs"

BTW, if you really suspect a disk error, test for it directly.
E.g., you can run

# dd if=/dev/sdc1 of=/dev/null bs=256k

to read through the partition or

# smartctl -t long /dev/sdc

To initiate a long self test of the disk (need smartmontools installed).

A brand new disk that flunks self test is indeed defective.

However, for real physical I/O errors, there would be errors logged
in /var/log/messages referencing sdc (as opposed to dm-0), so I still
think it is a logical error.

-- 
	      Stuart D. Gathman <stuart@bmsi.com>
    Business Management Systems Inc.  Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.

  reply	other threads:[~2010-11-11 16:46 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-10 14:39 [linux-lvm] Bad disk? Mauricio Tavares
2010-11-10 15:11 ` Phillip Susi
2010-11-10 17:56   ` Mauricio Tavares
2010-11-10 18:58     ` Ray Morris
2010-11-10 20:29       ` Mauricio Tavares
2010-11-10 17:41 ` Stuart D. Gathman
2010-11-10 20:35   ` Mauricio Tavares
2010-11-11 16:46     ` Stuart D. Gathman [this message]
2010-11-11 18:39       ` Mauricio Tavares

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=Pine.LNX.4.64.1011111140550.12331@bmsred.bmsi.com \
    --to=stuart@bmsi.com \
    --cc=linux-lvm@redhat.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).