*New 11.4 series Release:
2020-07-03: XigmaNAS 11.4.0.4.7633 - released!

*New 12.1 series Release:
2020-04-17: XigmaNAS 12.1.0.4.7542 - released


We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

Standby hdd's in a ZFS pool connected to SAS HBA controller

XigmaNAS Scripts and shell tips
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
neptunus
experienced User
experienced User
Posts: 81
Joined: 11 Jun 2013 08:50
Status: Offline

Standby hdd's in a ZFS pool connected to SAS HBA controller

#1

Post by neptunus »

Hello,

has anyone experience with the this script: http://forums.freenas.org/threads/unsur ... post-29123

I thinks:

Code: Select all

# Determine managed devices if not already known...
if [ ! "${DEVICES}" ]; then
	[ "${INFO}" ] && _log "Identifying devices for pool \"${POOL}\"..."

	OLD_RC_PID=$RC_PID
	. /etc/rc.freenas
	RC_PID=$OLD_RC_PID

	DEVICES=`${FREENAS_SQLITE_CMD} ${FREENAS_CONFIG} \
		"SELECT disk_name FROM storage_disk  \
		WHERE LOWER(disk_description) LIKE LOWER('% ${POOL} %') \
		ORDER BY disk_name ASC" | \
		while read disk_name; do
			echo $disk_name|sed "s/p.$//"
		done|tr -s "\n" " "`
fi
Will not work.

User avatar
siftu
Moderator
Moderator
Posts: 72
Joined: 17 Oct 2012 06:36
Status: Offline

Re: Standby hdd's in a ZFS pool connected to SAS HBA control

#2

Post by siftu »

That script is for Freenas, you are right, it will not work. Nas4free does not store it's config in a sqlite database.
System specs: NAS4Free amd64-embedded on ASUSTeK. M5A78L-M LX PLUS - AMD Phenom(tm) II X3 720 Processor - 8GB ECC Ram, Storage: 2x ZFS mirrors with 4x Western Digital Green (WDC WD10EADS)
My NAS4Free related blog - http://n4f.siftusystems.com/

User avatar
b0ssman
Forum Moderator
Forum Moderator
Posts: 2454
Joined: 14 Feb 2013 08:34
Location: Munich, Germany
Status: Offline

Re: Standby hdd's in a ZFS pool connected to SAS HBA control

#3

Post by b0ssman »

that script works with nas4free. you just have to define the pool and drives in the command lines arguments.
Nas4Free 11.1.0.4.4517. Supermicro X10SLL-F, 16gb ECC, i3 4130, IBM M1015 with IT firmware. 4x 3tb WD Red, 4x 2TB Samsung F4, both GEOM AES 256 encrypted.

Post Reply

Return to “Scripts and shell tips”