[caasp-beta] TR: read only fs on caasp kubernetes nodes

Le Bihan Stéphane (AMUNDI-ITS) stephane.lebihan at amundi.com
Fri Apr 13 01:47:45 MDT 2018





Stéphane Le Bihan
SDE/DSI/IPR/SSD/UNX
90, Boulevard Pasteur - 75015 Paris
Web: www.amundi.com
Tel: +33 1 76 32 32 08
Tel Unix Team: +33 1 76 32 02 30
@: stephane.lebihan at amundi.com
@: sits.unix at amundi.com

Visit us on:


Hi all,

I use this for create subvolume /opt/cni, but it's not work :

transactional update # mksubvolume /opt/cni
failure (mkdir failed, errno:30 (Read-only file system))

But subvolume is create :

transactional update # btrfs subvolume list / | grep opt
ID 348 gen 7549 top level 257 path @/opt/cni

But directory not create :

transactional update # ls -al /opt
total 0
drwxr-xr-x 1 root root   0 Jun 27  2017 .
drwxr-xr-x 1 root root 202 Apr 10 14:17 ..

And I can delete subvolume :

transactional update # btrfs subvolume delete /opt/cni
ERROR: cannot access subvolume /opt/cni: No such file or directory
transactional update # btrfs subvolume show /opt/cni
ERROR: cannot find real path for '/opt/cni': No such file or directory

I remark this :

transactional update # mount | grep /opt
/dev/sda2 on /opt type btrfs (ro,relatime,space_cache,subvolid=307,subvol=/@/.snapshots/3/snapshot/opt)

So I test on other host, remount /opt on rw in transactional-update shell, and mksubvolume /opt/cni, but same result….

Is it possible to create subvolume and directory in /opt ?

Regards,
-----Message d'origine-----
De : caasp-beta-bounces at lists.suse.com [mailto:caasp-beta-bounces at lists.suse.com] De la part de Thorsten Kukuk
Envoyé : mercredi 21 février 2018 14:28
À : caasp-beta at lists.suse.com
Objet : Re: [caasp-beta] read only fs on caasp kubernetes nodes

On Wed, Feb 21, Simeon Bobylev wrote:

> Hi all,
>
>
>
> Is there a specific reason that /dev/sda2 is mounted in read only into
> / on CaaSP Kubernetes nodes ?

Yes, that's part of the concept and needed for transactional updates.

> c002-caasnode-01:~ # mkdir /var/lib/controller
>
> mkdir: cannot create directory ‘/var/lib/controller’: Read-only
> file system

# transactional-update shell
#> mksubvolume /var/lib/controller
#> exit
# systemctl reboot


  Thorsten

--
Thorsten Kukuk, Distinguished Engineer, Senior Architect SLES & CaaSP SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany
GF: Felix Imendoerffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nuernberg) _______________________________________________
caasp-beta mailing list
caasp-beta at lists.suse.com<mailto:caasp-beta at lists.suse.com>
http://lists.suse.com/mailman/listinfo/caasp-beta

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.suse.com/pipermail/caasp-beta/attachments/20180413/e64d44af/attachment.htm>


More information about the caasp-beta mailing list