Skip to content

Instantly share code, notes, and snippets.

View flaf's full-sized avatar

François Lafont flaf

View GitHub Profile
@flaf
flaf / ceph-ansible-basic-test.md
Last active December 4, 2018 11:16
Ceph-ansible basic test
~$ git branch 
  master
* origin/stable-3.2

~$ cat ../hosts 
[mons]
mon

[osds]
@flaf
flaf / ceph-ansible-test-with-docker.md
Created November 30, 2018 11:07
Problem with ceph-ansible => KeyError: 'mon_group_name'

I'm testing ceph-ansible to install a little Ceph cluster in a VM and I have this error:

root@bionic-vbox:~/ceph-ansible# cat /etc/ansible/hosts 
[mons]
mon

[osds]
mon
@flaf
flaf / nfs-noboby-stored.md
Last active November 27, 2018 15:07
NFS and nobody sur la baie SAN

Le gid 551 est mappé en nobody sur les NFS :

root@stored-m:~> mount | grep ' nfs '
compellent-nas-sma.in.ac-versailles.fr:/bkp_stored on /stored2/SAUVEGARDE_IMAP type nfs (rw,user=root,noexec,nosuid,nodev,vers=4,addr=172.31.136.251,clientaddr=172.31.131.59)

root@stored-m:~> touch /tmp/foo /stored2/SAUVEGARDE_IMAP/foo
root@stored-m:~> stat --format '%n => %U(%u):%G(%g)' /tmp/foo /stored2/SAUVEGARDE_IMAP/foo | column -t
/tmp/foo                      =>  root(0):root(0)
/stored2/SAUVEGARDE_IMAP/foo  =>  root(0):root(0)
@flaf
flaf / sgdisk-error.md
Created November 22, 2018 13:28
sgdisk fails

Pourquoi le sgdisk plante en me disant que le fichier /dev/sdb n'existe pas alors que c'est pourtant le cas ?

~# lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 9.6 (stretch)
Release:	9.6
Codename:	stretch
@flaf
flaf / ceph-via-docker.md
Last active November 22, 2018 01:04
Problem to start OSD via the docker image ceph/daemon

To start the OSD docker:

~$ docker run -d --name=osd1 --restart unless-stopped --net=host --privileged=true \
       -v /etc/ceph:/etc/ceph -v /var/lib/ceph/:/var/lib/ceph -v /dev/:/dev/       \
       -e OSD_DEVICE=/dev/sdb ceph/daemon osd_ceph_disk 

But the start fails:

@flaf
flaf / NextCloud-LDAP-requests.md
Last active November 21, 2018 13:11
uid is not used during the LDAP search to set/update the avatar via LDAP

Here is an example of user in database:

MariaDB [owncloud]> select * from oc_ldap_user_mapping where ldap_dn like 'uid=cle-jehan,%' limit 10\G
*************************** 1. row ***************************
       ldap_dn: uid=cle-jehan,ou=personnels en,ou=ac-versailles,ou=education,o=gouv,c=fr
 owncloud_name: 8891ce57-1dd211b2-80000000-00000000
directory_uuid: 8891ce57-1dd211b2-80000000-00000000
1 row in set (0.00 sec)