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

Iscsi network storage configuration for centos7

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Iscsi network storage configuration for centos7

I. configuration of iSCSI server (target)

First add a disk to the virtual machine

Configure the network card and restart the network card service

Check the differences in the system

Create a logical volume

Configure the yum repository and install targetd and targetcli

Add a target service as a boot and startup service

Firewalld adds access to port 3260, and 3260 is the port that the targetd service listens to

Use the targetcli command to open the tool

1. Create a block and give a name to the logical volume to be published. Ls checks that the created block name is created successfully.

two。 Create an iqn name, that is, create an ISCSI object. The ls view created successfully.

3. Set ACL to bind the ISCSI object to the client IP or hostname

4. Create a LUN and bind the block, and view

5. To reset the port listening address, first delete the original, recreate it, and check the success of the creation.

two。 Settings of customer initiator

1. Install the software to ensure that the rpm package for iscsi-initiator-utils is installed

two。 Give initiator a name, edit the following file, and add the field to the statement set by the previous target-side acl

3. Start the service

4. Discover Stora

5. Login Stora

6. Check to see if there is an extra disk / dev/sdb locally.

7. Format disk

8. Get the UUID of the disk to realize automatic mount when booting with UUID.

9. Create the mount point, configure the file to mount automatically, and mount-a to make the mount effective

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