How to remove open-iscsi.services in Ubuntu 18.04

 

1-Opwn puty to login to Ubuntu Sever

                   Use Command: systemctl -t service (To check services running)


2-Remove open-iscsi

                   Command: apt -y remove  open-iscsi


3-Delete directory open-iscsi

          Command:

 

4- Check file and folder

          Command: cd /etc/

                                      ll


5-Verifiy service open-iscsi

 

Services was remove on system

6-Reinstall open-sicsi

          Command: apt -y install open-iscsi


7-Edit file initiatorname.iscsi

              vi /etc/iscsi/initiatorname.iscsi

# change to the same IQN you set on the iSCSI target server

InitiatorName=iqn.2000-01.com.synology:RackStation.Target-14.608e5f6ad2


8-Edit file iscsid.conf (To set password of Target Synology)

# line 56: uncomment

node.session.auth.authmethod = CHAP

 

# line 60,61: uncomment and specify the username and password you set on the iSCSI target

node.session.auth.username = username

node.session.auth.password = password

 

9-Restart Service open-iscsi

                           root@www:~# systemctl restart iscsid open-iscsi

                 10-Discover target

                           root@www:~# iscsiadm -m discovery -t sendtargets -p 172.20.20.253

                           10.0.0.30:3260,1 iqn.2018-05.world.srv:dlp.target01

11- confirm status after discovery

root@www:~# iscsiadm -m node -o show

 


12- login to the target

                           root@www:~# iscsiadm -m node --login

                       13-confirm the established session

                           root@www:~# iscsiadm -m session -o show

                           tcp: [1] 10.0.0.30:3260,1 iqn.2018-05.world.srv:dlp.target01 (non-flash)

                       14-confirm the partitions

                           root@www:~# cat /proc/partitions


15-Show HDD

 


16-Create new  partition volumn,

                                         Plesase follow step it

 

Show Hardisk

 

17-Format volume sdb1


18- Mount volume to home/backup directory

 

19-Show directory mount volume



video guidelines




Post a Comment

Previous Post Next Post

Contact Form