[Bug 1048008] Re: tgt needs restart to find LUN

2015-04-04 Thread Тимофей
tgt-admin -e
for updating configuration

** Changed in: tgt (Ubuntu)
   Status: New = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tgt in Ubuntu.
https://bugs.launchpad.net/bugs/1048008

Title:
  tgt needs restart to find LUN

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tgt/+bug/1048008/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1048008] Re: tgt needs restart to find LUN

2015-04-04 Thread Тимофей
tgt-admin -e
for updating configuration

** Changed in: tgt (Ubuntu)
   Status: New = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1048008

Title:
  tgt needs restart to find LUN

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tgt/+bug/1048008/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1048008] Re: tgt needs restart to find LUN

2012-09-15 Thread Dave Gilbert
Hi James,
  I agree it's likely to be an lvm/udev race; some observations:
 1) It doesn't seem to happen with files
 2) With lvm, It doesn't always happen if the guest is configured with a 
single core; most of the time but not always
 3) With lvm it seems to happen (almost?) always when the guest has 
multiple cores.

output of tgtadm as requested:

- lvm based, bad ---

Target 1: iqn.2008-09.com.example:server1.share1
System information:
Driver: iscsi
State: ready
I_T nexus information:
I_T nexus: 1
Initiator: iqn.2005-03.org.open-iscsi:2b2883cd283
Connection: 0
IP Address: 192.168.123.12
I_T nexus: 2
Initiator: iqn.2005-03.org.open-iscsi:2b2883cd282
Connection: 0
IP Address: 192.168.122.12
LUN information:
LUN: 0
Type: controller
SCSI ID: IET 0001
SCSI SN: beaf10
Size: 0 MB, Block size: 1
Online: Yes
Removable media: No
Readonly: No
Backing store type: null
Backing store path: None
Backing store flags: 
Account information:
ACL information:
ALL

--- LVM based, after restarting tgt ---

Target 1: iqn.2008-09.com.example:server1.share1
System information:
Driver: iscsi
State: ready
I_T nexus information:
I_T nexus: 1
Initiator: iqn.2005-03.org.open-iscsi:2b2883cd283
Connection: 0
IP Address: 192.168.123.12
I_T nexus: 2
Initiator: iqn.2005-03.org.open-iscsi:2b2883cd282
Connection: 0
IP Address: 192.168.122.12
I_T nexus: 3
Initiator: iqn.2005-03.org.open-iscsi:2b2883cd283
Connection: 0
IP Address: 192.168.123.12
I_T nexus: 4
Initiator: iqn.2005-03.org.open-iscsi:2b2883cd282
Connection: 0
IP Address: 192.168.122.12
LUN information:
LUN: 0
Type: controller
SCSI ID: IET 0001
SCSI SN: beaf10
Size: 0 MB, Block size: 1
Online: Yes
Removable media: No
Readonly: No
Backing store type: null
Backing store path: None
Backing store flags: 
LUN: 1
Type: disk
SCSI ID: IET 00010001
SCSI SN: beaf11
Size: 10737 MB, Block size: 512
Online: Yes
Removable media: No
Readonly: No
Backing store type: rdwr
Backing store path: /dev/mapper/server1-share1
Backing store flags: 
Account information:
ACL information:
ALL

(can also see the client accessing it there)

--- file based, good ---

Target 1: iqn.2008-09.com.example:server1.share1
System information:
Driver: iscsi
State: ready
I_T nexus information:
I_T nexus: 5
Initiator: iqn.2005-03.org.open-iscsi:2b2883cd283
Connection: 0
IP Address: 192.168.123.12
I_T nexus: 6
Initiator: iqn.2005-03.org.open-iscsi:2b2883cd282
Connection: 0
IP Address: 192.168.122.12
LUN information:
LUN: 0
Type: controller
SCSI ID: IET 0001
SCSI SN: beaf10
Size: 0 MB, Block size: 1
Online: Yes
Removable media: No
Readonly: No
Backing store type: null
Backing store path: None
Backing store flags: 
LUN: 1
Type: disk
SCSI ID: IET 00010001
SCSI SN: beaf11
Size: 1074 MB, Block size: 512
Online: Yes
Removable media: No
Readonly: No
Backing store type: rdwr
Backing store path: /home/dg/afile
Backing store flags: 
Account information:
ACL information:
ALL


