Iscsi
Материал из noname.com.ua
zYeyxo <a href="http://wnhhjvwgbtlx.com/">wnhhjvwgbtlx</a>, [url=http://ydyvlbixqikk.com/]ydyvlbixqikk[/url], [link=http://ijigaeuojwtz.com/]ijigaeuojwtz[/link], http://wqnbkaqemurs.com/
iSCSI initiator
Установить open-iscsi
#echo "sys-block/open-iscsi" >> /etc/portage/package.keywords
#emerge sys-block/open-iscsi
Запустить сервис:
#/etc/init.d/iscsid start
Исследовать какие устройства есть на целевой системе
#iscsiadm -m discovery -t st -p 172.16.49.9
172.16.49.9:3260,1 iqn.2009-09.ab.mordred:iSCSI.aradia.disk1
Подключить:
#iscsiadm -m node -T iqn.2009-09.ab.mordred:iSCSI.aradia.disk1 -p 172.16.49.9:3260 -l
В логах
dmesg <skipped> [548181.601597] scsi5 : iSCSI Initiator over TCP/IP [548181.860961] scsi 5:0:0:0: Direct-Access IET VIRTUAL-DISK 0 PQ: 0 ANSI: 4 [548181.862415] sd 5:0:0:0: [sde] 12582912 512-byte hardware sectors (6442 MB) [548181.863446] sd 5:0:0:0: [sde] Write Protect is off [548181.863452] sd 5:0:0:0: [sde] Mode Sense: 77 00 00 08 [548181.865093] sd 5:0:0:0: [sde] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA [548181.872296] sd 5:0:0:0: [sde] 12582912 512-byte hardware sectors (6442 MB) [548181.881151] sd 5:0:0:0: [sde] Write Protect is off [548181.881160] sd 5:0:0:0: [sde] Mode Sense: 77 00 00 08 [548181.883161] sd 5:0:0:0: [sde] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA [548181.883171] sde: unknown partition table [548181.890757] sd 5:0:0:0: [sde] Attached SCSI disk [548181.890825] sd 5:0:0:0: Attached scsi generic sg4 type 0
#fdisk -l
<skipped>
Disk /dev/sde: 6442 MB, 6442450944 bytes
199 heads, 62 sectors/track, 1019 cylinders
Units = cylinders of 12338 * 512 = 6317056 bytes
Disk identifier: 0x00000000
Disk /dev/sde doesn't contain a valid partition table
Проверка работы
После копирования данных на iSCSI диск (в моем случае sde) и монтированя, имею:
iostat -mtxz /dev/sd? 1 Device: rrqm/s wrqm/s r/s w/s rMB/s wMB/s avgrq-sz avgqu-sz await svctm %util sda 0.33 18.63 44.56 166.64 0.18 0.72 8.78 6.59 31.18 4.28 90.37 sdb 0.63 318.09 2.78 246.87 0.05 2.23 18.66 0.34 1.20 1.18 29.38 sdc 0.63 318.99 2.77 245.91 0.05 2.23 18.74 0.83 3.16 1.21 29.97 sdd 0.00 13.26 0.00 0.03 0.00 0.01 807.22 0.17 5101.32 38.49 0.13 sde 0.00 4.07 3.40 11.55 0.01 0.06 10.18 1.72 114.77 1.19 1.78 25.09.2009 10:11:56 avg-cpu: %user %nice %system %iowait %steal %idle 21.13 0.00 12.29 43.24 0.00 23.34 Device: rrqm/s wrqm/s r/s w/s rMB/s wMB/s avgrq-sz avgqu-sz await svctm %util sdb 0.00 166.34 0.00 175.25 0.00 1.37 15.95 1.22 7.07 1.16 20.40 sdc 0.00 166.34 0.00 175.25 0.00 1.36 15.91 1.15 6.59 1.09 19.11 sde 0.00 1031.68 0.00 621.78 0.00 4.74 15.62 135.41 182.22 1.62 100.69
Т.е фактическая нагрузка распределилась по 2-м диска (т.к. часть данных все-таки осталось на первом)
BGVu3U <a href="http://dyineadfzcek.com/">dyineadfzcek</a>, [url=http://mmgxeuyllpbo.com/]mmgxeuyllpbo[/url], [link=http://vuhohoykgrab.com/]vuhohoykgrab[/link], http://rxzyqsphxbfy.com/