
[root@localhost ~]# fdisk -l Disk /dev/sda: 21.5 GB, 21474836480 bytes 255 heads, 63 ctors/track, 2610 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0005bb6c Device Boot Start End Blocks Id System /dev/sda1 * 1 26 204800 83 Linux Partition 1 does not end on cylinder boundary. /dev/sda2 26 281 2048000 82 Linux swap / Solaris Partition 2 does not end on cylinder boundary. /dev/sda3 281 2611 18717696 83 Linux Disk /dev/sdb: 107.4 GB, 107374182400 bytes 255 heads, 63 ctors/track, 13054 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00077087 Device Boot Start End Blocks Id System |
yum install scsi-target-utils -y |
vim /etc/f <target ample:rver.target1> backing-store /dev/sdb </target> |
1 | rvice tgtd restart |
yum install iscsi-initiator-utils -y |
iscsiadm --mode discoverydb --type ndtargets --portal 10.1.1.222 --discover 出現(xiàn)以下則表示有共享磁盤 10.1.1.222:3260,1 ample:rver.target1 |
iscsiadm --mode node --targetname ample:rver.target1 --portal 10.1.1.222:3260 --login |
[root@localhost ~]# iscsiadm --mode node --targetname ample:rver.target1 --portal 10.1.1.222:3260 --login Logging in to [iface: default, target: ample:rver.target1, portal: 10.1.1.222,3260] (multiple) Login to [iface: default, target: ample:rver.target1, portal: 10.1.1.222,3260] successful. |
[root@localhost ~]# fdisk -l Disk /dev/sda: 21.5 GB, 21474836480 bytes 255 heads, 63 ctors/track, 2610 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00036380 Device Boot Start End Blocks Id System /dev/sda1 * 1 26 204800 83 Linux Partition 1 does not end on cylinder boundary. /dev/sda2 26 281 2048000 82 Linux swap / Solaris Partition 2 does not end on cylinder boundary. /dev/sda3 281 2611 18717696 83 Linux Disk /dev/sdb: 107.4 GB, 107374182400 bytes 255 heads, 63 ctors/track, 13054 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00077087 Device Boot Start End Blocks Id System |
本文發(fā)布于:2023-06-07 11:11:19,感謝您對(duì)本站的認(rèn)可!
本文鏈接:http://www.newhan.cn/zhishi/a/1686107480212738.html
版權(quán)聲明:本站內(nèi)容均來自互聯(lián)網(wǎng),僅供演示用,請(qǐng)勿用于商業(yè)和其他非法用途。如果侵犯了您的權(quán)益請(qǐng)與我們聯(lián)系,我們將在24小時(shí)內(nèi)刪除。
本文word下載地址:redhat創(chuàng)建并掛載scsi磁盤測試.doc
本文 PDF 下載地址:redhat創(chuàng)建并掛載scsi磁盤測試.pdf
| 留言與評(píng)論(共有 0 條評(píng)論) |