Operating System - HP-UX
1833788 Members
2800 Online
110063 Solutions
New Discussion

Re: CanB4t create a lv by default, Why ?

 
Juan Manuel López
Valued Contributor

CanB4t create a lv by default, Why ?

When I use " lvcreate -L 100 vg00 ", I receive the message:
lvcreate: Logical volume "/dev/vg00/lvol5" already exists.

Why ?

Thanks.

Juanma.
I would like to be lie on a beautiful beach spending my life doing nothing, so someboby has to make this job.
5 REPLIES 5
Ian Dennison_1
Honored Contributor

Re: CanB4t create a lv by default, Why ?

LVol Manager has lost track of what it thinks the next available lvol name is.

Do a 'vgdisplay -v /dev/vg00' and locate the next free lvol number manually.

Then do an 'lvcreate -L 100 -n lvol7 /dev/vg00'

(If lvol7 is the next free logical volume name).

Share and Enjoy! Ian
Building a dumber user
Michael Duthie
Trusted Contributor

Re: CanB4t create a lv by default, Why ?

check vgdisplay -v vg00 and ll /dev/vg00. Could be it has not been competely removed at some stage.
Juan Manuel López
Valued Contributor

Re: CanB4t create a lv by default, Why ?

lvol5 is in use this moment.
I would like to be lie on a beautiful beach spending my life doing nothing, so someboby has to make this job.
Ian Dennison_1
Honored Contributor

Re: CanB4t create a lv by default, Why ?

There will be a gap between the lvol numbers, which is why this is happening.

Eg lvol1, 2, 3, 4, 5, 8, 9

In this example, lvols 6 and 7 are not used. Lvol Manager gets confused when selecting the next number by default, so you have to specify it manually.

Share and Enjoy! Ian
Building a dumber user
Balaji N
Honored Contributor

Re: CanB4t create a lv by default, Why ?

did u delete and re-create an lv by any chance.

check the contents of the /dev/vg00 directory and compare the same with a vgdisplay -v output. if there is no lvol5 in vgdisplay and still it appears in /dev/vg00, then there is some inconsistency.
alternatively, try
lvcreate -L100 -n vg00

hth
-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.