1834644 Members
2037 Online
110069 Solutions
New Discussion

Re: cannot do a pvcreate

 
Chris Stamps_2
New Member

cannot do a pvcreate

I am trying to add a physical volume using pvcreate, and am getting a invalid
argument error. Now, I ran a diskinfo on this disk, which proved it was valid,
and working. I am using the correct device file and the correct syntax. HELP!
6 REPLIES 6
John Paine_2
Occasional Advisor

Re: cannot do a pvcreate

Have you tried the -f option to force creation?
I assume you are using the 'raw' device? /dev/rdsk/...
Chris Stamps_2
New Member

Re: cannot do a pvcreate

I have done the -f option. Even though, -f is usually for disks that have been
used before. But thanks though.
John Paine_2
Occasional Advisor

Re: cannot do a pvcreate

Chris,
what is the exact error message you get?
Chris Stamps_2
New Member

Re: cannot do a pvcreate

I am getting a invalid argument error, no matter what I do with
pvcreate.....specifying a size....etc...
Alan Riggs_1
Regular Advisor

Re: cannot do a pvcreate

Please post the exact command line and system responses that you are seeing.
The diskinfo might also be helpful.
Atif Malik_2
Frequent Advisor

Re: cannot do a pvcreate

I think there might be a corrupted /etc/lvmtab file. Move that file to
something else, and recreate it by issuing "vgscan -v" command.