Discussion:
[ceph-users] Proxmox 4.4, Ceph hammer, OSD cache link...
Marco Gaiarin
2018-12-03 11:50:20 UTC
Permalink
I've recently added a host to my ceph cluster, using proxmox 'helpers'
to add OSD, eg:

pveceph createosd /dev/sdb -journal_dev /dev/sda5

and now i've:

***@blackpanther:~# ls -la /var/lib/ceph/osd/ceph-12
totale 60
drwxr-xr-x 3 root root 199 nov 21 17:02 .
drwxr-xr-x 6 root root 4096 nov 21 23:08 ..
-rw-r--r-- 1 root root 903 nov 21 17:02 activate.monmap
-rw-r--r-- 1 root root 3 nov 21 17:02 active
-rw-r--r-- 1 root root 37 nov 21 17:02 ceph_fsid
drwxr-xr-x 432 root root 12288 dic 1 18:21 current
-rw-r--r-- 1 root root 37 nov 21 17:02 fsid
lrwxrwxrwx 1 root root 9 nov 21 17:02 journal -> /dev/sda5
-rw------- 1 root root 57 nov 21 17:02 keyring
-rw-r--r-- 1 root root 21 nov 21 17:02 magic
-rw-r--r-- 1 root root 6 nov 21 17:02 ready
-rw-r--r-- 1 root root 4 nov 21 17:02 store_version
-rw-r--r-- 1 root root 53 nov 21 17:02 superblock
-rw-r--r-- 1 root root 0 nov 21 17:02 sysvinit
-rw-r--r-- 1 root root 3 nov 21 17:02 whoami

and all works as expected, only i suposed to find as a journal not the
device (/dev/sda5) but the uuid (/dev/disk/by-uuid/<UUID>).

But seems that the cache partition does not have an UUID associated:

***@blackpanther:~# ls -la /dev/disk/by-uuid/ | grep sda5
***@blackpanther:~# blkid /dev/sda5
/dev/sda5: PARTUUID="a222c6bf-05"

I'm a but ''puzzled'' because if i've to add a disk ''before'' sda, all
device name will change with, i suppose, unexpected result.


I'm missing something? Thanks.
--
dott. Marco Gaiarin GNUPG Key ID: 240A3D66
Associazione ``La Nostra Famiglia'' http://www.lanostrafamiglia.it/
Polo FVG - Via della Bontà, 7 - 33078 - San Vito al Tagliamento (PN)
marco.gaiarin(at)lanostrafamiglia.it t +39-0434-842711 f +39-0434-842797

Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000
(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)
Loading...