[Linux-cluster] Howto? Remove volumes

Steve Rigler srigler at marathonoil.com
Fri Oct 26 14:42:31 UTC 2007


On Fri, 2007-10-26 at 09:29 -0500, isplist at logicore.net wrote:
> After using LUN masking and zoning to make sure that hosts didn't access other 
> hosts data space, I find myself with lost volumes on some of the hosts. Since 
> I didn't remove them before making the changes, I am now stuck with the 
> following;
> 
> # lvscan
>   /dev/sda: read failed after 0 of 4096 at 0: Input/output error
>   ACTIVE            '/dev/VolGroup03/web' [475.62 GB] inherit
> 
> # vgscan
>   Reading all physical volumes.  This may take a while...
>   /dev/sda: read failed after 0 of 4096 at 0: Input/output error
>   /dev/sda: read failed after 0 of 4096 at 1073676288: Input/output error
>   /dev/sda: read failed after 0 of 4096 at 0: Input/output error
>   Found volume group "VolGroup03" using metadata type lvm2
> 
> # pvscan
>   /dev/sda: read failed after 0 of 4096 at 0: Input/output error
>   /dev/sda: read failed after 0 of 4096 at 1073676288: Input/output error
>   /dev/sda: read failed after 0 of 4096 at 0: Input/output error
>   PV /dev/sdb   VG VolGroup03   lvm2 [475.62 GB / 0    free]
>   Total: 1 [475.62 GB] / in use: 1 [475.62 GB] / in no VG: 0 [0   ]
> 
> With the changes, /dev/sda and /dev/sdc (which doesn't show anymore) no longer 
> exists. How can I safely remove the sda references?
> 
> Mike
> 

Usually you'd want to do this prior to zoning away a device, but "echo 1
> /sys/block/sda/device/delete" should get rid of it.

-Steve




More information about the Linux-cluster mailing list