Get the App
SLTechnology News&Howtos  ›  Servers  › 

Iscsi network storage configuration for centos7

Shulou Source: shulou.com Published: 2022-06-02 18:15:36 11月14日 Update

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

Tags: Services configuration disk storage success name port customer object file network card software logic snooping network host warehouse divergence command address Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Redmi MySQL vpn MariaDB