Limitation on VG name in setup-storage?

Andrew Ruthven andrew at etc.gen.nz
Thu Jul 4 08:23:27 CEST 2019


Hey Thomas,

On Tue, 2019-07-02 at 13:38 +0200, Thomas Lange wrote:
> > > > > > On Tue, 02 Jul 2019 22:57:48 +1200, Andrew Ruthven <andrew@
> > > > > > etc.gen.nz> said:
> 
>     > When we manually create them, we tend to name our VGs for SSDs
> as: vg-
>     > ssd[0-9]+ .
> 
>     > However, setup-storage doesn't like that and ends up confused
> with the
>     > colums on the vg line in the disk_config file.
> 
>     > Would it be able possible to have VG names allow hyphens?
> Not sure, if this can be done easily. In the FAI example we use a
> hyphen
> in the lv name, but not for vg.
> 
> Maybe this code in Parser.pm in line 936 is responsible for the
> limitation:
>  name: m{^([^/,\s\-]+)}
> 
> You could try to remove \- and see if setup-storage is still working.

Yes, that works okay.

Cheers,
Andrew

-- 
Andrew Ruthven, Wellington, New Zealand
andrew at etc.gen.nz              | linux.conf.au 2020, Gold Coast, AU
Catalyst Cloud:                |    https://lca2020.linux.org.au/
   https://catalystcloud.nz    |


More information about the linux-fai mailing list