** Changed in: tgt (Ubuntu)
   Status: Incomplete = New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tgt in Ubuntu.
https://bugs.launchpad.net/bugs/1048008

Title:
  tgt needs restart to find LUN

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tgt/+bug/1048008/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1048008] Re: tgt needs restart to find LUN

2012-09-15 Thread Dave Gilbert
Hi James,
  I agree it's likely to be an lvm/udev race; some observations:
 1) It doesn't seem to happen with files
 2) With lvm, It doesn't always happen if the guest is configured with a 
single core; most of the time but not always
 3) With lvm it seems to happen (almost?) always when the guest has 
multiple cores.

output of tgtadm as requested:

- lvm based, bad ---

Target 1: iqn.2008-09.com.example:server1.share1
System information:
Driver: iscsi
State: ready
I_T nexus information:
I_T nexus: 1
Initiator: iqn.2005-03.org.open-iscsi:2b2883cd283
Connection: 0
IP Address: 192.168.123.12
I_T nexus: 2
Initiator: iqn.2005-03.org.open-iscsi:2b2883cd282
Connection: 0
IP Address: 192.168.122.12
LUN information:
LUN: 0
Type: controller
SCSI ID: IET 0001
SCSI SN: beaf10
Size: 0 MB, Block size: 1
Online: Yes
Removable media: No
Readonly: No
Backing store type: null
Backing store path: None
Backing store flags: 
Account information:
ACL information:
ALL

--- LVM based, after restarting tgt ---

Target 1: iqn.2008-09.com.example:server1.share1
System information:
Driver: iscsi
State: ready
I_T nexus information:
I_T nexus: 1
Initiator: iqn.2005-03.org.open-iscsi:2b2883cd283
Connection: 0
IP Address: 192.168.123.12
I_T nexus: 2
Initiator: iqn.2005-03.org.open-iscsi:2b2883cd282
Connection: 0
IP Address: 192.168.122.12
I_T nexus: 3
Initiator: iqn.2005-03.org.open-iscsi:2b2883cd283
Connection: 0
IP Address: 192.168.123.12
I_T nexus: 4
Initiator: iqn.2005-03.org.open-iscsi:2b2883cd282
Connection: 0
IP Address: 192.168.122.12
LUN information:
LUN: 0
Type: controller
SCSI ID: IET 0001
SCSI SN: beaf10
Size: 0 MB, Block size: 1
Online: Yes
Removable media: No
Readonly: No
Backing store type: null
Backing store path: None
Backing store flags: 
LUN: 1
Type: disk
SCSI ID: IET 00010001
SCSI SN: beaf11
Size: 10737 MB, Block size: 512
Online: Yes
Removable media: No
Readonly: No
Backing store type: rdwr
Backing store path: /dev/mapper/server1-share1
Backing store flags: 
Account information:
ACL information:
ALL

(can also see the client accessing it there)

--- file based, good ---

Target 1: iqn.2008-09.com.example:server1.share1
System information:
Driver: iscsi
State: ready
I_T nexus information:
I_T nexus: 5
Initiator: iqn.2005-03.org.open-iscsi:2b2883cd283
Connection: 0
IP Address: 192.168.123.12
I_T nexus: 6
Initiator: iqn.2005-03.org.open-iscsi:2b2883cd282
Connection: 0
IP Address: 192.168.122.12
LUN information:
LUN: 0
Type: controller
SCSI ID: IET 0001
SCSI SN: beaf10
Size: 0 MB, Block size: 1
Online: Yes
Removable media: No
Readonly: No
Backing store type: null
Backing store path: None
Backing store flags: 
LUN: 1
Type: disk
SCSI ID: IET 00010001
SCSI SN: beaf11
Size: 1074 MB, Block size: 512
Online: Yes
Removable media: No
Readonly: No
Backing store type: rdwr
Backing store path: /home/dg/afile
Backing store flags: 
Account information:
ACL information:
ALL


