linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] dev node change
@ 2013-12-09 15:13 Umar Draz
  2013-12-10 14:19 ` Peter Rajnoha
  0 siblings, 1 reply; 5+ messages in thread
From: Umar Draz @ 2013-12-09 15:13 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 440 bytes --]

Hi All

I have a SCSI share which i am  using linux initiator on my ubuntu. Its
available for me in /dev/sdb

No I have created lvm group using the /dev/sdb. Today I just logut and
login my scsi share but this time ubutnu gave me this as /dev/sdc instead
of /dev/sdb.

due to this my lvm group is stuck, and its giving me the error

Input/output error

on pvdisplay or vgdisplay,

Any body help me how I can reslove this issue.?

Br.

Umar

[-- Attachment #2: Type: text/html, Size: 669 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] dev node change
  2013-12-09 15:13 [linux-lvm] dev node change Umar Draz
@ 2013-12-10 14:19 ` Peter Rajnoha
  2013-12-10 14:33   ` Alessandro MACUZ
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Rajnoha @ 2013-12-10 14:19 UTC (permalink / raw)
  To: linux-lvm

On 12/09/2013 04:13 PM, Umar Draz wrote:
> Hi All
> 
> I have a SCSI share which i am  using linux initiator on my ubuntu. Its
> available for me in /dev/sdb
> 
> No I have created lvm group using the /dev/sdb. Today I just logut and
> login my scsi share but this time ubutnu gave me this as /dev/sdc
> instead of /dev/sdb.
> 
> due to this my lvm group is stuck, and its giving me the error
> 
> Input/output error
> 
> on pvdisplay or vgdisplay,
> 
> Any body help me how I can reslove this issue.?
> 

You should always deactivate your LVM volumes before
disconnecting the underlying iSCSI volumes and then when
you reconnect the iSCSI back, activate the LVM volumes
(or if autoactivation is used - meaning use_lvmetad=1
is set in lvm.conf, this activation happens automatically).

Alternatively, you can call vgchange --refresh when the
iSCSI is connected back.

-- 
Peter

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] dev node change
  2013-12-10 14:19 ` Peter Rajnoha
@ 2013-12-10 14:33   ` Alessandro MACUZ
  2013-12-11  8:46     ` Peter Rajnoha
  2013-12-11  9:23     ` Umar Draz
  0 siblings, 2 replies; 5+ messages in thread
From: Alessandro MACUZ @ 2013-12-10 14:33 UTC (permalink / raw)
  To: LVM general discussion and development

[-- Attachment #1: Type: text/plain, Size: 1050 bytes --]

2013/12/10 Peter Rajnoha <prajnoha@redhat.com>

> On 12/09/2013 04:13 PM, Umar Draz wrote:
> > Hi All
> >
> > I have a SCSI share which i am  using linux initiator on my ubuntu. Its
> > available for me in /dev/sdb
> >
> > No I have created lvm group using the /dev/sdb. Today I just logut and
> > login my scsi share but this time ubutnu gave me this as /dev/sdc
> > instead of /dev/sdb.
> >
> > due to this my lvm group is stuck, and its giving me the error
> >
> > Input/output error
> >
> > on pvdisplay or vgdisplay,
> >
> > Any body help me how I can reslove this issue.?
> >
>
> You should always deactivate your LVM volumes before
> disconnecting the underlying iSCSI volumes and then when
> you reconnect the iSCSI back, activate the LVM volumes
> (or if autoactivation is used - meaning use_lvmetad=1
> is set in lvm.conf, this activation happens automatically).
>
> Alternatively, you can call vgchange --refresh when the
> iSCSI is connected back.



Couldn't be used the identification of PV by UUID here? It should be better
imo.

Alex

[-- Attachment #2: Type: text/html, Size: 1636 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] dev node change
  2013-12-10 14:33   ` Alessandro MACUZ
@ 2013-12-11  8:46     ` Peter Rajnoha
  2013-12-11  9:23     ` Umar Draz
  1 sibling, 0 replies; 5+ messages in thread
From: Peter Rajnoha @ 2013-12-11  8:46 UTC (permalink / raw)
  To: LVM general discussion and development

