Currently lvcreate detects xfs signature at the beginning of the volume and asks for a confirmation to zero it (the default behavior).
Because there is no stdin attached - confirmation is not given and lvcreate just creates the volume without zeroing its beginning.
This in turn leads to an error with mkfs.
Adding -y to lvcreate forces a yes answer to zeriong confirmation prompt and makes sure that volume beginning will be properly cleared.
Currently
lvcreate
detectsxfs
signature at the beginning of the volume and asks for a confirmation to zero it (the default behavior). Because there is nostdin
attached - confirmation is not given andlvcreate
just creates the volume without zeroing its beginning. This in turn leads to an error withmkfs
.Adding
-y
tolvcreate
forces a yes answer to zeriong confirmation prompt and makes sure that volume beginning will be properly cleared.