** Changed in: tgt (Ubuntu)
   Status: Incomplete = New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1048008

Title:
  tgt needs restart to find LUN

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tgt/+bug/1048008/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1048008] Re: tgt needs restart to find LUN

2012-09-12 Thread James Page
Dave

I've not been able to reproduce your issue using a quantal KVM instance.

Please could you run:

   sudo tgtadm --lld iscsi --mode target --op show

when you see the issue -  hopefully this will tell us a bit more.

Thanks

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tgt in Ubuntu.
https://bugs.launchpad.net/bugs/1048008

Title:
  tgt needs restart to find LUN

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tgt/+bug/1048008/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1048008] Re: tgt needs restart to find LUN

2012-09-12 Thread James Page
Dave

I've not been able to reproduce your issue using a quantal KVM instance.

Please could you run:

   sudo tgtadm --lld iscsi --mode target --op show

when you see the issue -  hopefully this will tell us a bit more.

Thanks

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1048008

Title:
  tgt needs restart to find LUN

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tgt/+bug/1048008/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1048008] Re: tgt needs restart to find LUN

2012-09-11 Thread James Page
Hi Dave

Do you see any output during first boot which would indicate why tgt
does not present the LUN?  I think this may be some sort of race
condition between tgt startup and the device mapper having detected all
devices.

It would be good if you could also try using a file as a backing-store
to see if you get the same problem.

** Changed in: tgt (Ubuntu)
   Importance: Undecided = Medium

** Changed in: tgt (Ubuntu)
   Status: New = Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tgt in Ubuntu.
https://bugs.launchpad.net/bugs/1048008

Title:
  tgt needs restart to find LUN

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tgt/+bug/1048008/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1048008] Re: tgt needs restart to find LUN

2012-09-11 Thread James Page
Hi Dave

Do you see any output during first boot which would indicate why tgt
does not present the LUN?  I think this may be some sort of race
condition between tgt startup and the device mapper having detected all
devices.

It would be good if you could also try using a file as a backing-store
to see if you get the same problem.

** Changed in: tgt (Ubuntu)
   Importance: Undecided = Medium

** Changed in: tgt (Ubuntu)
   Status: New = Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1048008

Title:
  tgt needs restart to find LUN

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tgt/+bug/1048008/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1048008] Re: tgt needs restart to find LUN

2012-09-08 Thread Dave Gilbert
-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tgt in Ubuntu.
https://bugs.launchpad.net/bugs/1048008

Title:
  tgt needs restart to find LUN

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tgt/+bug/1048008/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1048008] Re: tgt needs restart to find LUN

2012-09-08 Thread Dave Gilbert
This is the tgt conf that specifies the target:

root@server1:/var/log# cat /etc/tgt/conf.d/dag.conf

# Sample target with one LUN only. Defaults to allow access for all initiators:
#
#iSNSServerIP 192.168.122.10
#iSNSServerPort 3205
#iSNSAccessControl On
#iSNS On


target iqn.2008-09.com.example:server1.share1
backing-store /dev/mapper/server1-share1
/target

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tgt in Ubuntu.
https://bugs.launchpad.net/bugs/1048008

Title:
  tgt needs restart to find LUN

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tgt/+bug/1048008/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1048008] Re: tgt needs restart to find LUN

2012-09-08 Thread Dave Gilbert
-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1048008

Title:
  tgt needs restart to find LUN

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tgt/+bug/1048008/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1048008] Re: tgt needs restart to find LUN

2012-09-08 Thread Dave Gilbert
This is the tgt conf that specifies the target:

root@server1:/var/log# cat /etc/tgt/conf.d/dag.conf

# Sample target with one LUN only. Defaults to allow access for all initiators:
#
#iSNSServerIP 192.168.122.10
#iSNSServerPort 3205
#iSNSAccessControl On
#iSNS On


target iqn.2008-09.com.example:server1.share1
backing-store /dev/mapper/server1-share1
/target

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1048008

Title:
  tgt needs restart to find LUN

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tgt/+bug/1048008/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs