[devel] lvm raid и startup

Alexey Borovskoy alb at altlinux.ru
Fri Sep 25 08:36:43 UTC 2009


Добрый вечер.

rpm -qf /etc/rc.d/init.d/halt
startup-0.9.8.23-alt1

Я halt немного переделал.

# Unmount all the rest.
UnmountFilesystems 3 5 \
        '$2 != "/" && $2 != "/dev" && $3 != "proc" && $3 != 
"sysfs" && $3 != "loopfs" && !($1 ~ /^none/) {print $2}' \
        'Unmounting filesystem' \
        'Unmounting filesystem (retry)'

# Turn off LVM.
/etc/rc.d/scripts/lvm_stop

# Turn off raid.
/etc/rc.d/scripts/raidstop

# Turn off multipath devices.
/etc/rc.d/scripts/multipath_stop

# Unmount /dev and /sys.
UnmountFilesystems 3 5 \
        '$2 == "/dev" && $2 == "/sys" {print $2}' \
        'Unmounting filesystem' \
        'Unmounting filesystem (retry)'

/sys до остановки lvm и raid размонтировать нельзя. Ибо 
возмущаются.

-- 
Алексей.
GPG key fingerprint
DBB3 1832 13C6 5C96 4A58  4AFF 78F7 159F 66AD 8D7E


More information about the Devel mailing list