Koozali.org: home of the SME Server
Obsolete Releases => SME 8.x Contribs => Topic started by: nefkho on August 17, 2012, 11:46:09 AM
-
Hi anyone tried this product 5.25in Trayless Hot Swap Mobile Rack for 3.5in Hard Drive by startech? http://www.startech.com/HDD/Mobile-Racks/525-Tray-Less-SATA-Hot-Swap-Bay~HSB100SATBK (http://www.startech.com/HDD/Mobile-Racks/525-Tray-Less-SATA-Hot-Swap-Bay~HSB100SATBK)
i need is to backup using raid1 (mirror) my 1st sata drive to the hot-swap sata drive once a month without shutting down the server, do i need sata raid controller or will the sme8 software raid will do?
any advice on how to achieved the above objective are very much welcome.
thanks,
-
AFAIK, USB is the only hotswap supported by SME server.
-
you could read here (http://www.anchor.com.au/hosting/support/Linux_Software_RAID_Repair), adapt to your needs and try..
but, remember, this is unsupported by SME (I mean, unsupported by the community.. you are on your own..)
if you need more info, search for "centos5 hot swap mdadm" with google (maybe you can ignore centos5 search key as it's not strictly RH/CentOS related)
-
I would add that, IMVHO, you should think about a different backup/disaster recovery method..
you'd never be sure your data is safe hot swapping your hds..
-
i am able to use esata with hot unglug and hotplug with sme7, i think sme8 woul allow this also.
Here is the script i found on the net and i use to inform the kernel that the hdd will be removed :
# cat /usr/local/sbin/hotremove
#!/bin/bash
# (c) 2009 by Dennis Birkholz (firstname DOT lastname [at] nexxes.net)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You can received a copy of the GNU General Public License at
# <http://www.gnu.org/licenses/>.
function usage {
echo "Usage $0 [device]"
echo
echo "Disable supplied SCSI device"
exit
}
# Need a parameter
[ "$1" == "" ] &&
usage
# Verify parameter exists
( [ ! -e "$1" ] || [ ! -b "$1" ] ) &&
echo "Supplied devices does not exist or is not a block device." >/dev/stderr &&
exit 1
# Verify SCSI disk entries exist in /sys
[ ! -d "/sys/class/scsi_disk/" ] &&
echo "Could not find SCSI disk entries in sys, aborting." >/dev/stderr &&
exit 2
# Get major/minor device string of device
major=$(stat --dereference --format='%t' "$1")
major=$(printf '%d\n' "0x${major}")
minor=$(stat --dereference --format='%T' "$1")
minor=$(printf '%d\n' "0x${minor}")
deviceID="${major}:${minor}"
echo "Major/Minor number for device '$1' is '${deviceID}'..."
for device in /sys/class/scsi_disk/*; do
[ "$(< ${device}/device/block*/dev)" != "${deviceID}" ] && continue
scsiID=$(basename "${device}")
echo "Found SCSI ID '${scsiID}' for device '${1}'..."
echo 1 > ${device}/device/delete
echo "SCSI device removed."
exit 0
done
echo "Could not identify device as SCSI device, aborting." >/dev/stderr
exit 4
-
thanks a lot will look into it.