[CentOS] LVM Input/output error

William L. Maltby

BillsCentOS at triad.rr.com
Sat Jul 8 18:13:57 UTC 2006


On Sat, 2006-07-08 at 21:01 +0300, Itay wrote:
> On Sat, 2006-07-08 at 19:48 +0300, Itay wrote:
> >
> > From: William L. Maltby <BillsCentOS at triad.rr.com>
> >
> 
> [snip]
> 
> > > <snip>


> > We are about to exceed my knowledge, as I have never used USB for
> > anything other than thumb drives on MS Win*. I believe I asked about
> > partitioning? If you do
> >
> >     sfdisk -l /dev/sdc
> > 
> > what does it show? If you do a
> >
> >    dd if=/dev/sdc2 of=/dev/null
> >
> 
> [root at frodo ~]# sfdisk -l /dev/sdc
> 
> Disk /dev/sdc: 38913 cylinders, 255 heads, 63 sectors/track
> Units = cylinders of 8225280 bytes, blocks of 1024 bytes, 
> counting from 0
> 
>     Device Boot Start     End   #cyls    #blocks   Id  System
> /dev/sdc1   *      0+    254     255-   2048256    c  W95 FAT32 (LBA)
> /dev/sdc2        255   38912   38658  310520385   83  Linux
> /dev/sdc3          0       -       0          0    0  Empty
> /dev/sdc4          0       -       0          0    0  Empty
> 
> ** I note that the file system on /dev/sdc2 is 'Linux' and not 
> 'Linux LVM'.  This is what I got, eventhough I created it with
>  	parted /dev/sdc mkpart ...

There's your problem I think. In my first post, I *guessed* that type
needed to be 86. I'm sure 83 is NG - that's a standard Linux part. With
fdisk and it's variations, there is a command to change partition type.
Do that and select the one that shows LVM 986 I think). Write and
(possibly) reboot or sfdisk -R /dev/sdc (which re-reads the partition
info. If it shows *LVM* as the type, do you pvcreate, vgcreate, etc. and
I bet you are OK.

> 
> 
> [root at frodo ~]# dd if=/dev/sdc2 of=/dev/null
> 12747056+0 records in
> 12747056+0 records out
> 
> ** The above output is after letting dd running for few minutes; 
> after that I killed the process because I was afraid it will take 
> it too long.

Yes. The purpose was to see that partition size is OK (doesn't run off
end of device). If you add blksize= with 4096, 8192 or 16384 or ... it
goes much faster. But I think no need now, it's your partition type I
think.

> 
> 
>  	Thank you for your help,

Us n00bs have to stick together here!  :-)

>  	Itay
> <snip sig stuff>

HTH
-- 
Bill
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.centos.org/pipermail/centos/attachments/20060708/d3ce3a7e/attachment-0001.sig>


More information about the CentOS mailing list