In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
In this article, we use starwind virtual storage to set up. The following is an explanation of the experimental environment:
Windows environment: win7, ip address:10.3.5.7, iscsi initiator name: iqn.2008-08.com.starwindsoftware:joker-pc-aix
Aix environment: ip address 10.3.5.250, iscsi initiator name: iqn.localhost.hosted.7f00001
I. Starwind Configuration Description
As shown in the figure, open starwind, right click "Add Host" to add host.
Click "OK" to complete the addition, as shown in the following figure, right click "Connect".
The default username is root and the default password is starwind.
After the connection is successful, right-click "Add Target" to add a shared disk.
(Note: The first item is hard disk, the second item is optical drive, and the third item is tape equipment.) Here we choose hard disk)
(Note: The first item is physical hard disk, the second item is basic virtual hard disk, and the third item is advanced virtual hard disk, here we choose basic virtual hard disk.)
(Note: The first item is the image file, and the second item is virtual memory. Here, we select the image file.)
(Note: The first item is to mount an existing image file, the second item is to create a new image file, and the third item is to create a new image file based on snapshots. Here, we select the second item.)
(Note: After selecting the path here, the file name needs to be entered manually.)
Click Next to add completion.
II. Configuration of iscsi in aix environment
1. Use the command to check whether iscsi is installed: lslpp -L| grep -i iscsi, as shown below:
You can also use lsdev.| grep iscsi View the iscsi device, and the following figure indicates that it is installed.
(AIX systems generally come with iscsi initiator, if not installed, install it yourself.)
The requested URL/etc/iscsi/was not found on this server.
vi /etc/iscsi/targets
Add target information (windows environment) to the last line of the file, as shown below:
10.3.5.7 3260 iqn.2008-08. com.starwindsoftware:joker-pc-aix
(Note: The format of the message is IP address + port number +iqn. If you don't know how to edit vi, please use Baidu yourself. #is a comment in vi editor.)
3. Execute cfgmgr -l iscsi0 (see device number in 1) and rescan iscsi devices.
The following figure shows that hdisk1 has been recognized when executing the lspv command. You can use lsattr -El hdisk1 to view the device details.
hdisk1 is the newly found iscsi disk. aix treats hdisk1 as a bare disk (physical hard disk). Next, we need to change the hard disk into a physical volume (pv) to use the disk.
III. Simple disk management
1. Create a physical volume
chdev -l hdisk1-a pv=yes (-l hdisk1 is the hard disk name, -a pv=yes is used to turn the hard disk into a physical volume and assign a unique PVID.)
Create a vg (volume group)
mkvg -y iscsivg hdisk1 (iscsivg is the newly created volume group name)
Volume group details can be viewed using the command lsvg -piscsivg
Create an LV (Logical Volume)
mklv -y iscsilv iscsivg 128 (iscsilv is the name of the newly created volume, and the logical volume has 128 logical partitions, each logical partition default size is 4MB).
Logical volume information can be viewed using the command lslv iscsilv.
Create a file system for logical volumes
crfs -v jfs2 -m /mnt/iscsi -d iscsilv
In crfs command, -v specifies the file type to be created, here jfs2;-m specifies the mount point, here the/mnt/iscsi directory (created by # mkdir /mnt/iscsi command);-d specifies the logical volume to be mounted, here iscsilv. The newly created logical volume group iscsivg and logical volume iscsilv can be found under the/mnt directory.
At this point, the aix system can successfully access the storage device.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.