From: Mauricio Tavares <raubvogel@gmail.com>
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] Bad disk?
Date: Thu, 11 Nov 2010 13:39:28 -0500 [thread overview]
Message-ID: <4CDC3860.7000203@gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.64.1011111140550.12331@bmsred.bmsi.com>
On 11/11/2010 11:46 AM, Stuart D. Gathman wrote:
> 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"
raub@strangepork:~$ sudo lvs export
/dev/dm-0: read failed after 0 of 4096 at 0: Input/output error
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
vms export -wi-a- 400.00g
raub@strangepork:~$
> 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.
>
prev parent reply other threads:[~2010-11-11 18:39 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
2010-11-11 18:39 ` Mauricio Tavares [this message]
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=4CDC3860.7000203@gmail.com \
--to=raubvogel@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.