Package: drobo-utils
Version: 0.6.1+repack-1

DroboElite connected by iSCSI

[7802979.745570] scsi6 : iSCSI Initiator over TCP/IP
[7802980.285741] scsi 6:0:0:0: Direct-Access     Drobo    DroboElite
    1.00 PQ: 0 ANSI: 5
[7802980.285741] sd 6:0:0:0: [sdh] Very big device. Trying to use READ
CAPACITY(16).
[7802980.285741] sd 6:0:0:0: [sdh] 34359738368 512-byte hardware
sectors (17592186 MB)
[7802980.285741] sd 6:0:0:0: [sdh] Write Protect is off
[7802980.285774] sd 6:0:0:0: [sdh] Mode Sense: 1b 00 10 00
[7802980.289767] sd 6:0:0:0: [sdh] Got wrong page
[7802980.289767] sd 6:0:0:0: [sdh] Assuming drive cache: write through
[7802980.289767] sd 6:0:0:0: [sdh] Very big device. Trying to use READ
CAPACITY(16).
[7802980.289767] sd 6:0:0:0: [sdh] 34359738368 512-byte hardware
sectors (17592186 MB)
[7802980.289767] sd 6:0:0:0: [sdh] Write Protect is off
[7802980.289767] sd 6:0:0:0: [sdh] Mode Sense: 1b 00 10 00
[7802980.289767] sd 6:0:0:0: [sdh] Got wrong page
[7802980.289826] sd 6:0:0:0: [sdh] Assuming drive cache: write through
[7802980.294530]  sdh: unknown partition table
[7802999.051352] sd 6:0:0:0: [sdh] Attached SCSI disk
[7802999.051461] sd 6:0:0:0: Attached scsi generic sg10 type 0

But drobom can't find my brand new DroboElite.

xenian0:~# drobom -v 16 info status
examining:  /dev/sda
id:  (2, 2, 0, 0, 'ATA     ')
rejected: vendor is ATA      (not from DRI)
examining:  /dev/sdb
id:  (2, 3, 0, 0, 'ATA     ')
rejected: vendor is ATA      (not from DRI)
examining:  /dev/sdc
id:  (2, 4, 0, 0, 'ATA     ')
rejected: vendor is ATA      (not from DRI)
examining:  /dev/sdd
id:  (2, 0, 1, 0, 'Dell    ')
rejected: vendor is Dell     (not from DRI)
examining:  /dev/sdg
id:  (2, 5, 0, 0, 'ATA     ')
rejected: vendor is ATA      (not from DRI)
examining:  /dev/sdh
id:  (6, 0, 0, 0, 'Drobo   ')
rejected: vendor is Drobo    (not from DRI)
returning list:  []
No Drobos discovered

But with this easy patch...

+--- a/DroboIOctl.py
++++ b/DroboIOctl.py
+@@ -313,7 +313,8 @@
+              print "id: ", id
+
+           thisdev="%02d%02d%02d" % (id[0], id[1], id[2])
+-          if ( id[4].startswith("TRUSTED") or
id[4].startswith("DROBO") ):  # you have a Drobo!
++          vendor=id[4].upper()
++          if ( vendor.startswith("TRUSTED") or
vendor.startswith("DROBO") ):  # you have a Drobo!
+              if debugflags & Drobo.DBG_Detection:
+                 print "found a Drobo"
+              if thisdev == previousdev :  # multi-lun drobo...

xenian0:~# drobom -v 16 info status
examining:  /dev/sda
id:  (2, 2, 0, 0, 'ATA     ')
rejected: vendor is ATA      (not from DRI)
examining:  /dev/sdb
id:  (2, 3, 0, 0, 'ATA     ')
rejected: vendor is ATA      (not from DRI)
examining:  /dev/sdc
id:  (2, 4, 0, 0, 'ATA     ')
rejected: vendor is ATA      (not from DRI)
examining:  /dev/sdd
id:  (2, 0, 1, 0, 'Dell    ')
rejected: vendor is Dell     (not from DRI)
examining:  /dev/sdg
id:  (2, 5, 0, 0, 'ATA     ')
rejected: vendor is ATA      (not from DRI)
examining:  /dev/sdh
id:  (6, 0, 0, 0, 'Drobo   ')
found a Drobo
appending new lundevs to devices: []
returning list:  [['/dev/sdh']]
trying:  ['/dev/sdh']
cfg:  (8, 0, 36893505739605147136L)
settings:  (1298485938, 8, 'DroboElite')
found  [['/dev/sdh']]
cfg:  (8, 0, 36893505739605147136L)
settings:  (1298485938, 8, 'DroboElite')
([], 0)


Drobo != DROBO ??

