[linux-lvm] lvcreate exit code 5?

Bill Ranck ranck at vt.edu
Mon Feb 27 18:05:42 UTC 2006


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.  

-- 
Bill Ranck
Blacksburg, Va.
540-231-3951




More information about the linux-lvm mailing list