Score:1

pvcreate and lvcreate fail with return code 5

hr flag
ceh

I am trying to use pvcreate to create a physical volume and then use lvcreate to create a logical volume on Centos7.9. But, both pvcreate and lvcreate seem to be failing with error code 5.

/bin/lvm pvcreate -y -ff /dev/md7,/dev/md8,/dev/md12 returned 5 ... /bin/lvm lvcreate -y -L 16GB -n home groupB returned 5 I read elsewhere in the post: vgextend fails with error code 5 about vgextend failing due to root partition being mounted read-only. But, I have verified that it is not so in this case. Any idea why this could be happening?

Nikita Kipriyanov avatar
za flag
Well, just exit code and no output to the terminal?
ceh avatar
hr flag
ceh
No. It just prints the exit code.
Nikita Kipriyanov avatar
za flag
Try to make it verbose with `-v` to `-vvvv` and with `-d` to `-dddddd`. Just "exit code" probably isn't enough to know what's going on.
asktyagi avatar
in flag
have you checked this https://serverfault.com/questions/100736/vgcreate-command-failed-with-status-code-5-what-does-this-mean, also error 5 mean `error getting status of logical volume` check the local volume first before creating.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.