亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? raid1.in

?? 在LINUX下實現HA的源代碼
?? IN
字號:
#!/bin/sh## $Id: Raid1.in,v 1.5 2002/04/16 13:39:12 lars Exp $# # Raid1#      Description: Manages a software Raid1 device on a shared storage medium.#  Original Author: Eric Z. Ayers (eric.ayers@compgen.com)# Original Release: 25 Oct 2000#          Support: linux-ha-dev@lists.tummy.com#     RAID patches: http://people.redhat.com/mingo/raid-patches/# Word to the Wise: http://lwn.net/2000/0810/a/raid-faq.php3#  Sympathetic Ear: mailto:linux-raid@vger.kernel.org## usage: $0 <raidtab_config_file> <md_dev_name> {start|stop|status}## in /etc/ha.d/haresources, use a line such as:# nodea  10.0.0.170 Raid1::/etc/raidtab.md0::/dev/md0 Filesystem::/dev/md0::/data1::ext2## This script assumes you are running the so-called RAID v.90 patches vs.# the Linux 2.2 kernel (distributed with RedHat 6.2).   I have not used # kernel version 2.4.   ## The "start" arg starts up the raid device# The "stop" arg stops it.  NOTE: all filesystems must be unmounted#  and no processes should be accessing the device.# The "status" arg just prints out whether the device is running or not## # DISCLAIMER: Use at your own risk!##  Besides all of the usual legalese that accompanies free software, #  I will warn you that I do not yet use this kind of setup (software RAID #  over shared storage) in production, and I have reservations about doing so.##  The linux md driver/scsi drivers under Raid 0.90 and kernel version 2.2 #  do not behave well when a drive is in the process of going bad.  #  The kernel slows down, but doesn't completely crash.  This is about the #  worst possible thing that could happen in an un-attended HA type #  environment.  (Once the system is rebooted, the sofware raid stuff works #  like a champ.)  #  My other reservation has to do with the interation of RAID recovery with #  journaling filesystems and other parts of the kernel.  Subscribe to #  linux-raid@vger.kernel.org  for other opinions and possible solutions.##  -EZA 25 Oct 2000 # # SETUP:## You might need to pass the command line parameter: raid=noautodetect # in an HA environment so that the kernel doesn't automatically start# up your raid partitions when you boot the node.  This means that it isn't# going to work to use RAID for the system disks and the shared disks.## 0) partition the disks to use for RAID.  Use normal Linux partition #     types, not the RAID autodetect type for your partitions.# 1) Create /etc/raidtab.md?  on both systems (see example file below)# 2) Initialize your raid partition with #     /sbin/mkraid --configfile /etc/raidtab.md? /dev/md?# 3) Format your filesystem#     mke2fs /dev/md0  # for ext2fs... a journaling filesystem would be nice# 3) Create the mount point on both systems.#     DO NOT add your raid filesystem to /etc/fstab# 4) copy this script (to /etc/rc.d/init.d if you wish) and edit it to#    reflect your desired settings.# 5) Modify the heartbeat 'haresources' setup file# 6) unmount the filesystem and stop the raid device with 'raidstop'# 7) fire up heartbeat!## # EXAMPLE config file /etc/raidtab.md0# This file must exist on both machines!##  raiddev		    /dev/md0#  raid-level		    1#  nr-raid-disks		    2#  chunk-size		    64k#  persistent-superblock	    1#  #nr-spare-disks	    0#    device	    /dev/sda1#    raid-disk     0#    device	    /dev/sdb1#    raid-disk     1#unset LC_ALL; export LC_ALLunset LANGUAGE; export LANGUAGEprefix=@prefix@exec_prefix=@exec_prefix@. @sysconfdir@/ha.d/shellfuncs# Utilities used by this scriptMODPROBE=@MODPROBE@FSCK=@FSCK@FUSER=@FUSER@RAIDSTART=@RAIDSTART@MOUNT=@MOUNT@UMOUNT=@UMOUNT@RAIDSTOP=@RAIDSTOP@check_util () {    if [ ! -x "$1" ] ; then	ha_log "ERROR: setup problem: Couldn't find utility $1"	exit 1    fi}usage() {cat <<-EOT;	usage: $0 <raidtab_config_file> <md_dev_name> {start|stop|status}	<raidtab_config_file> : name of MD configuration file. e.g. /etc/raidtab	<md_dev_name>         : of the form /dev/md?? (the block device to use)	$Id: Raid1.in,v 1.5 2002/04/16 13:39:12 lars Exp $EOT}# Check the arguments passed to this scriptRAIDTAB_CONFIG=$1MDDEV=$2if [ ! -f "$1" ] ; then	ha_log "ERROR: Couldn't open file $1"	usage	exit 1fiif [ ! -b "$MDDEV" ] ; then	ha_log "ERROR: Couldn't find MD device $MDDEV. Expected /dev/md* to exist"	usage	exit 1fi# strip off the /dev/ prefix to get the name of the MD deviceMD=`echo $MDDEV | sed -e 's/\/dev\///'`# Check to make sure the utilites are foundcheck_util $MODPROBEcheck_util $FUSERcheck_util $RAIDSTARTcheck_util $MOUNTcheck_util $UMOUNTcheck_util $RAIDSTOP# Look for the 'start' or 'stop' argumentcase "$3" in## START: Start up the RAID device#start)# See if the md device is already mounted.# NOTE: this will not work right if you have more than 10 md devices!$MOUNT | grep -e "^$MDDEV" >/dev/nullif [ $? -ne 1 ] ; then    ha_log "ERROR: Device $MDDEV is already mounted!"    exit 1;fi# Insert SCSI module$MODPROBE scsi_hostadapterif [ $? -ne 0 ] ; then    ha_log "WARNING: Couldn't insert SCSI module."fi# Insert raid personality module$MODPROBE raid1if [ $? -ne 0 ] ; then    ha_log "ERROR: Couldn't insert RAID1 module"    exit 1fi# Run raidstart to start up the RAID array$RAIDSTART --configfile $RAIDTAB_CONFIG $MDDEVif [ $? -ne 0 ] ; then	ha_log "ERROR: Couldn't start RAID for $MDDEV"	exit 1fi;;## STOP: stop the RAID device#stop)# See if the MD device is onlinegrep -e "^$MD" /proc/mdstat >/dev/nullif [ $? -ne 0 ] ; then        ha_log "WARNING: device $MD is not online according to kernel"	exit 0fi# See if the MD device is mounted# NOTE: this will not work right if you have more than 10 md devices!$MOUNT | grep -e "^$MDDEV" >/dev/nullif [ $? -ne 1 ] ; then	# Kill all processes open on filesystem	$FUSER -mk $MOUNTPOINT	# the return from fuser doesn't tell us much	#if [ $? -ne 0 ] ; then	#	ha_log "ERROR: Couldn't kill processes on $MOUNTPOINT"	#	exit 1;	#fi	# Unmount the filesystem	$UMOUNT $MDDEV	if [ $? -ne 0 ] ; then		ha_log "ERROR: Couldn't unmount filesystem for $MDDEV"		exit 1	fi	$MOUNT | grep -e "^$MDDEV" >/dev/null	if [ $? -ne 1 ] ; then	    ha_log "ERROR: filesystem for $MDDEV still mounted"	    exit 1	fifi# Turn off raid$RAIDSTOP --configfile /etc/raidtab.$MD $MDDEVif [ $? -ne 0 ] ; then	ha_log "ERROR: Couldn't stop RAID for $MDDEV"	exit 1fi;;## STATUS: is the raid device online or offline?#status) # See if the MD device is onlinegrep -e "^$MD" /proc/mdstat >/dev/nullif [ $? -ne 0 ] ; then    echo "stopped"else    echo "running"fi    ;;*)    echo "This script should be run with the third argument 'start', 'stop', or 'status'"    exit 1;;esac# If you got to this point, chances are everything is O.K.exit 0;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人欧美一区二区三区白人| 国产在线精品一区二区不卡了| 日本va欧美va精品发布| 不卡电影一区二区三区| 日韩欧美激情一区| 玉米视频成人免费看| 美日韩黄色大片| 欧美日韩国产另类一区| 1000精品久久久久久久久| 精品一区二区三区免费毛片爱| 欧美视频一区二区在线观看| 国产精品人成在线观看免费| 国产一区亚洲一区| 日韩一级黄色片| 亚洲午夜视频在线观看| 99久久99久久精品免费观看| 国产视频911| 韩日av一区二区| 日韩欧美国产一区在线观看| 天堂成人免费av电影一区| 一本色道久久综合亚洲91| 综合久久给合久久狠狠狠97色 | 91精品国产一区二区三区蜜臀| 亚洲精品国产精华液| 91香蕉视频在线| 亚洲视频一区二区在线观看| 91一区在线观看| 椎名由奈av一区二区三区| 成人禁用看黄a在线| 国产精品三级久久久久三级| 国产aⅴ综合色| 久久精品夜色噜噜亚洲a∨| 极品美女销魂一区二区三区免费| 日韩一区二区三区免费观看| 日韩av二区在线播放| 日韩一区二区三区在线视频| 精品中文字幕一区二区小辣椒| 欧美一卡二卡三卡| 精品无人区卡一卡二卡三乱码免费卡 | 国产精品无圣光一区二区| 国产.精品.日韩.另类.中文.在线.播放 | 国产经典欧美精品| 日本一区二区在线不卡| av在线综合网| 亚洲一区二区欧美日韩| 欧美一级欧美一级在线播放| 久久狠狠亚洲综合| 久久久777精品电影网影网| 丰满亚洲少妇av| 亚洲欧美日韩在线| 69堂成人精品免费视频| 精品一区二区三区免费视频| 中文在线免费一区三区高中清不卡 | 88在线观看91蜜桃国自产| 另类专区欧美蜜桃臀第一页| 国产午夜亚洲精品不卡| 色系网站成人免费| 日韩不卡一区二区三区| 国产欧美日韩中文久久| 在线免费观看视频一区| 偷拍一区二区三区四区| 久久婷婷一区二区三区| 色999日韩国产欧美一区二区| 日韩电影免费在线看| 国产网红主播福利一区二区| 色综合亚洲欧洲| 精品制服美女久久| 一区二区三区四区精品在线视频| 91精品国产综合久久婷婷香蕉| 国产丶欧美丶日本不卡视频| 一区二区三区欧美日| 欧美草草影院在线视频| 一本色道久久综合亚洲91| 国内精品写真在线观看| 亚洲国产精品欧美一二99| 2017欧美狠狠色| 欧美日韩国产不卡| 白白色亚洲国产精品| 蜜桃av一区二区| 亚洲综合成人网| 国产精品欧美一级免费| 91精品国产免费| 91久久精品一区二区| 国产成人午夜电影网| 日本不卡视频一二三区| 一区二区在线电影| 中文字幕国产一区| 欧美岛国在线观看| 欧美日韩国产影片| 91美女视频网站| 国产91精品一区二区麻豆亚洲| 免费看日韩a级影片| 亚洲综合图片区| 亚洲素人一区二区| 国产精品五月天| 中文字幕乱码一区二区免费| 日韩精品一区二区在线| 欧美一区二区三区免费大片 | 色八戒一区二区三区| 国产在线播精品第三| 久久99久久久欧美国产| 亚洲成人一区二区| 国产美女一区二区| 美女国产一区二区三区| 亚洲国产精品久久人人爱| 亚洲视频一二三区| 亚洲日本在线a| 亚洲视频香蕉人妖| 国产精品久久久久aaaa| 欧美国产成人在线| 国产精品区一区二区三| 亚洲国产高清在线| 中文字幕在线不卡视频| 亚洲欧美日韩精品久久久久| 亚洲欧美另类久久久精品| 亚洲黄色小视频| 亚洲国产精品麻豆| 天天av天天翘天天综合网| 偷拍亚洲欧洲综合| 日韩有码一区二区三区| 秋霞电影一区二区| 国产一区二区剧情av在线| 韩国v欧美v亚洲v日本v| 国产a久久麻豆| 91色婷婷久久久久合中文| 色婷婷综合五月| 欧美日产国产精品| 欧美v亚洲v综合ⅴ国产v| 久久精品水蜜桃av综合天堂| 国产精品网站在线观看| 亚洲乱码国产乱码精品精98午夜 | 日韩亚洲欧美在线| 精品国产一区二区三区久久久蜜月 | 在线观看日韩一区| 欧美色精品天天在线观看视频| 欧美久久久久免费| 精品理论电影在线| 欧美经典三级视频一区二区三区| 最新不卡av在线| 日本不卡123| 懂色av中文一区二区三区| 91老司机福利 在线| 宅男在线国产精品| 欧美国产日韩在线观看| 亚洲国产你懂的| 国产一区二区不卡老阿姨| heyzo一本久久综合| 欧美精品自拍偷拍动漫精品| 久久久久久日产精品| 一片黄亚洲嫩模| 精品在线播放午夜| 91麻豆成人久久精品二区三区| 91精品在线免费观看| 国产女人18水真多18精品一级做| 夜夜操天天操亚洲| 国产精品一级片在线观看| 色狠狠一区二区三区香蕉| 欧美成人精精品一区二区频| 亚洲欧洲制服丝袜| 国产一区二区三区高清播放| 欧洲色大大久久| 国产亚洲短视频| 日本美女视频一区二区| 91色九色蝌蚪| 久久网这里都是精品| 日韩综合小视频| 91美女精品福利| 欧美国产日韩在线观看| 精品一区精品二区高清| 欧美在线不卡视频| 国产精品久久久久久久久免费桃花| 麻豆国产精品官网| 欧美高清一级片在线| 1024亚洲合集| 日韩欧美一级二级三级 | 中文字幕视频一区二区三区久| 秋霞成人午夜伦在线观看| 欧美午夜精品一区二区蜜桃| 国产精品乱人伦一区二区| 国产一区二区三区久久久| 日韩欧美一区二区久久婷婷| 亚洲大片免费看| 欧美在线啊v一区| 樱桃视频在线观看一区| aa级大片欧美| 国产女人水真多18毛片18精品视频| 另类小说色综合网站| 日韩一区二区三区电影| 日韩国产一二三区| 欧美三级一区二区| 午夜精品久久久久久久久久 | 91在线精品一区二区| 中文字幕成人网| 国产69精品久久久久毛片| 亚洲国产高清在线| 成人黄色网址在线观看| 国产精品久久久久久久午夜片| 不卡的av电影在线观看| 亚洲欧洲www| 91网站在线播放|