In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
In this issue, the editor will bring you about how to configure shared storage Openfiler. The article is rich in content and analyzes and describes for you from a professional point of view. I hope you can get something after reading this article.
Openfiler configuration
Today, I virtualized shared storage in VM ESXi and chose the free openfiler tool to implement according to the suggestion of my friends. Download and install openfiler. Net on vmware. The installation process is similar to linux installation and is relatively simple. I will not repeat it here. After installation, you can configure openfiler by visiting https://ip address: 446.This test address is https://192.168.1.51:446, WEB admin default username: openfiler, WEB admin default password: password
The first step, create a physical partition
That is, physical volumes. Click the main menu Volumes, and then click the right menu Block Devices. See the following page. You can see that there is currently 1 hard drive in the system, and hda has been installed. Openfiler,sda is an unused SCSI hard drive.
After clicking / dev/sda, there is an option to create a physical volume at the bottom of the page. There are three types of partitions: Extended partition, Physical volume, and RAID array member. Here we select Physical volume, take the entire hard disk as a partition, and click create to create a physical volume.
The second step is to establish a volume group
Click the main menu Volumes, the right menu Volume Groups, check / dev/sda1 at the create volume group name datavg,Select physical volumes to add at Volume group name, and click the Add volume group button to create a datavg volume group.
The third step is to establish a logical volume
Click the main menu Volumes, the right menu Add Volume, in Select Volume Group, select the datavg volume you just created, in the Create a volume in "datavg" table, enter the volume size 256m at Volume Name where the volume name is crs,Required Space (MB), select iSCSI at Filesystem / Volume type, and click the Create button to create the volume. Create vot and asm1, asm2, asm3 logical volumes in the same way, and the result is shown in the following figure.
Step 4: start the ISCSI service
Click the main menu Services. In Manage Services, click Enable under the iSCSI target server column Modification. After clicking, the Status changes to Enable, indicating that the iSCSI target server service has been enabled.
Step 5, set the access restriction host
Click the main menu System, fill in the hostname, IP address and subnet mask of the 2 RAC hosts in Newwork Access Configuration at the bottom of the page, and click update to add.
Step 6, set up ISCSI Targets
Click the main menu Volumes, and then click the right menu iSCSI Targets. Click Target Configuration, click the Add button, and add a new iSCSI Target. Click the LUN Mapping button, click the Map button, map Target, click this button will become the Unmap button. After mapping, it is shown in the following figure:
Click Network ACL,Access to select Allow, allow the 2 rac nodes you just added to use iSCSI, and click Update, as shown in the following figure
Rac host configuration
The rac host needs to install iscsi initiato, start the iscsi service and look for iscsi target to find the disk assigned by openfiler.
(the host operating system version is Linux orcl1 2.6.18-164.el5 # 1 SMP Thu Sep 10 06:20:05 EDT 2009 i686 i686 i386 GNU/Linux, and the installed iscsi initiator version is iscsi-initiator-utils-6.2.0.868-0.7.el5.i386.)
First step, start the iscsi service
Service iscsi start
The second step is to find the disks allocated by iscsi target
Iscsiadm-m discovery-t sendtargets-p 192.168.0.44pur3260
Step 3, restart the iscsi service
Service iscsi restart
The system prompts:
[root@node1 by-path] # service iscsi restart
Logging out of session [sid: 1, target: iqn.2006-01.com.openfiler:tsn.e6748ad51814, portal: 192.168.1.51 Magi 3260]
Logout of [sid: 1, target: iqn.2006-01.com.openfiler:tsn.e6748ad51814, portal: 192.168.1.51 Magneto 3260]: successful
Stopping iSCSI daemon:
Iscsid dead but pid file exists
[OK] iSCSI daemon: [OK]
[OK]
Setting up iSCSI targets: Logging in to [iface: default, target: iqn.2006-01.com.openfiler:tsn.e6748ad51814, portal: 192.168.1.51 Magi 3260]
Login to [iface: default, target: iqn.2006-01.com.openfiler:tsn.e6748ad51814, portal: 192.168.1.51 Magneto 3260]: successful
Step 4, look at the disk
Fdisk-l on the rac host to check the disk status, can find all the disks of MAPPING.
(note: if there is any of the following in the openfiler system / etc/initiators.deny file, please add the # comment out, otherwise the hard disk assigned by target will not be recognized normally. Iqn.2006-01.com.openfiler:tsn.e6748ad51814 ALL)
At this point, the openfiler configuration is complete, and shared storage is recognized by both rac hosts.
The above is how to configure shared storage Openfiler for everyone. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.
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.