1753515 Members
7305 Online
108795 Solutions
New Discussion юеВ

Re: lvcreate error

 
SOLVED
Go to solution
Jun H. Lee
Advisor

lvcreate error

Dear experts,

I have VA7110 on HP rp7410. I was trying to create a new logical volume but having a little diffculty to create one.

I am getting following lvcreate error:
lvcreate: The logical volume "/dev/testvg/data5" could not be created as s special file in the file-system: File exists

Can anyone give me some idea how to fix the problem?

Thank you.

Jun Lee
8 REPLIES 8
A. Clay Stephenson
Acclaimed Contributor

Re: lvcreate error

It seems to be telling you that you already have a file named /dev/testvg/data5 on your system. Do an ls -l /dev/testvg and post the results.
If it ain't broke, I can fix that.
Torsten.
Acclaimed Contributor

Re: lvcreate error

What was your command line?

Looks like you already have a LVOL named dev/testvg/data5.

Try
lvdisplay -v /dev/testvg/data5
and
vgdisplay -v testvg

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Todd McDaniel_1
Honored Contributor

Re: lvcreate error

Please provide all the commandline arguments you executed before this last lvcreate error.

It will help determine where your error is located.

history -20 at least depending on how much you typed after that error appeared.
Unix, the other white meat.
Jun H. Lee
Advisor

Re: lvcreate error

A. Clay,

I have got following after running "ls -l /dev/testvg":
br--r----- 1 root sys 64 0x01001c Oct 20 2006 data1
br--r----- 1 root sys 64 0x01001d Oct 20 2006 data2
br--r----- 1 root sys 64 0x01001e Mar 27 2007 data3
br--r----- 1 root sys 64 0x01001f Mar 27 2007 data4
dr-xr-xr-x 2 root sys 96 Apr 30 16:06 data5

How can I remove data5?
Torsten.
Acclaimed Contributor
Solution

Re: lvcreate error

check what is inside this directory first.

dr-xr-xr-x 2 root sys 96 Apr 30 16:06 data5

# ll /dev/testvg/data5

To delete, run

rm -R /dev/testvg/data5

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Jun H. Lee
Advisor

Re: lvcreate error

Thank you guys.
I fix the problem with your helps.
I am now back on track.

Thanks again.
Jun H. Lee
Advisor

Re: lvcreate error

The command "ls -l /dev/testvg" displays all the logical volumes including an incorrectly created logical volume.

Then removed that problem logical volume "/dev/testvg/test5" with a command "rm -R /dev/testvg/data5" from the list.
Torsten.
Acclaimed Contributor

Re: lvcreate error

Well, this was not a LVOL, somebody created a directory there - accidentally...

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!