儲存學習之--StarWind虛擬儲存配置和Linux用戶端串連

來源:互聯網
上載者:User

標籤:儲存study

儲存學習之--StarWind虛擬儲存配置和Linux用戶端串連

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/4D/3C/wKioL1ROAqfj4ZKSAAC6Zs3hldY261.jpg" title="sw9.png" alt="wKioL1ROAqfj4ZKSAAC6Zs3hldY261.jpg" />

     在Windows 2008 Server上安裝好StarWind後,就可以對它進行配置了

一、配置基本的StarWind

1、啟動StarWind管理器

  預設情況下,StarWind管理器放在工作列的右下角

650) this.width=650;" border="0" src="http://img1.51cto.com/attachment/201205/154958643.png" alt="154958643.png" style="padding:0px;margin:0px;vertical-align:top;border:none;" />

650) this.width=650;" border="0" src="http://img1.51cto.com/attachment/201205/155013135.png" alt="155013135.png" width="650" style="padding:0px;margin:0px;vertical-align:top;border:none;" />


2、添加主機(如果是本機,輸入127.0.0.1即可)

650) this.width=650;" border="0" src="http://img1.51cto.com/attachment/201205/155038782.png" alt="155038782.png" style="padding:0px;margin:0px;vertical-align:top;border:none;" />

650) this.width=650;" border="0" src="http://img1.51cto.com/attachment/201205/155052612.png" alt="155052612.png" style="padding:0px;margin:0px;vertical-align:top;border:none;" />

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/4D/3B/wKioL1RN9omT3jtAAAPW7WnNAkc700.jpg" title="sw1_1.png" alt="wKioL1RN9omT3jtAAAPW7WnNAkc700.jpg" />

3、串連到主機

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/4D/3A/wKiom1RN9z6Bu7FjAAQzIOzACRk653.jpg" title="sw2.png" alt="wKiom1RN9z6Bu7FjAAQzIOzACRk653.jpg" />

預設使用者名為:root ,預設的密碼為:starwind

4、接下來添加target

650) this.width=650;" title="clip_image020" border="0" alt="clip_image020" height="271" src="http://img1.51cto.com/attachment/201112/12/1041326_13236700753pqV.jpg" style="padding:0px;margin:0px;vertical-align:top;border:0px;background-image:none;" />

輸入一個target名稱

650) this.width=650;" title="clip_image022" border="0" alt="clip_image022" height="409" src="http://img1.51cto.com/attachment/201112/12/1041326_1323670076JqZD.jpg" style="padding:0px;margin:0px;vertical-align:top;border:0px;background-image:none;" />

選擇儲存的介質類型,分別是硬碟,光碟機,磁帶,這裡選硬碟hard disk

650) this.width=650;" title="clip_image024" border="0" alt="clip_image024" height="405" src="http://img1.51cto.com/attachment/201112/12/1041326_1323670078rQEF.jpg" style="padding:0px;margin:0px;vertical-align:top;border:0px;background-image:none;" />

選擇裝置的介質類型,分別是物理,基本虛擬,進階虛擬,這裡選第二個

650) this.width=650;" title="clip_image026" border="0" alt="clip_image026" height="407" src="http://img1.51cto.com/attachment/201112/12/1041326_1323670080HOhl.jpg" style="padding:0px;margin:0px;vertical-align:top;border:0px;background-image:none;" />

下一步選第一個image file device

650) this.width=650;" title="clip_image028" border="0" alt="clip_image028" height="405" src="http://img1.51cto.com/attachment/201112/12/1041326_1323670082BBkB.jpg" style="padding:0px;margin:0px;vertical-align:top;border:0px;background-image:none;" />

下一步分別是掛載已經存在的虛擬硬碟,建立新的虛擬硬碟,建立新的基於快照和CDP的虛擬硬碟,選第二個

650) this.width=650;" title="clip_image030" border="0" alt="clip_image030" height="408" src="http://img1.51cto.com/attachment/201112/12/1041326_1323670085qksc.jpg" style="padding:0px;margin:0px;vertical-align:top;border:0px;background-image:none;" />

虛擬硬碟路徑、大小、是否壓縮、是否加密。(虛擬硬碟是在windows下建立好的磁碟分割就可以,我的E盤分區大小50G)

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/4D/3B/wKioL1RN-QiSelSEAAKy-nUQHcQ476.jpg" style="float:none;" title="sw4.png" alt="wKioL1RN-QiSelSEAAKy-nUQHcQ476.jpg" />


