[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] Bad disk?



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.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]