[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 出现以下则表示有共享磁盘 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 |
本文发布于:2023-06-07 11:11:19,感谢您对本站的认可!
本文链接:https://www.wtabcd.cn/zhishi/a/1686107480212738.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文word下载地址:redhat创建并挂载scsi磁盘测试.doc
本文 PDF 下载地址:redhat创建并挂载scsi磁盘测试.pdf
留言与评论(共有 0 条评论) |