Skip to contentSkip to conversation

lvcreate exit code 5?

linux-lvm Bill Ranck 1 participant 1 message Feb 27, 2006

lore
Share & tools
lore

Bill Ranck

author
#0 lore raw

Hello folks,
I have a script which issues an lvcreate to create a snapshot. The
command returns with an exit code 5. The snapshot works, and seems to be fine otherwise, but what is the exitcode trying to tell me? I found documentation saying, "error getting status of logical volume" is the cause, but what does the really mean in this context?
Here is the actual command being issued by the script:

/usr/sbin/lvcreate -L 5G --snapshot -n /dev/USRAPPS/snap03
/dev/USRAPPS/db03

Any suggestions? I don't like to ignore non-zero exit codes.
Yes, the source volume is mounted and active.

Signature · 3 lines
Bill Ranck
Blacksburg, Va.
540-231-3951