LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Accidentally delete lvm partition use rm (https://www.linuxquestions.org/questions/linux-newbie-8/accidentally-delete-lvm-partition-use-rm-4175488107/)

cattym 12-16-2013 04:10 AM

Accidentally delete lvm partition use rm
 
Dear All,

I just getting sick, and now i do accidentally delete lvm partition use rm, in /dev/vg0 and also in /dev/mapper by hardcode use rm not lvremove.
I need help to fix this issue. because now when i create any lv partition with same name doesn't work.
I will apreciate any response.

Regards
Catty

Ser Olmy 12-16-2013 07:38 AM

So you're saying you accidentally deleted the device nodes in /dev, but you did not actually delete the contents of the Volume Groups, nor did you modify the partitions containing the physical volumes?

Try running dmsetup mknodes and see if the missing device nodes reappear. You could also try restarting udevd, but the procedure for doing that varies depending on which distribution you're using.

cattym 12-16-2013 08:39 AM

Quote:

Originally Posted by Ser Olmy (Post 5081554)
So you're saying you accidentally deleted the device nodes in /dev, but you did not actually delete the contents of the Volume Groups, nor did you modify the partitions containing the physical volumes?

Try running dmsetup mknodes and see if the missing device nodes reappear. You could also try restarting udevd, but the procedure for doing that varies depending on which distribution you're using.

Thank you very much for your response.
I have lvm partition in /dev/vg0/my-lv and its mapping in /dev/mapper/vg0-my-lv,
and my bad its do rm /dev/vg0/my-lv and rm /dev/mapper/vg0-my-lv.
and when i try to lvcreate using my-lv name, its can't.
I need help..

TobiSGD 12-16-2013 09:38 AM

Those device nodes are created by the system on the fly when booting. A simple reboot should fix your issue.

cattym 12-16-2013 11:28 AM

Quote:

Originally Posted by TobiSGD (Post 5081606)
Those device nodes are created by the system on the fly when booting. A simple reboot should fix your issue.

Hi Tobi thank you very much for you help, i will try it, and give the result.

cattym 12-18-2013 07:54 AM

thank you very much Tobi... its work...!!


All times are GMT -5. The time now is 07:30 AM.