Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. ## Install open-iscsi
  2.  
  3. ```sh
  4. sudo apt-get install open-iscsi
  5. ```
  6.  
  7. ## Configure client
  8.  
  9. vi /etc/iscsi/iscsid.conf
  10.  
  11. ```conf
  12. # line 53: uncomment
  13. node.session.auth.authmethod = CHAP
  14.  
  15. # line 57,58: uncomment and set username and password which set on iSCSI Target
  16. node.session.auth.username = username
  17. node.session.auth.password = password
  18. ```
  19.  
  20. Restart iSCSI initior
  21. ```sh
  22. /etc/init.d/open-iscsi restart
  23. ```
  24.  
  25. ## Discovery & Login
  26.  
  27. ```sh
  28. sudo iscsiadm -m discovery -t sendtargets -p 10.1.1.2
  29. sudo iscsiadm -m node -o show
  30. sudo iscsiadm -m node --login
  31. sudo iscsiadm -m session -o show
  32. cat /proc/partitions
  33. ```
  34.  
  35. ## Mount
  36.  
  37. ```sh
  38. sudo mount /dev/sdb1 /mnt
  39. ```
  40.  
  41. ## Other operations
  42.  
  43. ```sh
  44. # delete node
  45. sudo iscsiadm -m node -p 10.1.1.2 --op=delete
  46. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement