Re: Disconnected iSCSI and umount problems

2008-06-18 Thread Konrad Rzeszutek

 If you guys have any advice or insight I'd appreciate the help.  I

Use multipath. Install the package and your iSCSI disk will be 
/dev/mapper/some-really-long-name

And you can tweak your settings in /etc/multipath.conf to queue the I/O
for long time while you re-login in the iSCSI.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
open-iscsi group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---



Re: Removing individual LUNs

2008-06-18 Thread Alex M.

On Jun 17, 7:00 am, Konrad Rzeszutek [EMAIL PROTECTED] wrote:
 You can delete the old block devices that have changed and do a SCSI rescan:

 You have to delete the old devices (well, this script deletes _ALL_ so that 
 might
 not be that good):

 for disk in `find 
 /sys/class/iscsi_session/session*/device/target*/*:*:*:*/delete `
 do
  echo 1  $disk
 done

 And then do the rescan:
 #iscsiadm -m session --rescan
--snip--
 Oh, please be carefull. These scripts will delete your block devices, so if 
 you delete your
 root one or any other one that is used - you are screwed.  Make sure you 
 first unmount
 any of the filesystems on those block devices and sync it so that there are no
 outstanding I/Os.

Excellent! This was exactly what I needed!

As you said, removing devices blindly is quite dangerous, so I
certainly won't be automating this in any way. :)

It's a one-off operation that happens maybe once every 3 weeks or so,
and there are a number of other steps that happen before and after the
disk resize that require quite a bit of care to be taken so I'll be
doing it manually and with proper safety precautions. (doing an LVM
snapshot on the target side prior to doing anything just in case, etc)

Thanks very much for the help!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
open-iscsi group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---



Re: iSCSI tape drive problems

2008-06-18 Thread Sparqz

I must have really dark sunglasses on, because I've never seen an
iSCSI tape drive before?

Anyhow, I don't think your MTU (lack of jumbo frames) is the problem,
I can easily get 50MB/s sustained transfers over a gigabit network.

First I would confirm that the path between your linux iSCSI server
and your tape drive is running a the full wire speed (gigabit).

Assuming eth0 is the ethernet port you use for iSCSI traffic type
ethtool eth0 and make sure you see:
Speed: 1000Mb/s
Duplex: Full
amongst the garbage that fills the screen.

Also, you can type ifconfig eth0 and you should see something like:
  RX packets:62361505 errors:0 dropped:0 overruns:0 frame:0
  TX packets:110583510 errors:0 dropped:0 overruns:0 carrier:0
make sure that there are no errors (or dropped packets, overruns or
framing errors)

I wouldn't worry too much about the TCP Checksum messages that
wireshark shows (usually it's because another part of the system
checks these checksums and mangles them in the process)

Finally, can your local disk support 30MB/s ?  might be worth
installing something like iozone or bonnie++ to make sure your disk
can be read and written to at 30MB/s.

Hope this helps!

On Jun 17, 6:27 am, Michael [EMAIL PROTECTED] wrote:
 Hi all,

 I've been using open-iscsi to set up an IBM Ultrium LTO-4 tape drive.
 I can connect and transfer files and everything, but the maximum read
 or write speed I can get is like 16MB/s by tweaking the block size.  I
 am on a gigabit network, which the tape drive supports.  The drive
 specifications rate it at 30MB/s so I'm off by 50%.  Does anyone know
 what I can do to get the speed up to scratch?  I'm pretty much a Linux/
 network newbie so I no idea if its an open-iscsi tweak or a network
 tweak that I could possibly do.  Also, I checked and my network card
 only supports MTU=1500, if that matters.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
open-iscsi group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---