LVM creation / deletion issue

  • Thread starter Thread starter Fab
  • Start date Start date
F

Fab

Guest
Hello,

First of all, precision: I am newbie regarding Proxmox and not familiar with Linux.

I was playing with the creation / deletion of LVM groups using the commands
vgremove disk1
pvremove /dev/sdb
or
pvcreate /dev/sdb
vgcreate disk1 /dev/sdb

It worked without problem 2 weeks ago, but now each time I am using one of these commands I have the following error:
/dev/dm-3: read failed after 0 of 4096 at 0: Input/output error
/dev/dm-3: read failed after 0 of 4096 at 876190040064: Input/output error
/dev/dm-3: read failed after 0 of 4096 at 876190097408: Input/output error
/dev/dm-3: read failed after 0 of 4096 at 0: Input/output error
/dev/dm-3: read failed after 0 of 4096 at 4096: Input/output error
/dev/dm-3: read failed after 0 of 4096 at 0: Input/output error

The concerned machine has 5 extra disks and I get the error whatever is the disk.

I did not find anything on the wiki. I could see some similar errors on the forum, but not exactly like my problem.

I could somehow find thanks to Google such error can be caused by file system corruption or driver issue.

If somebody experienced the same or has some ideas...
 
So, after different tries and restarts, the issue was solved.

No clue how, no clue what was the problem, but it is solved...
 
Hello,

First of all, precision: I am newbie regarding Proxmox and not familiar with Linux.

I was playing with the creation / deletion of LVM groups using the commands
vgremove disk1
pvremove /dev/sdb
or
pvcreate /dev/sdb
vgcreate disk1 /dev/sdb

It worked without problem 2 weeks ago, but now each time I am using one of these commands I have the following error:
/dev/dm-3: read failed after 0 of 4096 at 0: Input/output error
/dev/dm-3: read failed after 0 of 4096 at 876190040064: Input/output error
/dev/dm-3: read failed after 0 of 4096 at 876190097408: Input/output error
/dev/dm-3: read failed after 0 of 4096 at 0: Input/output error
/dev/dm-3: read failed after 0 of 4096 at 4096: Input/output error
/dev/dm-3: read failed after 0 of 4096 at 0: Input/output error

The concerned machine has 5 extra disks and I get the error whatever is the disk.

I did not find anything on the wiki. I could see some similar errors on the forum, but not exactly like my problem.

I could somehow find thanks to Google such error can be caused by file system corruption or driver issue.

If somebody experienced the same or has some ideas...
Hi,
you get this error if one lv is still activated but the storage is gone.
Look with "dmsetup info" - the device with the Minor-Number 3 (in your case - came from dm-3) has the trouble. Simply remove than the device (lv) and all should be fine.

Udo
 
Thanks for your reply Udo.

When I ran this command earlier I could see many storages (don't how to call them) but nothing seemed to be related to my problematic ones.

Now, I have only 3 and none of them have the minor number 3.

So if this issue happens again I will know how to investigate it better :)

Thanks again for your quick reply