test.img是建立的虛擬磁碟檔案,需要手工輸入

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/4D/3A/wKiom1RN-LSAxA4cAAOst1yv4sA319.jpg" style="float:none;" title="sw5.png" alt="wKiom1RN-LSAxA4cAAOst1yv4sA319.jpg" />


支援功能模式,Asynchronous Replication等等

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/4D/3B/wKioL1RN-QmjKkIOAAO1kbHYBZ4533.jpg" style="float:none;" title="sw6.png" alt="wKioL1RN-QmjKkIOAAO1kbHYBZ4533.jpg" />

設定緩衝模式

650) this.width=650;" title="clip_image036" border="0" alt="clip_image036" height="405" src="http://img1.51cto.com/attachment/201112/12/1041326_1323670091E0pz.jpg" style="padding:0px;margin:0px;vertical-align:top;border:0px;background-image:none;" />

建立完成

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/4D/3A/wKiom1RN-LaBEnOnAASNnO2Ofuw144.jpg" style="float:none;" title="sw7.png" alt="wKiom1RN-LaBEnOnAASNnO2Ofuw144.jpg" />

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/4D/3B/wKioL1RN-QvzzwTyAAQED_xZHzQ306.jpg" style="float:none;" title="sw8.png" alt="wKioL1RN-QvzzwTyAAQED_xZHzQ306.jpg" />


二、配置Linux Client

1、在Linux RH6帶有iscsi相關的軟體包,首先查看是否安裝了iscsi-initiator

[[email protected] ~]#rpm -qa |grep iscsi-initiator

如果沒有安裝,可以通過Linux安裝盤裡進行安裝

[[email protected] ~]# ls /media/Server/Packages/|grep scsi

iscsi-initiator-utils-6.2.0.872-10.el6.i686.rpm

lsscsi-0.23-2.el6.i686.rpm

scsi-target-utils-1.0.4-3.el6.i686.rpm


2、安裝iscsi-initiator

[[email protected] ~]# yum install -y iscsi-initiator-utils*


3、搜尋iscsi target 

[[email protected] ~]# iscsiadm -m discovery -t sendtargets -p 192.168.8.245:3260

Starting iscsid:                                           [  OK  ]

192.168.8.245:3260,-1 iqn.2008-08.com.starwindsoftware:win-oaj0hths7kg-starwind


[[email protected] ~]# iscsiadm -m discovery -t sendtargets -p 192.168.8.245

192.168.8.245:3260,-1 iqn.2008-08.com.starwindsoftware:win-oaj0hths7kg-starwind


4、串連iscsi target 

[[email protected] ~]# iscsiadm -m node -T iqn.2008-08.com.starwindsoftware:win-oaj0hths7kg-starwind -p 192.168.8.245 -l

Logging in to [iface: default, target: iqn.2008-08.com.starwindsoftware:win-oaj0hths7kg-starwind, portal: 192.168.8.245,3260]

Login to [iface: default, target: iqn.2008-08.com.starwindsoftware:win-oaj0hths7kg-starwind, portal: 192.168.8.245,3260] successful.


5、查看本機串連磁碟

[[email protected] ~]# fdisk -l

Disk /dev/sda: 32.7 GB, 32739688448 bytes

255 heads, 63 sectors/track, 3980 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: 0x00029fe5


   Device Boot      Start         End      Blocks   Id  System

/dev/sda1   *           1          64      512000   83  Linux

Partition 1 does not end on cylinder boundary.

/dev/sda2              64        3981    31459328   8e  Linux LVM

......

Disk /dev/sdd: 10.5 GB, 10485760000 bytes

64 heads, 32 sectors/track, 10000 cylinders

Units = cylinders of 2048 * 512 = 1048576 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x00000000

Disk /dev/sdd doesn‘t contain a valid partition table

磁碟/dev/sdd就是從StarWind訪問到的虛擬存放裝置

6、成功掛載的磁碟設定資訊保留在以下目錄

[[email protected] nodes]# pwd

/var/lib/iscsi/nodes

[[email protected] nodes]# ls

iqn.2008-08.com.starwindsoftware:win-oaj0hths7kg-starwind

7、卸載iscsi target命令

[[email protected] nodes]# iscsiadm -m node -T iqn.2008-08.com.starwindsoftware:win-oaj0hths7kg-starwind -p 192.168.8.245:3260 –u

其他一些操作命令可以查看iscsiadm的協助獲得

本文出自 “天涯客的blog” 部落格,請務必保留此出處http://tiany.blog.51cto.com/513694/1568481

儲存學習之--StarWind虛擬儲存配置和Linux用戶端串連

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.