diff options
author | Bill Nottingham <notting@redhat.com> | 2004-06-29 04:32:51 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2004-06-29 04:32:51 +0000 |
commit | d84a24c1c978a8f6c8460bafc7d25a0a0229678f (patch) | |
tree | 00b09022bba4ecc3c8ccf9909e63e2479b4a9bda /rc.d | |
parent | c5a46df5c0feddd76065a4d6121d904eea948455 (diff) | |
download | initscripts-d84a24c1c978a8f6c8460bafc7d25a0a0229678f.tar initscripts-d84a24c1c978a8f6c8460bafc7d25a0a0229678f.tar.gz initscripts-d84a24c1c978a8f6c8460bafc7d25a0a0229678f.tar.bz2 initscripts-d84a24c1c978a8f6c8460bafc7d25a0a0229678f.tar.xz initscripts-d84a24c1c978a8f6c8460bafc7d25a0a0229678f.zip |
ignore locking failures when starting lvm volumes (#126192, <radu@primit.ro>)
Diffstat (limited to 'rc.d')
-rwxr-xr-x | rc.d/rc.sysinit | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index d2d647ca..eaebc798 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -390,8 +390,8 @@ if [ -x /sbin/lvm.static ]; then echo "mkdmnod" | /sbin/nash --quiet >/dev/null 2>&1 [ -n "$SELINUX" ] && restorecon /dev/mapper/control if [ -c /dev/mapper/control -a -x /sbin/lvm.static ]; then - if /sbin/lvm.static vgscan > /dev/null 2>&1 ; then - action $"Setting up Logical Volume Management:" /sbin/lvm.static vgchange -a y && /sbin/lvm vgmknodes + if /sbin/lvm.static vgscan --mknodes --ignorelockingfailure > /dev/null 2>&1 ; then + action $"Setting up Logical Volume Management:" /sbin/lvm.static vgchange -a y --ignorelockingfailure fi fi fi @@ -552,7 +552,7 @@ if [ -f /etc/raidtab ]; then fi # LVM2 initialization, take 2 if [ -c /dev/mapper/control -a -x /sbin/lvm.static ]; then - action $"Setting up Logical Volume Management:" /sbin/lvm.static vgscan --mknodes && /sbin/lvm.static vgchange -a y + action $"Setting up Logical Volume Management:" /sbin/lvm.static vgscan --mknodes --ignorelockingfailure && /sbin/lvm.static vgchange -a y --ignorelockingfailure fi # LVM initialization, take 2 (it could be on top of RAID) if [ -e /proc/lvm -a -x /sbin/vgchange -a -f /etc/lvmtab ]; then |