Thanks in advance
PD: this is a backport version running on lenny
diff -ruN '--exclude=.svn' squeeze//debian/changelog trunk//debian/changelog
--- squeeze//debian/changelog	2011-02-23 17:32:23.000000000 +0100
+++ trunk//debian/changelog	2011-02-23 17:32:23.000000000 +0100
@@ -1,3 +1,23 @@
+drobo-utils (0.6.1+repack-1~bpo50+2) bvmc; urgency=low
+
+  * Rebuild for BVMC.
+  * debian/README.source:
+    - Added quilt info 
+  * debian/rules:
+    - Added quilt rules
+  * debian/control:
+    - Added quilt to Build-Depends
+  * Created debian/patches:
+    - Added patch 0001_fixing_drobo_identify_devices.patch
+
+ -- Victor Seva <[email protected]>  Wed, 23 Feb 2011 13:10:33 +0100
+
+drobo-utils (0.6.1+repack-1~bpo50+1) bvmc; urgency=low
+
+  * Rebuild for BVMC.
+
+ -- Victor Seva <[email protected]>  Wed, 23 Feb 2011 10:10:52 +0100
+
 drobo-utils (0.6.1+repack-1) unstable; urgency=low
 
   [ Chris AtLee ]
diff -ruN '--exclude=.svn' squeeze//debian/control trunk//debian/control
--- squeeze//debian/control	2011-02-23 17:32:23.000000000 +0100
+++ trunk//debian/control	2011-02-23 17:32:23.000000000 +0100
@@ -4,7 +4,7 @@
 Maintainer: Chris AtLee <[email protected]>
 Uploaders: Python Applications Packaging Team <[email protected]>
 Build-Depends: debhelper (>= 5), python (>= 2.5)
-Build-Depends-Indep: python-support (>= 0.6), groff, python-docutils
+Build-Depends-Indep: python-support (>= 0.6), groff, python-docutils, quilt
 Standards-Version: 3.8.3
 Homepage: http://drobo-utils.sourceforge.net
 Vcs-Svn: svn://svn.debian.org/svn/python-apps/packages/drobo-utils/trunk/
diff -ruN '--exclude=.svn' squeeze//debian/patches/0001_fixing_drobo_identify_devices.patch trunk//debian/patches/0001_fixing_drobo_identify_devices.patch
--- squeeze//debian/patches/0001_fixing_drobo_identify_devices.patch	1970-01-01 01:00:00.000000000 +0100
+++ trunk//debian/patches/0001_fixing_drobo_identify_devices.patch	2011-02-23 17:32:23.000000000 +0100
@@ -0,0 +1,12 @@
+--- a/DroboIOctl.py
++++ b/DroboIOctl.py
+@@ -313,7 +313,8 @@
+              print "id: ", id
+ 
+           thisdev="%02d%02d%02d" % (id[0], id[1], id[2])
+-          if ( id[4].startswith("TRUSTED") or id[4].startswith("DROBO") ):  # you have a Drobo!
++          vendor=id[4].upper()
++          if ( vendor.startswith("TRUSTED") or vendor.startswith("DROBO") ):  # you have a Drobo!
+              if debugflags & Drobo.DBG_Detection:
+                 print "found a Drobo"
+              if thisdev == previousdev :  # multi-lun drobo...
diff -ruN '--exclude=.svn' squeeze//debian/patches/series trunk//debian/patches/series
--- squeeze//debian/patches/series	1970-01-01 01:00:00.000000000 +0100
+++ trunk//debian/patches/series	2011-02-23 17:32:23.000000000 +0100
@@ -0,0 +1 @@
+0001_fixing_drobo_identify_devices.patch
diff -ruN '--exclude=.svn' squeeze//debian/README.source trunk//debian/README.source
--- squeeze//debian/README.source	2011-02-23 17:32:23.000000000 +0100
+++ trunk//debian/README.source	2011-02-23 17:32:23.000000000 +0100
@@ -2,3 +2,8 @@
 debian/ directory from it; to obtain the tarball used from this package, run:
 
     debian/rules get-orig-source
+
+This package uses quilt to manage all modifications to the upstream source.
+Changes are stored in the source package as diffs in debian/patches and
+applied during the build.
+See /usr/share/doc/quilt/README.source for a detailed explanation.
\ No hay ningún carácter de nueva línea al final del archivo
diff -ruN '--exclude=.svn' squeeze//debian/rules trunk//debian/rules
--- squeeze//debian/rules	2011-02-23 17:32:23.747747998 +0100
+++ trunk//debian/rules	2011-02-23 17:32:23.707747998 +0100
@@ -4,16 +4,21 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+# quilt
+include /usr/share/quilt/quilt.make
+
 PKGNAME := drobo-utils
 
+configure: patch
+
 build: build-stamp
 
-build-stamp:
+build-stamp: configure
 	dh_testdir
 	python setup.py build
 	touch $@
 
-clean:
+clean: unpatch
 	dh_testdir
 	dh_testroot
 	python setup.py clean --all

Reply via email to