Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing mount and mkfs options to filesystem/config #58

Open
StephaneGerardVUB opened this issue Oct 22, 2015 · 1 comment
Open

Passing mount and mkfs options to filesystem/config #58

StephaneGerardVUB opened this issue Oct 22, 2015 · 1 comment

Comments

@StephaneGerardVUB
Copy link

We use the filesystem/config from the standard library.
We would like to create a filesystem using this code in a FILESYSTEM_LAYOUT_CONFIG_SITE template :

variable DISK_VOLUME_PARAMS = {
    t = dict();
    t['osd'] = dict(
        'size',         -1,
        'mountpoint',   '/var/lib/ceph/osd/vdb',
        'fstype',       CEPH_FS,
        'type',         'partition',
        'device',       'vdb1',
        'preserve',     true,
        'mkfsopts',     CEPH_DISK_OPTIONS[CEPH_FS]['mkfsopts'],
        'mountopts',    CEPH_DISK_OPTIONS[CEPH_FS]['mountopts'],
    );
    t;
};

The first problem is that the attributes 'mkfsopts' and 'mountopts' are not taken into account. I've tried to workaround this problem by adding the necessary code in filesystem/config, but then I fall on a second problem : the mount options are not taken into account in the generation of the /etc/fstab.

@StephaneGerardVUB
Copy link
Author

The second problem (mount options not used by kickstart to generate fstab) has been solved by including the component fstab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant