Skip to contentSkip to conversation

lvextend docmentation vs. implementation (lvm2-2.02.39), Suse-11.1

linux-lvm Linda A. Walsh 4 participants 5 messages Feb 10, 2010

lore
Share & tools
lore
#0 lore raw

I have been trying to use the lvextend command using the documented size format: of +[number][%{LV|PV|VG|FREE}] -- specifically
+50%LV.

tried multiple variations on LV -- no luck. Is this broken or is this just not working in my setup, or am I doing something wrong? It fails with:
Invalid argument +5%LV
Error during parsing of command line.

Advice?
thanks,
-linda

#1 lore raw
Quoted 5 lines · Linda A. Walsh

I have been trying to use the lvextend command using the documented size format: of +[number][%{LV|PV|VG|FREE}] -- specifically
+50%LV.

Quoted 7 lines

tried multiple variations on LV -- no luck. Is this broken or is this just not working in my setup, or am I doing something wrong? It fails with:
Invalid argument +5%LV
Error during parsing of command line.

The %age features are part of the -l switch, so the command line would be something like:

# lvextend -l30%VG storage/lvol0

That worked for ma anyway. If it still doesn't work your LVM tools might be too old

Chrissie

#2 lore raw
In reply to Linda A. Walsh
Quoted 1 line

It fails with: Invalid argument +5%LV

You'd need to send the WHOLE command line you used
in order for us debug it for you, not just a couple of characters from it. That is, however, enough to see a couple of problems you have. This document may help you solve two of your problems:
https://www.bettercgi.com/gpl/smart-questions.html

I'm also going to guess that you tried throwing
"+5%LV" out there in the middle of the command line rather than as the argument to -l. The man page says:

{
-l/--extents [+]LogicalExtentsNumber[%{VG|LV|PVS|FREE}] |
-L/--size [+]LogicalVolumeSize[kKmMgGtT]
}
--
Ray Morris
[email protected]

Strongbox - The next generation in site security:
http://www.bettercgi.com/strongbox/

Throttlebox - Intelligent Bandwidth Control
http://www.bettercgi.com/throttlebox/

Strongbox / Throttlebox affiliate program:
http://www.bettercgi.com/affiliates/user/register.php

Quoted 22 lines · Linda A. Walsh

I have been trying to use the lvextend command using the documented size format: of +[number][%{LV|PV|VG|FREE}] -- specifically
+50%LV.

tried multiple variations on LV -- no luck. Is this broken or is this just not working in my setup, or am I doing something wrong? It fails with:
Invalid argument +5%LV
Error during parsing of command line.

Advice?
thanks,
-linda

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

#3 lore raw
Quoted 8 lines · Ray Morris
Quoted 1 line

It fails with: Invalid argument +5%LV

You'd need to send the WHOLE command line you used
in order for us debug it for you, not just a couple of characters from it. That is, however, enough to see a couple of problems you have. This document may help you solve two of your problems:
https://www.bettercgi.com/gpl/smart-questions.html

----
Sorry -- I was using it with capital "L" not lower case...didn't know
there were two separate switches... my bad.
thanks,

-linda

#4 lore raw
Quoted 3 lines · Linda A. Walsh

Sorry -- I was using it with capital "L" not lower case...didn't know
there were two separate switches... my bad.
thanks,

The implementation of the feature turned out simpler with -l than with -L. (Because sizes supplied with -L require conversion to 'natural units' of extents which may involve rounding.)

Alasdair