Koozali.org: home of the SME Server

sme8 and startech 5.25in Trayless Hot Swap

Offline nefkho

  • ****
  • 183
  • +0/-0
    • http://www.cagothonglines.com
sme8 and startech 5.25in Trayless Hot Swap
« 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

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,
« Last Edit: August 17, 2012, 11:55:44 AM by nefkho »
Nef Kho  :-) .........

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: sme8 and startech 5.25in Trayless Hot Swap
« Reply #1 on: August 17, 2012, 03:56:42 PM »
AFAIK, USB is the only hotswap supported  by SME server.

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: sme8 and startech 5.25in Trayless Hot Swap
« Reply #2 on: August 17, 2012, 06:04:42 PM »
you could read here, 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)

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: sme8 and startech 5.25in Trayless Hot Swap
« Reply #3 on: August 17, 2012, 06:12:49 PM »
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..

Offline Jean-Philippe Pialasse

  • *
  • 2,762
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: sme8 and startech 5.25in Trayless Hot Swap
« Reply #4 on: August 17, 2012, 07:28:13 PM »
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
Code: [Select]
#!/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

Offline nefkho

  • ****
  • 183
  • +0/-0
    • http://www.cagothonglines.com
Re: sme8 and startech 5.25in Trayless Hot Swap
« Reply #5 on: August 18, 2012, 08:15:18 AM »
thanks a lot will look into it.
Nef Kho  :-) .........