Issue with lvcreate

Andrew Ruthven andrew at etc.gen.nz
Fri May 6 03:44:21 CEST 2016


Hey,

Interesting issue with lvcreate and setup-storage on Jessie with FAI
5.0.3, we've started getting the following error sometimes:

/dev/VGNAME/LVNAME: not found: device not cleared
Aborting. Failed to wipe start of new LV.

Which causes setup-storage to abort and so does fai.

It seems that udev isn't picking up the new LV in time to create the
device before lvcreate tries to wipe the start of the device. I've
worked around this for now by modifying:

/usr/share/fai/setup-storage/Commands.pm

to have lvcreate have the "-Z n' parameter.

Cheers,
Andrew

-- 
Andrew Ruthven, Wellington, New Zealand
andrew at etc.gen.nz             |     linux.conf.au 2016 
  New Zealand's only Cloud:   | LCA By the Bay, Geelong, AU
https://catalyst.net.nz/cloud | http://lca2016.linux.org.au







More information about the linux-fai mailing list