2016-09-19 7 views
1

시스템을 재부팅 할 때마다 "vgchange -ay"명령을 사용해야합니다. LVM은 호스트에서 로컬 드라이브로 만들었습니다. 두 개의 다른 드라이브에 PV로 두 개의 파티션이 있습니다. LV는 RAID 1입니다. VM Vdisk 및이 작업을위한 저장소 저장소로 마운트합니다.하지만 재부팅 할 때 분리되며 lvdisplay commnad를 사용할 때이 LV에 대한 NOT AVAILABLE 메시지가 나타납니다.논리 볼륨이 XenServer 7 로컬 드라이브에 없음으로 표시됨 LVM

미리 감사드립니다.

+0

I /etc/rc.local 디렉터리에 /etc/lvm.conf 0으로 metadata_read_only 설정 '이 vgchange -ay'을 추가했다 ... 벌레처럼 보인다 Xenserver 7.0에서도 동일한 문제가 발생합니다. 어떤 보호 장치처럼 보입니다. 그러나 Xen의 로컬 ext3 저장소는 부팅 후 올바르게 마운트되며 심지어 fstab에도 없습니다. 부팅 프로세스 어딘가에 사용자 지정 처리가 있습니다. – csadam

답변

1

내 LV에 대한/etc/fstab에 마운트 포인트가있는 경우 Xen Server 7이 부팅되지 않는다는 것을 확인할 수 있습니다 ... 동일한 이유, LV를 사용할 수 없으며, 시스템 부팅을 중단하고 섬기는 사람. 나를 위해

해결 방법이 너무

#!/bin/bash 
# THIS FILE IS ADDED FOR COMPATIBILITY PURPOSES 
# 
# It is highly advisable to create own systemd services or udev rules 
# to run scripts during boot instead of using this file. 
# 
# In contrast to previous versions due to parallel execution during boot 
# this script will NOT be run after all other services. 
# 
# Please note that you must run 'chmod +x /etc/rc.d/rc.local' to ensure 
# that this script will be executed during boot. 

exec 2> /tmp/rc.local.log  # send stderr from rc.local to a log file 
exec 1>&2      # send stdout to the same log file 
echo "rc.local started"  # show start of execution 
set -x       # tell sh to display commands before execution 

touch /var/lock/subsys/local 
vgchange -a y 
mount /dev/VG_XenStorage-0ddceea1-3812-d470-7b8a-85b7834adb19/ISO /mnt/iso 

echo "rc.local completed"