|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
如果您觉得本篇CentOSLinux教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的好朋友们!实行装备:
用假造机假造两个centos6.3-64bit体系,并设置好yum
ip设置:
scsi办事端:10.1.1.222
scsi客户端(挂载端):10.1.1.1
实行入手下手:
1、在办事端装置软件并设置好同享的磁盘,起首在假造机中新到场一块硬盘,巨细随便。(这里增加100G)
[size=1em][size=1em][root@localhost~]#fdisk-l
[size=1em]
[size=1em]Disk/dev/sda:21.5GB,21474836480bytes
[size=1em]255heads,63sectors/track,2610cylinders
[size=1em]Units=cylindersof16065*512=8225280bytes
[size=1em]Sectorsize(logical/physical):512bytes/512bytes
[size=1em]I/Osize(minimum/optimal):512bytes/512bytes
[size=1em]Diskidentifier:0x0005bb6c
[size=1em]
[size=1em]DeviceBootStartEndBlocksIdSystem
[size=1em]/dev/sda1*12620480083Linux
[size=1em]Partition1doesnotendoncylinderboundary.
[size=1em]/dev/sda226281204800082Linuxswap/Solaris
[size=1em]Partition2doesnotendoncylinderboundary.
[size=1em]/dev/sda328126111871769683Linux
[size=1em]
[size=1em]Disk/dev/sdb:107.4GB,107374182400bytes
[size=1em]255heads,63sectors/track,13054cylinders
[size=1em]Units=cylindersof16065*512=8225280bytes
[size=1em]Sectorsize(logical/physical):512bytes/512bytes
[size=1em]I/Osize(minimum/optimal):512bytes/512bytes
[size=1em]Diskidentifier:0x00077087
[size=1em]
[size=1em]DeviceBootStartEndBlocksIdSystem
2、装置scsi办事端软件
[size=1em][size=1em]yuminstallscsi-target-utils-y
同享磁盘(在设置文件中到场以下代码便可)
[size=1em][size=1em]vim/etc/tgt/targets.conf
[size=1em]<targetiqn.2008-09.com.example:server.target1>
[size=1em]backing-store/dev/sdb
[size=1em]</target>
启动办事
[size=1em][size=1em]servicetgtdrestart
|
|