1 2 3 4 5 | # ifconfig eth0 Link encap:Ethernet HWaddr 00:1e:8c:ff:31:51 inet addr:9.20.166.19 Bcast:9.20.166.255 Mask:255.255.255.0 inet6 addr: fe80::21e:8cff:feff:3151/64 Scopeink […] |
1 2 3 4 | # lsscsi [0:0:0:0] disk ATA Hitachi HDT72502 V5DO /dev/sda [1:0:0:0] cd/dvd HL-DT-ST DVD-RAM GSA-H60N CX04 /dev/scd0 |
1 2 3 4 5 | linux:~ # fdisk -l /dev/sda [] Device Boot Start End Blocks Id System /dev/sda1 * 1 13 104391 83 Linux /dev/sda2 14 3916 31350847+ 8e Linux LVM |
1 2 | linux:~ # vgchange -an 0 logical volume(s) in volume group "VolGroup00" now active |
1 2 | Target linuxbmr Lun 0 Path=/dev/sda,Type=blockio |
1 | /etc/init.d/iscsitarget restart |
1 2 | su - yum install scsi-target-utils lsscsi |
1 2 3 | - lsscsi-0.23-1.fc12.i686.rpm - perl-Config-General-2.44-1.fc12.noarch.rpm - scsi-target-utils-1.0.1-0.fc12.i686.rpm |
1 | # service tgtd start |
1 | # tgtadm --lld iscsi --op new --mode target --tid=1 --targetname linuxbmr |
1 | # tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 -b /dev/sda |
1 2 | # tgtadm --lld iscsi --op bind --mode target --tid 1 -I ALL # iptables –I INPUT –p tcp --dport 3260 –j ACCEPT |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |