How To Connect And Mount iSCSI Onto Linux Servers

Before start with this article, please check our previous guide how to install and configure openfiler.

Now we will explian how to add the target disk to our local server.

Details:

 

 

The commands bellow should be working in other Linux distro.

First, install some needed packages.

Centos :

 

 

Ubuntu:

 

 

Opensuse

 

 

Discovering targets in iSCSI server:

 

 

Trying to login with the iSCSI LUN:

 

 

 

With this command is reponsible of the update of  iSCSI targets database for the files located in /var/lib/iscsi/ :

 

 

Now check if the disk add to your machine

 

 

 

 

 

 

 

 

Create file system in this disk

 

 

 

 

 

 

 

and

 

 

 

 

Prepare the directory to mount the disk.

 

 

Please add this to mount the net drive with Linux start.
add this to /etc/fstab.

 

 

and

 

 

There are three ways to disable or delete an iSCSI target.

First, to disable an iSCSI target:

 

 

Second, it is possible to delete the target’s record ID:/p>

 

 

Thirdly, stop the iSCSI service.

Enjoy!

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s