mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-11 22:58:46 +00:00
Update cheatsheets
This commit is contained in:
37
tldr/linux/iscsiadm
Normal file
37
tldr/linux/iscsiadm
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# iscsiadm
|
||||
|
||||
> Manage iSCSI sessions, nodes, and discovery.
|
||||
> More information: <https://manned.org/iscsiadm>.
|
||||
|
||||
- Show active iSCSI sessions:
|
||||
|
||||
`sudo iscsiadm {{[-m|--mode]}} session`
|
||||
|
||||
- List all known iSCSI nodes:
|
||||
|
||||
`sudo iscsiadm {{[-m|--mode]}} node`
|
||||
|
||||
- Discover available iSCSI targets on a portal (no authentication):
|
||||
|
||||
`sudo iscsiadm {{[-m|--mode]}} discovery {{[-t|--type]}} sendtargets {{[-p|--portal]}} {{ip_address}}`
|
||||
|
||||
- Log in to a specific iSCSI target without authentication:
|
||||
|
||||
`sudo iscsiadm {{[-m|--mode]}} node {{[-T|--targetname]}} {{iqn}} {{[-p|--portal]}} {{ip_address}}:3260 {{[-l|--login]}}`
|
||||
|
||||
- Log out from a specific iSCSI target:
|
||||
|
||||
`sudo iscsiadm {{[-m|--mode]}} node {{[-T|--targetname]}} {{iqn}} {{[-p|--portal]}} {{ip_address}}:3260 {{[-u|--logout]}}`
|
||||
|
||||
- Create an iSCSI node when discovery is blocked (for CHAP authentication):
|
||||
|
||||
`sudo iscsiadm {{[-m|--mode]}} node {{[-o|--op]}} new {{[-T|--targetname]}} {{iqn}} {{[-p|--portal]}} {{ip_address}}:3260`
|
||||
|
||||
- Configure CHAP authentication for an iSCSI target:
|
||||
|
||||
`sudo iscsiadm {{[-m|--mode]}} node {{[-T|--targetname]}} {{iqn}} {{[-p|--portal]}} {{ip_address}}:3260 {{[-o|--op]}} update {{[-n|--name]}} node.session.auth.authmethod {{[-v|--value]}} CHAP`
|
||||
Reference in New Issue
Block a user