[buug] lvm issue
Michael Cheselka
cheselka at gmail.com
Fri Aug 31 14:25:05 PDT 2007
Hello,
I have a similar issue, I want to plug and unplug a usb drive which
only has one partition - an LVM named VolGroup01. I want to treat
it like a USB memory stick and be able to hot plug and unplug it.
The command I run right now is:
lvchange -a y VolGroup01
... and then:
mount -a
Later, I must:
umount $( awk '$1 ~ /^\/dev\/VolGroup01/ { print $2 }' /proc/mounts )
lvchange -a n VolGroup01
... before unplugging it.
There must be a udev way to do this.
Ciao!
Mike
On 8/31/07, John de la Garza <john at jjdev.com> wrote:
> I had an external device hooked up to my box and it got removed
> without first deactivating the lvm volume group.
>
> Now, I can't get the logical volumes or vol group out of the kernel.
>
> I am trying to run vgscan but get this:
>
> root at darkstar:~# vgscan
> Reading all physical volumes. This may take a while...
> /dev/jj-internal/usr: read failed after 0 of 4096 at 8589869056:
> Input/output error
> /dev/jj-internal/usr: read failed after 0 of 4096 at 0: Input/output error
>
>
> I'd like to be able to fix this with out rebooting. Anyone know how
> to clear these unreadable devices out?
> _______________________________________________
> Buug mailing list
> Buug at weak.org
> http://www.weak.org/mailman/listinfo/buug
>
--
When in the Potemkin Wired be a Potemkin Lain.
More information about the buug
mailing list