Score:0

pvcreate does not work: Device /dev/sda3 not found

fm flag

As I recall I accidentally removed partition with fdisk and left changes which I did on LVM, then I did restart and Centos was not able to boot normally, it booted to Dracut.. It is my fault that I did experiments without making VM backup.

Currently it shows that device is missing: Couldn't find device with uuid Tuio4I-anaw-oBDD-Wisp-9uAZ-PYSF-YNg1KF: enter image description here

Tried adding it, but it says device is not found: enter image description here

Checked devices with blkid command and shows /dev/sda3 is not present and I guess this is the reason why pvcreate is not working:

enter image description here

Also tried to get rid of unknown device, but did not work: enter image description here

Is it possible to add sda3 back from dracut, because fdisk command is not present or maybe my finding are not valid? Any help is much appreciated.

in flag
Looks like you didn't recreate the partition. And please, don't post screenshots of text that you could copy&paste. Just copy&paste it.
elkoo avatar
fm flag
Yes, partition is missing, but fdisk is not working on Dracut, hence I cannot recreate. I need some other way how to create it. Regarding screenshot, yes, it is not good for community, but I cannot copy paste, because VMvare Remote Console does not provide this possibility.
vautee avatar
kr flag
Then boot your VM into an Linux Live Image (for example grml, booted from an ISO file) and use this for administering your file systems.
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.