Hello List,
I'm wondering if anyone is mounting pre-existing (local) storage on a Qlustar node, and if so, how you go about it? My initial guess was to re-define the setup (xfs on LVM on mdraid) in the Disk Config assigned to the node, and mark it with preserve_always, but then the node refuses to boot correctly because setup-storage complains it cannot preserve my LV as it doesn't exist.
I guess I could create per-node fstab stubs containing just the necessary lines, push them to the nodes using common/image-files with softgroups, and then add a common/rc.boot script to look for such stubs and mount them, but maybe there's a more integrated way?
Thanks,
A.
"A" == Ansgar Esztermann-Kirchner writes:
Hi Ansgar,
A> Hello List, I'm wondering if anyone is mounting pre-existing A> (local) storage on a Qlustar node, and if so, how you go about A> it? My initial guess was to re-define the setup (xfs on LVM on A> mdraid) in the Disk Config assigned to the node, and mark it with A> preserve_always, but then the node refuses to boot correctly A> because setup-storage complains it cannot preserve my LV as it A> doesn't exist.
A> I guess I could create per-node fstab stubs containing just the A> necessary lines, push them to the nodes using common/image-files A> with softgroups, and then add a common/rc.boot script to look for A> such stubs and mount them, but maybe there's a more integrated A> way?
such more exotic scenarios are usually best handled by an rc.boot script like:
$ vgchange -a y $ mkdir <mntpt> $ mount /dev/<vg/<lv> /<mntpt>
As long as the FS to be mounted is not needed for anything systemd related, this should do it.
Best,
Roland
Hi Roland,
thanks for your reply!
$ vgchange -a y $ mkdir <mntpt> $ mount /dev/<vg/<lv> /<mntpt>
As long as the FS to be mounted is not needed for anything systemd related, this should do it.
This is what I ended up doing, though in the slightly more refined way outlined in my first message: the rc.boot script doesn't presuppose any partivular LV or mountpoint, but simply looks for relevant fstat stubs. Moreover, it also adds export entries and starts the nfs server, if appropriate. The per-host configuration is then handled by the fstab stubs, and these can be distributed individually with the softgroups mechanism.
A.