<commit_before># lrbd
Simplifies iSCSI configuration of Ceph RBD images.

## Quickstart

For the impatient, follow the instructions for the simplest configuration of one initiator to one gateway to one image.  A working Ceph installation is required.

### From gateway
1. Install lrbd  
`# zypper in lrbd`
2. Create a pool  
`# ceph osd pool create swimming 256 256`
* Create an RBD image  
`# rbd -p swimming create raft --size 2048`
* Create an initial configuration  
`# lrbd -e`
* Replace *archive* with *raft* and *rbd* with *swimming*.  Replace the initiator value with your client's setting. (See /etc/iscsi/initiatorname.iscsi on Linux.) Save the file.  Run lrbd.  
`# lrbd`
* Inspect with targetcli  
`# targetcli ls`

### From client
1. Discover the target.  
`# iscsiadm -m discovery -t st -p `*gateway_address*
* Login  
`# iscsiadm -m mode -p `*gateway_address*` --login`
* Find device   
* Format, write data, read data
* Logout  
`# iscsiadm -m mode -p `*gateway_address*` --logout`

### From gateway
1. From the gateway, clear the configuration  
`# lrbd -C`
* Unmap the RBD images  
`# lrbd -u`
* Wipe the configuration from Ceph  
`# lrbd -W`

## Manual

See [Wiki](https://github.com/swiftgist/lrbd/wiki)
<commit_msg>Fixed example<commit_after># lrbd
Simplifies iSCSI configuration of Ceph RBD images.

## Quickstart

For the impatient, follow the instructions for the simplest configuration of one initiator to one gateway to one image.  A working Ceph installation is required.

### From gateway
1. Install lrbd  
`# zypper in lrbd`
2. Create a pool  
`# ceph osd pool create swimming 256 256`
* Create an RBD image  
`# rbd -p swimming create raft --size 2048`
* Create an initial configuration  
`# lrbd -e`
* Replace *archive* with *raft* and *rbd* with *swimming*.  Replace the initiator value with your client's setting. (See /etc/iscsi/initiatorname.iscsi on Linux.) Save the file.  Run lrbd.  
`# lrbd`
* Inspect with targetcli  
`# targetcli ls`

### From client
1. Discover the target.  
`# iscsiadm -m discovery -t st -p `*gateway_address*
* Login  
`# iscsiadm -m node -p `*gateway_address*` --login`
* Find device   
* Format, write data, read data
* Logout  
`# iscsiadm -m node -p `*gateway_address*` --logout`

### From gateway
1. From the gateway, clear the configuration  
`# lrbd -C`
* Unmap the RBD images  
`# lrbd -u`
* Wipe the configuration from Ceph  
`# lrbd -W`

## Manual

See [Wiki](https://github.com/swiftgist/lrbd/wiki)

{'fraction_non_alphanumeric': 0.10841423948220065, 'fraction_numerical': 0.011326860841423949, 'mean_word_length': 3.596654275092937, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6129195', 'n_tokens_mistral': 910, 'n_tokens_neox': 851, 'n_words': 327}