LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 04: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, 07:38 AM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,339

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, 08: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, 09:38 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Those device nodes are created by the system on the fly when booting. A simple reboot should fix your issue.
 
Old 12-16-2013, 11:28 AM   #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, 07:54 AM   #6
cattym
LQ Newbie
 
Registered: Dec 2013
Posts: 5

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


Reply



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 07:13 PM
How to convert non LVM root partition to LVM? pinga123 Linux - Newbie 5 04-18-2012 11:08 PM
install LVM on a distro in an LVM partition. hen770 Linux - Server 2 11-20-2011 12:37 AM
accidentally delete /opt folder ababil151 Linux - Newbie 2 09-20-2010 11:34 AM
Accidentally supermounted hd partition hayduke Linux - Newbie 1 02-25-2003 06:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:49 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
Open Source Consulting | Domain Registration