LVM and VxVM

why lvcreate -D report error on v11.00

 
Fred.Wu
Frequent Advisor

why lvcreate -D report error on v11.00

It seems "-D" is an illegal option, but I know it is supported in v11.00 with a patch.

The patch PHCO_27369 ,lvm commands cumulative patch IS installed and configured, but still lack this option.

Can you help? thanks
fred
5 REPLIES 5
Dave Olker
HPE Pro

Re: why lvcreate -D report error on v11.00

Hi Fred,

The -D option must be used in conjunction with a "y" or "n" value, so the syntax would have to be:

-D y

or

-D n

When you issue the command:

# /usr/sbin/lvcreate -?

do you see the "[-D Distributed]" text in the usage string? If not, you might want to check the cksum and what output of /usr/sbin/lvchange and /sbin/lvchange against the text in the patch text for PHCO_27369.

Regards,

Dave
I work for HPE
Fred.Wu
Frequent Advisor

Re: why lvcreate -D report error on v11.00

Thanks for your quick response.
My usage for the command should be correct, I think.
#lvcreate -D y -s g -l xx vgtest
And pvg state is ok from the /etc/lvmpvg.

From lvcreate -?, I can't see "-D" option at all.
fred
Dave Olker
HPE Pro

Re: why lvcreate -D report error on v11.00

Hi Fred,

Have you confirmed the what strings and cksum strings for lvchange? Be sure to check /sbin/lvchange and /usr/sbin/lvchange.

I'd also make sure that all the /sbin/lv* and /usr/sbin/lv* commands are linked. For example:

# ll -i /sbin/lv*
441 -r-sr-xr-x 26 root sys 811008 Aug 13 1999 /sbin/lvchange
441 -r-sr-xr-x 26 root sys 811008 Aug 13 1999 /sbin/lvcreate
441 -r-sr-xr-x 26 root sys 811008 Aug 13 1999 /sbin/lvdisplay
441 -r-sr-xr-x 26 root sys 811008 Aug 13 1999 /sbin/lvextend
441 -r-sr-xr-x 26 root sys 811008 Aug 13 1999 /sbin/lvlnboot
203 -r-xr--r-- 1 bin bin 1449 Nov 6 1997 /sbin/lvmrc
441 -r-sr-xr-x 26 root sys 811008 Aug 13 1999 /sbin/lvreduce
441 -r-sr-xr-x 26 root sys 811008 Aug 13 1999 /sbin/lvremove
441 -r-sr-xr-x 26 root sys 811008 Aug 13 1999 /sbin/lvrmboot


On my system all of the /sbin/lv commands are inode 441 and my /usr/sbin/lv commands all use inode 12152.


# ll -i /usr/sbin/lv*
12152 -r-sr-xr-x 26 root sys 532480 Aug 13 1999 /usr/sbin/lvchange
12152 -r-sr-xr-x 26 root sys 532480 Aug 13 1999 /usr/sbin/lvcreate
12152 -r-sr-xr-x 26 root sys 532480 Aug 13 1999 /usr/sbin/lvdisplay
12152 -r-sr-xr-x 26 root sys 532480 Aug 13 1999 /usr/sbin/lvextend
12152 -r-sr-xr-x 26 root sys 532480 Aug 13 1999 /usr/sbin/lvlnboot
1771 -r-xr--r-- 1 bin bin 143360 Nov 6 1997 /usr/sbin/lvmmigrate
12152 -r-sr-xr-x 26 root sys 532480 Aug 13 1999 /usr/sbin/lvreduce
12152 -r-sr-xr-x 26 root sys 532480 Aug 13 1999 /usr/sbin/lvremove
12152 -r-sr-xr-x 26 root sys 532480 Aug 13 1999 /usr/sbin/lvrmboot


I'd also make sure there aren't any other copies of lvcreate somewhere in your path.

Regards,

Dave
I work for HPE
Fred.Wu
Frequent Advisor

Re: why lvcreate -D report error on v11.00

Could you pls notify me how to check the checksum and strings, thanks. :)
fred
Dave Olker
HPE Pro

Re: why lvcreate -D report error on v11.00

Hi Fred,

To check the what strings use the commands:

# what /usr/sbin/lvchange

and

# what /sbin/lvchange

To check the cksum values use:

# cksum /usr/sbin/lvchange

and

# cksum /sbin/lvchange

Compare the output from these commands to the text in the PHCO_27369.text file to ensure that your binaries are intact.

Be sure to check that you're not executing a different lvcreate other than /usr/sbin/lvcreate. Also, confirm that the dependent patches for PHCO_27369 have also been installed.

Regards,

Dave
I work for HPE