Dell NX3100配置

一、一、 存储服务端配置
 
默认存储系统已经安装了Microsoft iSCSI Software Target软件包;
1.1 创建ISCSI目标和存储
点击开始-->所有程序-->管理工具-->Microsoft iSCSI Software Targe;右击iSCSI目标,点击创建iSCSI目标。
Dell NX3100配置
 
给iSCSI 目标命名,注意这里只能采用英文和数字来命名:

Dell NX3100配置

点击高级:
Dell NX3100配置
 
选择添加: 在标识符类型处选择”IP地址”,并填入客户端的访问IP地址(这里192.168.100.183为客户端IP);
Dell NX3100配置
 
点击确定回到”创建iSCSI目标向导”对话框,点击“下一步”:

Dell NX3100配置

点击完成,创建完成ISCSI目标:

Dell NX3100配置

 

1.2创建虚拟磁盘
右击设备,选择创建虚拟磁盘:
Dell NX3100配置
 
定义一个磁盘的路径,注意后缀名是 .vhd
Dell NX3100配置
 
输入要创建的磁盘大小:
Dell NX3100配置
 
磁盘描述可以不输入:
Dell NX3100配置
 
选择用于访问这块磁盘的 ISCSI目标:
Dell NX3100配置
 
点击确定,完成,这样就配置好了 ISCSI服务器端;

  Dell NX3100配置

Dell NX3100配置

 

更改监听地址,只监听在内网:
右击”Microsoft iSCSI Software Target”    ”属性”,只选择内网IP地址:
Dell NX3100配置
 
服务器上防火墙中开启 iSCSI服务:端口是 3260
 
二、 客户端(Linux)配置
安装客户端软件包:
#yum -y install iscsi-initiator-utils.x86_64
 
启动服务:系统重启后会进行登录目标
#/etc/init.d/iscsid start
 
发现目标:192.168.100.174为存储服务器端IP地址
#iscsiadm -m discovery -t st -p 192.168.100.174
192.168.100.174:3260,1 iqn.1991-05.com.microsoft:d5z37c3x-test-target
 
登录目标:
# iscsiadm -m node –T iqn.1991-05.com.microsoft:d5z37c3x-test-target -l
Logging in to [iface: default, target: iqn.1991-05.com.microsoft:d5z37c3x-test-target, portal: 125.39.195.174,3260] (multiple)
Logging in to [iface: default, target: iqn.1991-05.com.microsoft:d5z37c3x-test-target, portal: 192.168.100.174,3260] (multiple)
Logging in to [iface: default, target: iqn.1991-05.com.microsoft:d5z37c3x-test-target, portal: 2002:7d27:c3ae::7d27:c3ae,3260] (multiple)
iscsiadm: Could not login to [iface: default, target: iqn.1991-05.com.microsoft:d5z37c3x-test-target, portal: 125.39.195.174,3260].
iscsiadm: initiator reported error (19 - encountered non-retryable iSCSI login failure)
Login to [iface: default, target: iqn.1991-05.com.microsoft:d5z37c3x-test-target, portal: 192.168.100.174,3260] successful.
 
分区:超过2TB,使用GPT,不能使用MBR
 
# parted /dev/sda
GNU Parted 1.8.1
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p                                                               
Error: Unable to open /dev/sda - unrecognised disk label.                
(parted) mklabel gpt                                                     
(parted) p                                                               
Model: MSFT Virtual HD (scsi)
Disk /dev/sda: 16.5TB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number  Start  End  Size  File system  Name  Flags
(parted) mkpart primary 0 50%
(parted) p                                                               
Model: MSFT Virtual HD (scsi)
Disk /dev/sda: 16.5TB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number  Start   End     Size    File system  Name     Flags
 1      17.4kB  8246GB  8246GB               primary     
(parted) mkpart primary 50% 100%
(parted) p                                                               
Model: MSFT Virtual HD (scsi)
Disk /dev/sda: 16.5TB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number  Start   End     Size    File system  Name     Flags
 1      17.4kB  8246GB  8246GB               primary     
 2      8246GB  16.5TB  8246GB               primary     
(parted) quit                                                            
Information: Don't forget to update /etc/fstab, if necessary.            
 
格式化:
# mkfs.ext3 /dev/sda1
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
1006632960 inodes, 2013265915 blocks
100663295 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
61440 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
        102400000, 214990848, 512000000, 550731776, 644972544, 1934917632
Writing inode tables: done                          
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 29 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
 
挂载:
#mount /dev/sda1 /media
# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/cciss/c0d0p3     3.9G  319M  3.4G   9% /
/dev/cciss/c0d0p8     483G  198M  458G   1% /data
/dev/cciss/c0d0p7     7.8G  226M  7.2G   3% /var
/dev/cciss/c0d0p6      20G  173M   19G   1% /home
/dev/cciss/c0d0p5      20G  1.8G   17G  10% /usr
/dev/cciss/c0d0p1     996M   40M  905M   5% /boot
tmpfs                 5.9G     0  5.9G   0% /dev/shm
/dev/sda1             7.4T  184M  7.1T   1% /media
/dev/sda2             7.4T  178M  7.1T   1% /mnt
 
测试:
# dd if=/dev/zero of=/mnt/test bs=1M count=10000
10000+0 records in
10000+0 records out
10485760000 bytes (10 GB) copied, 466.882 seconds, 22.5 MB/s
 
 


来自为知笔记(Wiz)


你可能感兴趣的:(Dell NX3100配置)