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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? filesystem.in

?? 在LINUX下實(shí)現(xiàn)HA的源代碼
?? IN
字號(hào):
#!/bin/sh## $Id: Filesystem.in,v 1.10 2003/07/03 02:14:14 alan Exp $# # Filesystem#      Description: Manages a Filesystem 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## usage: ./Filesystem <device> <directory> <fstype> [<options>] {start|stop|status}##<device>    : name of block device for the filesystem. e.g. /dev/sda1, /dev/md0#		Or a -U or -L option for mount, or an NFS mount specification#<directory> : the mount point for the filesystem#<fstype>    : name of the filesystem type. e.g. ext2#<options>   : options to be given to the mount command via -o### An example usage in /etc/ha.d/haresources: #       node1  10.0.0.170 Filesystem::/dev/sda1::/data1::ext2#  or#       node1  10.0.0.170 Filesystem::-Ldata1::/data1::ext2#  or#       node1  10.0.0.170 Filesystem::server:/data1::/data1::nfs::ro## This assumes you want to manage a filesystem on a shared (scsi) bus.# Do not put this filesystem in /etc/fstab.  This script manages all of# that for you.## If you are interested in High Availability, you will probably also want# some sort of external hardware RAID controller in front of the actual # disks.  I don't mean a RAID controller embedded in the host controller -# it has to be a external controller.## It can also be an internal RAID controller if the controller supports# failover.  IBM's ServeRAID controller does this, and it automatically# prohibits concurrent access too, so it's pretty cool in this application.## There is a script for software RAID-1 included in this directory.  Right # now, I wouldn't recommend using software RAID (see notes in the Raid1 script)## NOTE: There is no locking (such as a SCSI reservation) being done here.#       I would if the SCSI driver could properly maintain the reservation,#       which it cannot, even with the 'scsi reservation' patch submitted#       earlier this year by James Bottomley.  The patch minimizes the#       bus resets caused by a RESERVATION_CONFLICT return, and helps the #       reservation stay when 2 nodes contend for a reservation, #       but it does not attempt to recover the reservation in the #       case of a bus reset.  ##       What all this means is that if 2 nodes mount the same file system#       read-write, the filesystem is going to become corrupted.##	As a result, you should use this together with the stonith option#	and redundant, independent communications paths.##	If you don't do this, don't blame us when you scramble your disk.# #	Note:  the ServeRAID controller does prohibit concurrent acess#	In this case, you don't actually need STONITH, but redundant comm is#	still an excellent idea.#unset LC_ALL; export LC_ALLunset LANGUAGE; export LANGUAGEprefix=@prefix@exec_prefix=@exec_prefix@#. @sysconfdir@/ha.d/shellfuncs. /etc/ha.d/shellfuncs# Utilities used by this scriptMODPROBE=@MODPROBE@FSCK=@FSCK@FUSER=@FUSER@MOUNT=@MOUNT@UMOUNT=@UMOUNT@BLOCKDEV=@BLOCKDEV@check_util () {    if [ ! -x "$1" ] ; then	ha_log "ERROR: setup problem: Couldn't find utility $1"	exit 1    fi}usage() {cat <<-EOT;	usage: $0 <device> <directory> <fstype> [<options>] {start|stop|status}	<device>    : name of block device for the filesystem. e.g. /dev/sda1, /dev/md0	              OR -LFileSystemLabel OR -Uuuid or an NFS specification	<directory> : the mount point for the filesystem	<fstype>    : name of the filesystem type. e.g. ext2	<options>   : options to be given as -o options to mount.	$Id: Filesystem.in,v 1.10 2003/07/03 02:14:14 alan Exp $	EOT}##	Make sure the kernel does the right thing with the FS buffers#	This function should be called after unmounting and before mounting#	It may not be necessary in 2.4 and later kernels, but it shouldn't hurt#	anything either...##	It's really a bug that you have to do this at all...#flushbufs() {  if    [ "$BLOCKDEV" != "" -a -x "$BLOCKDEV" ]  then    case $1 in      -*|[^/]*:/*)	;;      *)		$BLOCKDEV --flushbufs $1;;    esac  fi}# Check the arguments passed to this scriptDEVICE=$1MOUNTPOINT=$2FSTYPE=$3case $DEVICE in  -*) # Oh... An option to mount instead...  Typically -U or -L	;;  [^/]*:/*)	# An NFS filesystem specification...	;;  *)	if [ ! -b "$DEVICE" ] ; then	  ha_log "ERROR: Couldn't find device $DEVICE. Expected /dev/??? to exist"	  usage	  exit 1	fi;;esacif [ ! -d "$MOUNTPOINT" ] ; then	ha_log "ERROR: Couldn't find directory  $MOUNTPOINT to use as a mount point"	usage	exit 1	fi	# Check to make sure the utilites are foundcheck_util $MODPROBEcheck_util $FSCKcheck_util $FUSERcheck_util $MOUNTcheck_util $UMOUNTcase $# in  4)	operation=$4; options="";;  5)	operation=$5; options="-o $4";;  *)	usage; exit 1;;esac  # Look for the 'start', 'stop' or status argumentcase "$operation" in## START: Start up the filesystem#start)	# See if the device is already mounted.	$MOUNT | cut -d' ' -f3 | grep -e "^$MOUNTPOINT$" >/dev/null	if [ $? -ne 1 ] ; then	    ha_log "ERROR: Filesystem $MOUNTPOINT is already mounted!"	    exit 1;	fi	# Insert SCSI module	$MODPROBE scsi_hostadapter >/dev/null 2>&1	# Insert Filesystem module	$MODPROBE $FSTYPE >/dev/null 2>&1	grep -e "$FSTYPE"'$' /proc/filesystems >/dev/null	if [ $? != 0  ] ; then		ha_log "ERROR: Couldn't find filesystem $FSTYPE in /proc/filesystems"		usage		exit 1	fi	# Check the filesystem & auto repair.  	# NOTE: Some filesystem types don't need this step...  Please modify	#       accordingly	if	  case $FSTYPE in	    ext3|reiserfs|xfs|jfs|vfat|fat|nfs)	false;;	    *)				true;;	  esac        then	  ha_log "info: Starting filesystem check on $DEVICE"	  $FSCK -t $FSTYPE -a $DEVICE		  # NOTE: if any errors at all are detected, it returns non-zero	  # if the error is >4 then there is a big problem	  if	    [ $? -ge 4 ]	  then	    ha_log "ERROR: Couldn't sucessfully fsck filesystem for $DEVICE"	    exit 1		  fi		fi	flushbufs $DEVICE	# Mount the filesystem.	if	  $MOUNT -t $FSTYPE $options $DEVICE $MOUNTPOINT        then	  : Mount worked!        else	  ha_log "ERROR: Couldn't mount filesystem $DEVICE on $MOUNTPOINT"	  exit 1	fi# end of start);;## STOP: Unmount the filesystem#stop)	# See if the device is currently mounted	if	  $MOUNT | grep -e " on $MOUNTPOINT " >/dev/null	then		# Kill all processes open on filesystem		$FUSER -mk $MOUNTPOINT		# Get the current real device name...		# (specified devname could be -L or -U...)		DEV=`$MOUNT | grep "on $MOUNTPOINT " | cut -d' ' -f1`		# Unmount the filesystem		$UMOUNT $MOUNTPOINT		if [ $? -ne 0 ] ; then			ha_log "ERROR: Couldn't unmount $MOUNTPOINT"			exit 1		fi		flushbufs $DEV	else		ha_log "WARNING: Filesystem $MOUNTPOINT not mounted?"	fi# end of stop);;## STATUS: is the filesystem mounted or not?#status)	$MOUNT | grep -e "on $MOUNTPOINT " >/dev/null	if [ $? = 0 ] ; then		echo "$MOUNTPOINT is mounted (running)"	else		echo "$MOUNTPOINT is unmounted (stopped)"	fi# end of status);;*)    echo "This script should be run with a fourth argument of 'start', 'stop', or 'status'"    usage    exit 1;;esac# If you got to this point, chances are everything is O.K.exit 0;

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产日韩欧美亚洲| 黄色日韩三级电影| 亚洲人快播电影网| 精品免费视频.| 亚洲蜜桃精久久久久久久| 日韩成人免费看| 99国产精品国产精品久久| 欧美一区三区二区| 亚洲自拍偷拍图区| 懂色av中文一区二区三区 | 日本在线不卡视频一二三区| 国产精品一区二区久激情瑜伽| 色狠狠桃花综合| 久久久久久97三级| 日本免费在线视频不卡一不卡二| 91啪九色porn原创视频在线观看| 精品日韩一区二区三区| 亚洲综合色婷婷| 成人avav在线| 国产亚洲综合av| 久久日一线二线三线suv| 欧美日韩国产成人在线91| 高清不卡在线观看av| 色哟哟亚洲精品| 国产精品欧美久久久久无广告| 男人的天堂亚洲一区| 欧美人xxxx| 亚洲成人自拍网| 欧美日韩中文另类| 一区二区三区成人| 日本韩国欧美一区二区三区| 中文字幕免费不卡| 成人sese在线| 国产精品理论片在线观看| 国产一区二区三区av电影| 精品国产污污免费网站入口| 日韩精彩视频在线观看| 欧美一区三区四区| 美女性感视频久久| 精品国产成人系列| 国产一二精品视频| 欧美经典一区二区| 久久网站最新地址| 国产成人综合在线| 国产人久久人人人人爽| 色拍拍在线精品视频8848| 国产精品久久综合| 91丨九色丨国产丨porny| 一区在线观看免费| 色婷婷精品久久二区二区蜜臀av | 日本一区二区三区dvd视频在线| 精品制服美女丁香| 国产色产综合色产在线视频| 国产一区二区福利| 国产精品免费久久| 色哟哟一区二区在线观看| 亚洲大片在线观看| 欧美刺激脚交jootjob| 国精产品一区一区三区mba桃花| 久久久欧美精品sm网站| 成人av资源在线| 亚洲成在人线在线播放| 久久久三级国产网站| 93久久精品日日躁夜夜躁欧美| 一区二区三区鲁丝不卡| 欧美一级理论片| 国产91精品精华液一区二区三区| 亚洲日本va在线观看| 在线观看一区日韩| 精品午夜久久福利影院| 国产精品进线69影院| 欧美精品乱码久久久久久按摩| 久久99精品久久只有精品| 日韩理论电影院| 日韩一区二区三区在线视频| 成人97人人超碰人人99| 日本午夜精品视频在线观看| 国产亚洲欧美一区在线观看| 色8久久精品久久久久久蜜| 免费成人在线视频观看| 中文字幕亚洲成人| 91精品国产福利在线观看| heyzo一本久久综合| 秋霞电影一区二区| 亚洲区小说区图片区qvod| 欧美大胆一级视频| 欧美在线观看一区二区| 国产成人免费视频网站| 午夜不卡av免费| 国产精品久久久一本精品 | 日本一区二区成人| 欧美精品一级二级三级| 成人av网站大全| 久久se精品一区精品二区| 亚洲综合在线免费观看| 中文一区二区在线观看| 精品欧美乱码久久久久久1区2区| 欧美偷拍一区二区| 99国产麻豆精品| 国产精品综合在线视频| 免费观看成人av| 亚洲国产美女搞黄色| 日韩美女啊v在线免费观看| 国产亚洲欧美在线| 精品日韩一区二区| 日韩一级免费观看| 91精品国产福利| 欧美老肥妇做.爰bbww视频| 91丨porny丨在线| 国产精品一二三区在线| 精品在线一区二区| 精品夜夜嗨av一区二区三区| 人人超碰91尤物精品国产| 午夜天堂影视香蕉久久| 亚洲一区精品在线| 亚洲一区二区三区四区的| 亚洲美女视频一区| 亚洲精品国产a| 亚洲欧美日韩国产综合在线| 亚洲视频中文字幕| 亚洲女同一区二区| 依依成人精品视频| 亚洲精品成人少妇| 夜夜嗨av一区二区三区四季av | 国产成人av一区二区| 国产不卡视频在线观看| 粉嫩在线一区二区三区视频| 国产成人亚洲精品青草天美| 国产成a人无v码亚洲福利| 成人天堂资源www在线| 成人av在线播放网址| 一本久久综合亚洲鲁鲁五月天| 97se亚洲国产综合在线| 91福利小视频| 欧美精品久久天天躁| 欧美大片一区二区| 国产欧美日韩一区二区三区在线观看| 久久精品综合网| 国产精品精品国产色婷婷| 亚洲精品福利视频网站| 婷婷综合五月天| 久久精品国产久精国产爱| 国产成a人亚洲精| 91国产精品成人| 日韩一区二区视频| 国产美女精品一区二区三区| 色婷婷av一区二区三区之一色屋| 狠狠色丁香久久婷婷综合丁香| 亚洲国产成人高清精品| 热久久久久久久| 成人黄色av电影| 欧美日本在线播放| 久久看人人爽人人| 亚洲欧美一区二区三区久本道91| 亚洲国产成人精品视频| 国产一区二区三区四区五区美女 | 欧美成人国产一区二区| 日本一区二区综合亚洲| 一区二区三区av电影| 亚洲sss视频在线视频| 国产精品一品视频| 欧美在线观看一区二区| 亚洲精品在线三区| 亚洲一区二区五区| 国产一区二区成人久久免费影院 | 国产成人午夜精品影院观看视频| 色婷婷久久99综合精品jk白丝| 日韩精品在线一区| 亚洲一区欧美一区| 成人夜色视频网站在线观看| 欧美日韩国产一级| 国产精品视频一二| 蜜桃一区二区三区在线观看| 一本色道亚洲精品aⅴ| 欧美α欧美αv大片| 亚洲午夜一区二区| 成人自拍视频在线观看| 日韩午夜电影av| 亚洲综合激情另类小说区| 国产精品18久久久久久久久| 欧美精选在线播放| 亚洲色图清纯唯美| 国产91丝袜在线观看| 欧美精品一区二区精品网| 五月综合激情网| 色综合色狠狠综合色| 国产亚洲精品bt天堂精选| 日本女人一区二区三区| 欧美性一区二区| 亚洲男人电影天堂| 成人免费看黄yyy456| 久久久亚洲午夜电影| 捆绑调教一区二区三区| 欧美日韩激情在线| 一区二区高清在线| 在线看日本不卡| 亚洲免费看黄网站| 91丨九色丨尤物| 亚洲丝袜精品丝袜在线| 91污在线观看|