| 1 |
[[feature-storaged]] |
| 2 |
= storaged |
| 3 |
|
| 4 |
If available on the system, Cockpit uses |
| 5 |
https://github.com/storaged-project/storaged/[`+storaged+`] to configure |
| 6 |
and monitor storage, disks, mounts etc. on the system. This |
| 7 |
functionality is present in the Cockpit _storaged_ package. |
| 8 |
|
| 9 |
The `+storaged+` project is originally based on a project called |
| 10 |
https://www.freedesktop.org/wiki/Software/udisks/[`+udisks+`] and added |
| 11 |
support for many more features such as |
| 12 |
https://en.wikipedia.org/wiki/Logical_Volume_Manager_(Linux)[LVM], |
| 13 |
https://en.wikipedia.org/wiki/ISCSI[iSCSI], |
| 14 |
https://en.wikipedia.org/wiki/Linux_DM_Multipath[Multipath], and |
| 15 |
https://btrfs.wiki.kernel.org/index.php/Main_Page[BTRFS]. The same tools |
| 16 |
and backwards compatible API are available between `+storaged+` and |
| 17 |
`+udisks+` the projects. Cockpit can use `+udisks+` but disables many of |
| 18 |
it's storage related features, including updating `+/etc/fstab+` and |
| 19 |
`+/etc/crypttab+` for stability reasons. |
| 20 |
|
| 21 |
For non root users, storaged controls access to its APIs via |
| 22 |
xref:privileges.adoc[Policy Kit] and a user logged into Cockpit will have |
| 23 |
the same permissions as they do from the command line. |
| 24 |
|
| 25 |
To perform similar tasks from the command line, use the `+storagedctl+` |
| 26 |
command: |
| 27 |
|
| 28 |
.... |
| 29 |
$ udisksctl dump |
| 30 |
... |
| 31 |
.... |
| 32 |
|
| 33 |
To perform LVM tasks, you may use the various LVM commands, such as |
| 34 |
`+vgcreate+`, `+lvresize+` and so on. Cockpit will detect such changes |
| 35 |
made at the command line. |
| 36 |
|
| 37 |
Cockpit recognizes devices with multiple paths and can start the |
| 38 |
`+multipathd+` service in case it is not running. On the command line, |
| 39 |
you can control multipath features with the `+mpathconf+`, |
| 40 |
`+multipathd+`, and `+multipath+` commands. |
| 41 |
|
| 42 |
To manage iSCSI initiators from the command line, you can use |
| 43 |
`+iscsiadm+` and related tools. |