LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-16-2013, 05:10 AM   #1
cattym
LQ Newbie
 
Registered: Dec 2013
Posts: 5

Rep: Reputation: Disabled
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
 
Old 12-16-2013, 08:38 AM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,412

Rep: Reputation: Disabled
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.
 
Old 12-16-2013, 09:39 AM   #3
cattym
LQ Newbie
 
Registered: Dec 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ser Olmy View Post
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..
 
Old 12-16-2013, 10:38 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833
Those device nodes are created by the system on the fly when booting. A simple reboot should fix your issue.
 
Old 12-16-2013, 12:28 PM   #5
cattym
LQ Newbie
 
Registered: Dec 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TobiSGD View Post
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.
 
Old 12-18-2013, 08:54 AM   #6
cattym
LQ Newbie
 
Registered: Dec 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
thank you very much Tobi... its work...!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Centos 6.4 - Delete/shrink LVM Partition imadthegreat Red Hat 2 12-09-2013 08:13 PM
How to convert non LVM root partition to LVM? pinga123 Linux - Newbie 5 04-19-2012 12:08 AM
install LVM on a distro in an LVM partition. hen770 Linux - Server 2 11-20-2011 01:37 AM
accidentally delete /opt folder ababil151 Linux - Newbie 2 09-20-2010 12:34 PM
Accidentally supermounted hd partition hayduke Linux - Newbie 1 02-25-2003 07:48 PM


All times are GMT -5. The time now is 06:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration