Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Openfiler storage configuration

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Blogger QQ:819594300

Blog address: http://zpf666.blog.51cto.com/

Friends who have any questions can contact the blogger, the blogger will help you answer, thank you for your support!

The experimental topology is as follows

Experimental environment:

The company has two esxi hosts, the first one is responsible for building web server, mail server, in order to prevent hard disk damage caused by service termination, so the use of raid5 volume. Another esxi host is used to build a database server. The database server usually has automatic backup, so it is possible not to do raid5, but to improve the speed of reading and writing data, do RAID0 volumes.

The steps of the experiment:

1. Install Openfiler, add 5 disks, 3 do RAID5, 2 do RAID0, respectively, give them to two esxi hosts.

2. Create an iSCSI port group on two esxi hosts and connect to shared storage.

3. Migrate the linux virtual machine on one of the esxi hosts to another esxi host (note that the storage is migrated first, and then the virtual machine)

4. In the process of migrating the linux virtual machine, the host ping linux virtual machine is used to communicate with ping all the time without interruption.

4. Cut off a piece of raid5 disk, and the linux virtual machine can be used normally.

The steps of the experiment:

Install the openfiler database server and its configuration on the client web page

1. Install openfiler

2 、

3 、

4 、

5 、

6 、

7 、

8 、

9 、

10 、

11 、

12 、

13 、

14 、

15 、

16 、

17 、

18 、

After installation and restart, modify permanent IP address first

Vim / etc/sysconfig/network-scripts/ifcfg-eth0

19 、

Init 0 shutdown, and then add 5 hard drives, this experiment we add 30g each, and then turn it on, enter the account password to enter!

20. At this time, the work of openfiler is all finished, just turn on the computer, don't worry about him.

21. Our VM1 network card on the real machine has been changed from IP to 192.168.100.200.

22 、

23 、

24 、

25 、

26 、

27 、

Then repeat steps 25-27 until all five hard drives are added to the block device.

29 、

30 、

31 、

32. After completing steps 30 and 31, you can see that the soft array RAID5 and RAID0 logical volumes have been created: as shown in the following figure

33. After the logical volume is built, we need to create a volume group:

34 、

35. In step 34, we create another volume group called raid0, and the final result is as follows:

36 、

37 、

38. Then we select raid5 at ① in step 37, and the following interface appears

39 、

40. For the explanation of this step in the picture, refer to step 37.

41 、

42 、

43 、

44 、

The completion result of the mount in steps 45 and 44 is as follows:

46 、

47 、

48. When you complete step 47, you can see the effect of ACL on the current page:

49 、

50 、

51 、

52 、

53. At this point, the web page setting of openfiler through the client ends.

Second, create an iSCSI port group on two esxi hosts and connect to shared storage.

1. Add four network cards to each of the two ESXi hosts, and then power on

2. Log in to vClient

3 、

4 、

5 、

6 、

7 、

8 、

9 、

10 、

11 、

12 、

13 、

14 、

15 、

16 、

17 、

18 、

19 、

20 、

21 、

22 、

23 、

24 、

25 、

26 、

27, the memory of the above step can first select a point of the next step, we first click the one with a LUN of 0, which is raid5.

28 、

29 、

30 、

31 、

32 、

33. Repeat the steps from 25 to 32 to add raid0. The final result is as follows:

34. Repeat steps 3 to 33 to add two memories on another ESXi host. It is worth noting that only the first ESXi host completes the last step of adding two memories. As long as the other host ESXi completes step 23, you can see all the memory added by the first ESXi host in the memory interface of step 24.

This is the status of the image above, and only one is shown here, which is the picture I took from other videos. In fact, it should be two. Anyway, if you see two memories in this state, just wait a few seconds.

35 、

Now we turn on the virtual machine, open the console, and configure the IP address. The IP address we assigned to the virtual machine is 192.168.100.201.

36 、

37. We ping openfiler the IP192.168.100.100 of the memory on the virtual machine. We can Ping it without turning it off, and keep it ping all the time.

38. Start the migration work now

39 、

40 、

41 、

42 、

43 、

44. After a long migration process, we can see that the ping of the Linux virtual machine has been continuous.

45 、

46. After the data storage of the virtual machine is migrated, the next step is to migrate the virtual machine host.

47 、

48 、

49 、

50 、

51 、

52 、

53. Now when we go to openfile and cut off the hard disk of a raid5 volume, we can see that the virtual machine is still good and can still ping.

54. In the red box below, you can see that the disconnection of a hard disk has a little impact, but the time is very short, and the virtual machine instantly restores the ping.

55. At this point, all the contents of this experiment are over!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report