On 12/10/2013 03:33 PM, Alessandro MACUZ wrote:
> 2013/12/10 Peter Rajnoha <prajnoha@redhat.com <mailto:prajnoha@redhat.com>>
> 
>     On 12/09/2013 04:13 PM, Umar Draz wrote:
>     > Hi All
>     >
>     > I have a SCSI share which i am  using linux initiator on my
>     ubuntu. Its
>     > available for me in /dev/sdb
>     >
>     > No I have created lvm group using the /dev/sdb. Today I just logut and
>     > login my scsi share but this time ubutnu gave me this as /dev/sdc
>     > instead of /dev/sdb.
>     >
>     > due to this my lvm group is stuck, and its giving me the error
>     >
>     > Input/output error
>     >
>     > on pvdisplay or vgdisplay,
>     >
>     > Any body help me how I can reslove this issue.?
>     >
> 
>     You should always deactivate your LVM volumes before
>     disconnecting the underlying iSCSI volumes and then when
>     you reconnect the iSCSI back, activate the LVM volumes
>     (or if autoactivation is used - meaning use_lvmetad=1
>     is set in lvm.conf, this activation happens automatically).
> 
>     Alternatively, you can call vgchange --refresh when the
>     iSCSI is connected back.
> 
> 
> 
> Couldn't be used the identification of PV by UUID here? It should be
> better imo.
> 

Well, this is about dm tables that represent the logical volumes
(you can check dmsetup table output). The PV UUID doesn't play a role
at this level - the PV UUID is just LVM abstraction that is using
device-mapper kernel capabilities.

And if the iSCSI is disconnected while there's anything on top of it
(in this case the LV), the major:minor pair (as well as the kernel name)
is reserved until all the stack above it is freed.

Then when the iSCSI is connected back (while the old major:minor is
still held by old mapping), kernel has no other choice just to assign
new major:minor pair. Therefore we need a refresh (or deactivation/activation)
which will generate a new mapping with the new major:minor pair of the
underlying PV (the iSCSI volume).
-- 
Peter

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] dev node change
  2013-12-10 14:33   ` Alessandro MACUZ
  2013-12-11  8:46     ` Peter Rajnoha
@ 2013-12-11  9:23     ` Umar Draz
  1 sibling, 0 replies; 5+ messages in thread
From: Umar Draz @ 2013-12-11  9:23 UTC (permalink / raw)
  To: LVM general discussion and development

[-- Attachment #1: Type: text/plain, Size: 1468 bytes --]

Hi Alex,

Thanks for this. :)

Br.

Umar


On Tue, Dec 10, 2013 at 7:33 PM, Alessandro MACUZ <
alessandro.macuz@gmail.com> wrote:

> 2013/12/10 Peter Rajnoha <prajnoha@redhat.com>
>
>> On 12/09/2013 04:13 PM, Umar Draz wrote:
>> > Hi All
>> >
>> > I have a SCSI share which i am  using linux initiator on my ubuntu. Its
>> > available for me in /dev/sdb
>> >
>> > No I have created lvm group using the /dev/sdb. Today I just logut and
>> > login my scsi share but this time ubutnu gave me this as /dev/sdc
>> > instead of /dev/sdb.
>> >
>> > due to this my lvm group is stuck, and its giving me the error
>> >
>> > Input/output error
>> >
>> > on pvdisplay or vgdisplay,
>> >
>> > Any body help me how I can reslove this issue.?
>> >
>>
>> You should always deactivate your LVM volumes before
>> disconnecting the underlying iSCSI volumes and then when
>> you reconnect the iSCSI back, activate the LVM volumes
>> (or if autoactivation is used - meaning use_lvmetad=1
>> is set in lvm.conf, this activation happens automatically).
>>
>> Alternatively, you can call vgchange --refresh when the
>> iSCSI is connected back.
>
>
>
> Couldn't be used the identification of PV by UUID here? It should be
> better imo.
>
> Alex
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>



-- 
Umar Draz
Network Architect

[-- Attachment #2: Type: text/html, Size: 2606 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-12-11  9:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-09 15:13 [linux-lvm] dev node change Umar Draz
2013-12-10 14:19 ` Peter Rajnoha
2013-12-10 14:33   ` Alessandro MACUZ
2013-12-11  8:46     ` Peter Rajnoha
2013-12-11  9:23     ` Umar Draz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).