Allocating disks under Linux

Source: Internet
Author: User

in theLinuxInstallation and ConfigurationInitiator

Mount

[Email protected] ~]# Mkdir/mnt/cdrom

[Email protected] ~]# Mount/dev/cdrom/mnt/cdrom

Install package

[Email protected] ~]# cd/mnt/cdrom/

[[email protected] cdrom] #cd packages/

[Email protected]]# ls iscsi*

iscsi-initiator-utils-6.2.0.873-2.el6.x86_64.rpm

[Email protected]]# RPM-VIH iscsi-initiator-utils-6.2.0.873-2.el6.x86_64.rpm

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/46/34/wKiom1PvCknjX3hrAAIQZNQOIJI862.jpg "title=" Picture 198.jpg "alt=" Wkiom1pvcknjx3hraaiqznqoiji862.jpg "/>

to create a new client in the administration console

in the the SAN client adds

selected ISCSL Next

Select Ip Address Table next

Select or add initiators assigned to the client Next Step

Step by step down until the completion .

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/46/36/wKioL1PvC3Ch7YJxAAGzcgGN3xc795.jpg "title=" Picture 199.jpg "alt=" wkiol1pvc3ch7yjxaagzcggn3xc795.jpg "/>650) this.width=650; src=" http://s3.51cto.com/wyfs02/M00 /46/34/wkiom1pvcmlirgkdaaeuihlhatq403.jpg "title=" Image 200.jpg "alt=" wkiom1pvcmlirgkdaaeuihlhatq403.jpg "/>650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/46/36/wKioL1PvC4nDmprBAAEJAM7MfJA063.jpg "title=" Picture 201.jpg " alt= "Wkiol1pvc4ndmprbaaejam7mfja063.jpg"/>

When done, enter:

[Email protected]]# iscsiadm-m discovery-t sendtargets-p 192.168.188.129

192.168.188.129:3260,0iqn.2000-03.com.falconstor-ipstor.falconstor-cdpva.22b1279ae764-0

assigning disks to clients

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/46/36/wKioL1PvC6qxQob4AAFMo48DLmQ657.jpg "title=" Picture 202.jpg "alt=" wkiol1pvc6qxqob4aafmo48dlmq657.jpg "/>650) this.width=650; src=" http://s3.51cto.com/wyfs02/M01 /46/36/wkiol1pvc7ajk2dsaagrfrm6qkc926.jpg "title=" image 203.jpg "alt=" wkiol1pvc7ajk2dsaagrfrm6qkc926.jpg "/>650) this.width=650, "width=" 262 "height=" "src=,"/e/u261/themes/default/images/spacer.gif "alt=" Picture 204.bmp "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "/>650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/46/34/wKiom1PvCtnQWQWdAAFRxQ9wW7w983.jpg "title=" Picture 205.jpg " alt= "Wkiom1pvctnqwqwdaafrxq9ww7w983.jpg"/>650) this.width=650; src= http://s3.51cto.com/wyfs02/M00/46/36/ Wkiol1pvc_3wsu0iaahjibxlmmq419.jpg "title=" image 206.jpg "alt=" wkiol1pvc_3wsu0iaahjibxlmmq419.jpg "/>650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/46/34/wKiom1PvCu_TziLcAAGc-PtG2Rs122.jpg "title=" Picture 207.jpg " Alt= "Wkiom1pvcu_tzilcaagc-ptg2rs122.jpg "/>650) this.width=650;" Src= "http://s3.51cto.com/wyfs02/M01/46/36/ Wkiol1pvdbpx27maaad9b70lvdq365.jpg "title=" image 208.jpg "alt=" Wkiol1pvdbpx27maaad9b70lvdq365.jpg "/>

When you are finished, the window that will be allocated disk is displayed. you can do it with one step at a choice.

On the client, enter

[Email protected]]# iscsiadm-m node- Tiqn.2000-03.com.falconstor-ipstor.falconstor-cdpva.22b1279ae764-0192.168.188.129-l

Connecting to a server

[Email protected] packages]# fdisk-l

disk/dev/sda:42.9 GB, 42949672960 bytes

255 heads, Sectors/track, 5221 cylinders

Units = Cylinders of 16065 * 8225280bytes

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

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

Disk IDENTIFIER:0X000A4EFC

Device Boot Start End Blocks Id System

/DEV/SDA1 * 1 512000 Linux

Partition 1 does not end on cylinderboundary.

/dev/sda2 5222 41430016 8e Linux LVM

disk/dev/mapper/volgroup-lv_root:38.2 gb,38226886656 bytes

255 heads, Sectors/track, 4647 cylinders

Units = Cylinders of 16065 * 8225280bytes

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

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

Disk identifier:0x00000000

disk/dev/mapper/volgroup-lv_swap:4194 mb,4194304000 bytes

255 heads, Sectors/track, 509 cylinders

Units = Cylinders of 16065 * 8225280bytes

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

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

Disk identifier:0x00000000

disk/dev/sdb:21.5 GB, 21474836480 bytes

Heads, Sectors/track, 20480 cylinders

Units = Cylinders of 2048 * 1048576bytes

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

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

Disk identifier:0x00000000

20G disk appears

Success.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.