Proxmox. Mount CephFS: различия между версиями
Перейти к навигации
Перейти к поиску
Cless (обсуждение | вклад) |
Cless (обсуждение | вклад) |
||
| Строка 1: | Строка 1: | ||
= Description = | |||
Mount CephFS device (for iso, etc.) | Mount CephFS device (for iso, etc.) | ||
=== Proxmox CLI | = Install = | ||
== Proxmox CLI == | |||
Get user admin auth Keyring from Ceph server | Get user admin auth Keyring from Ceph server | ||
| Строка 9: | Строка 11: | ||
<code>scp ceph01.local:/etc/ceph/ceph.client.admin.keyring /etc/pve/priv/ceph/ceph-rbd01.keyring</code> | <code>scp ceph01.local:/etc/ceph/ceph.client.admin.keyring /etc/pve/priv/ceph/ceph-rbd01.keyring</code> | ||
== Proxmox Web-interface == | |||
=== Root '''cephfs01''' mount === | |||
* Datacenter - Storage - Add CephFS: | * Datacenter - Storage - Add CephFS: | ||
** ID: '''cephfs01''' | ** ID: '''cephfs01''' | ||
| Строка 19: | Строка 21: | ||
** Secret key: '''<key>''' # Get key on the Ceph Server: <code>cat /etc/ceph/ceph.client.admin.keyring | awk -F" = " '/key/{print $2}'</code> | ** Secret key: '''<key>''' # Get key on the Ceph Server: <code>cat /etc/ceph/ceph.client.admin.keyring | awk -F" = " '/key/{print $2}'</code> | ||
=== Subdirectory '''cephfs01/pve''' mount === | |||
Disable created via web-interface Ceph Storage (like above) | Disable created via web-interface Ceph Storage (like above) | ||
Версия 20:24, 24 октября 2022
Description
Mount CephFS device (for iso, etc.)
Install
Proxmox CLI
Get user admin auth Keyring from Ceph server
mkdir /etc/pve/priv/ceph
scp ceph01.local:/etc/ceph/ceph.client.admin.keyring /etc/pve/priv/ceph/ceph-rbd01.keyring
Proxmox Web-interface
Root cephfs01 mount
- Datacenter - Storage - Add CephFS:
- ID: cephfs01
- Monitor(s): 192.168.199.121 192.168.199.122 192.168.199.123 # IPs of ceph nodes with MONITORs
- User name: admin
- FS Name: cephfs01
- Secret key: <key> # Get key on the Ceph Server:
cat /etc/ceph/ceph.client.admin.keyring | awk -F" = " '/key/{print $2}'
Subdirectory cephfs01/pve mount
Disable created via web-interface Ceph Storage (like above)
Unmount stoarage via CLI manually:
umount /mnt/pve/cephfs01
Add "subdir /pve" to config file:
nano /etc/pve/storage.cfg
cephfs: cephfs01
path /mnt/pve/cephfs01
content iso,snippets,backup,vztmpl
fs-name cephfs01
monhost 192.168.199.121 192.168.199.122 192.168.199.123
prune-backups keep-all=1
subdir /pve
username admin
Enable created via web-interface Ceph Storage