<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'>hi. Thanks for your reply. Well, I had tried that before, but no luck. I tried it again, and still no luck:<br>> vgchange -an disk2<br>  0 logical volume(s) in volume group "disk2" now active<br>> sdparm -C stop /dev/sdb<br>> lvscan<br>end_request: I/O error, dev sdb, sector 0<br>printk: 72 messages suppressed.<br>Buffer I/O error on device sdb, logical block 0<br>Buffer I/O error on device sdb, logical block 1<br>Buffer I/O error on device sdb, logical block 2<br>Buffer I/O error on device sdb, logical block 3<br>end_request: I/O error, dev sdb, sector 0<br>Buffer I/O error on device sdb, logical block 0<br>  end_request: I/O error, dev sdb, sector 287277824<br>/dev/sdb: read failed after 0 of 4096 at 0: Input/output error<br>end_request: I/O error, dev sdb, sector 0<br>  /dev/sdb: read failed after 0 of 4096 at 147086245888: Input/oend_request: I/O error, dev sdb, sector 287274137<br>utput error<br>  /dev/sdb: read failed after 0 of 4096 at 0: Inputend_request: I/O error, dev sdb, sector 287258265<br>/output error<br>  /dev/sdb1: read failed after 0 of 512 at 812646end_request: I/O error, dev sdb, sector 287258029<br>4: Input/output error<br>  /dev/sdb1: read failed after 0 of 2048 end_request: I/O error, dev sdb, sector 281410605<br>at 0: Input/output error<br>  /dev/sdb2: read failed after 0 of 20end_request: I/O error, dev sdb, sector 281410367<br>48 at 2993881088: Input/output error<br>  /dev/sdb2: read failed aend_request: I/O error, dev sdb, sector 63<br>fter 0 of 2048 at 0: Input/output error<br>  /dev/sdb4: read failed after 0 of 1024 at 144082075648: Input/output error<br>  /dev/sdb4: read failed after 0 of 2048 at 0: Input/output error<br>  ACTIVE            '/dev/disk1/blah' [10.00 GB] inherit<br>  ACTIVE            '/dev/disk1/blah' [100.00 MB] inherit<br>  ACTIVE            '/dev/disk1/blah' [10.00 GB] inherit<br>  ACTIVE            '/dev/disk1/blah' [100.00 MB] inherit<br>  ACTIVE            '/dev/disk1/blah' [10.00 GB] inherit<br>  ACTIVE            '/dev/disk1/blah' [100.00 MB] inherit<br><br>I'm using older LVM version:<br>> lvscan --version<br>  LVM version:     2.02.25 (2007-04 27)<br>  Library version: 1.02.19 (2007-04-27)<br>  Driver version:  4.11.0<br><br>Any ideas?<br><br>Thanks<br><br>----- Original Message -----<br>From: "Bryn M. Reeves" <bmr@redhat.com><br>To: "device-mapper development" <dm-devel@redhat.com><br>Sent: Wednesday, February 11, 2009 2:39:20 AM GMT -08:00 US/Canada Pacific<br>Subject: Re: [dm-devel] Stopped disk causes LVM to go crazy<br><br>Alireza Nematollahi wrote:<br>> hi guys,<br>> <br>> I have a system with two SATA disks and I have LVM on the disks. I<br>> use sdparm (sdparm -C stop /dev/sdb) to spin-down one of them. It<br>> works fine and I can hear the disk spinning down and all...But when<br>> I run any LVM command, say lvscan or whatever, I get lots of error<br>> messages:<br><br>What did you expect? :)<br><br>If the volume group is active when you remove/spin down the disks LVM <br>has no way of knowing that you wanted to do that. To the software, it <br>just looks like a drive has failed or gone away while it was in use.<br><br><snip><br><br>> /dev/sdb2: read failed after 0 of 4096 at 2993881088: Input/output<br>> error /dev/sdb2: read failed after 0 of 4096 at 0: Input/output<br>> error /dev/sdb4: read failed after 0 of 1024 at 144082075648:<br>> Input/output error /dev/sdb4: read failed after 0 of 2048 at 0:<br><br>> Input/output error Even when I physically remove the disk it still<br>> happens. Is there any way I can stop LVM from querying both disks<br>> or at least to stop displaying the error messages?<br><br>Tell LVM to stop using the disk first. See the man page for vgchange <br>for full details but you want to run:<br><br>vgchange -an <volume group><br><br>To deactivate the volume group *before* you start removing devices <br>that it is using.<br><br>Regards,<br>Bryn.<br><br>--<br>dm-devel mailing list<br>dm-devel@redhat.com<br>https://www.redhat.com/mailman/listinfo/dm-devel<br></div></body></html>