Hi All,
After hunting down (often contradicting) pieces of information about Drobo and Linux, I’ve finally managed to get it to work the way I want it.
I know that the manual says “As you drag the slider across the different volume size options, note the tradeoffs to consider when making your selection.” Since I don’t run Windows, could somebody be so kind and tell me what those tradeoffs are?
This post is both for information and to get verification of my method. A word from DRI would also be appreciated in case I’ve made a major mistake there.
(this is a copy of w%252BJLWNv5MZC)
[size=medium]16TB Drobo on Linux using ext3 and thin provisioning.[/size]
4 x 2TB Western Digital Green disks in a Drobo.
drobo-utils installed with “python setup.py install” (version 0.6.1). The GUI is useless (forces LUN size to max 2TB).
[font=Courier]# drobom setlunsize 16 PleaseEraseMyData
WARNING: lun size > 2 TiB known not work in many cases under Linux
You asked nicely, so I will set the lunsize to 16 as you requested
set lunsize to 16 TiB
Done… Drobo is likely now rebooting. In a few minutes, it will come back with the new LUN size
[/font]
[font=Courier]# dmesg | tail -n 25
usb 8-6: new high speed USB device using ehci_hcd and address 9
usb 8-6: configuration #1 chosen from 1 choice
scsi19 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 9
usb-storage: waiting for device to settle before scanning
usb 8-6: New USB device found, idVendor=19b9, idProduct=4d10
usb 8-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 8-6: Product: Drobo
usb 8-6: Manufacturer: Data Robotics Inc.
usb 8-6: SerialNumber: 0DB0DEADBEEF
scsi 19:0:0:0: Direct-Access TRUSTED Mass Storage 2.00 PQ: 0 ANSI: 5
sd 19:0:0:0: [sdr] Very big device. Trying to use READ CAPACITY(16).
sd 19:0:0:0: [sdr] 34359738368 512-byte hardware sectors (17592186 MB)
sd 19:0:0:0: [sdr] Write Protect is off
sd 19:0:0:0: [sdr] Mode Sense: 03 00 00 00
sd 19:0:0:0: [sdr] Assuming drive cache: write through
sd 19:0:0:0: [sdr] Very big device. Trying to use READ CAPACITY(16).
sd 19:0:0:0: [sdr] 34359738368 512-byte hardware sectors (17592186 MB)
sd 19:0:0:0: [sdr] Write Protect is off
sd 19:0:0:0: [sdr] Mode Sense: 03 00 00 00
sd 19:0:0:0: [sdr] Assuming drive cache: write through
sdr: unknown partition table
sd 19:0:0:0: [sdr] Attached SCSI disk
sd 19:0:0:0: Attached scsi generic sg21 type 0
usb-storage: device scan complete[/font]
Yup, the single LUN is visible. Let’s partition it. fdisk will be no good – it can’t use GPT. parted it is then.
[font=Courier]# parted /dev/sdr
GNU Parted 1.8.8
Using /dev/sdr
Welcome to GNU Parted! Type ‘help’ to view a list of commands.
(parted) mklabel
New disk label type? [gpt]? gpt
(parted) mkpart primary
File system type? [ext2]? ext2
Start? 0
End? 100%
(parted) print
Model: TRUSTED Mass Storage (scsi)
Disk /dev/sdr: 17.6TB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 17.4kB 17.6TB 17.6TB primary , , , , , , , , , , ,
(parted) quit
[/font]
Now for the file system:
[font=Courier]# mkfs.ext3 /dev/sdr1
mke2fs 1.40.8 (13-Mar-2008)
mkfs.ext3: Filesystem too large. No more than 2**31-1 blocks
(8TB using a blocksize of 4k) are currently supported.
[/font]
Right, that’s consistent with 1.3.5 Drobo firmware release notes. Up to 8TB. But it is possible to use a single 16TB ext3 volume with DroboShare. Clearly an artificial limitation then!
The problem seems to be an old distribution running on that host (openSUSE 11.0).
[font=Courier]# uname -a
Linux motmot 2.6.25.20-0.5-default #1 SMP 2009-08-14 01:48:11 +0200 x86_64 x86_64 x86_64 GNU/Linux[/font]
Let’s try newer kernel – my laptop runs openSUSE 11.2.
[font=Courier]# uname -a
Linux ciri 2.6.31.5-0.1-desktop #1 SMP PREEMPT 2009-10-26 15:49:03 +0100 i686 i686 i386 GNU/Linux[/font]
Plugging in Drobo:
[font=Courier]
dmesg|tail -24
[ 6957.322069] usb 2-4: new high speed USB device using ehci_hcd and address 3
[ 6957.436959] usb 2-4: New USB device found, idVendor=19b9, idProduct=4d10
[ 6957.436970] usb 2-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 6957.436979] usb 2-4: Product: Drobo
[ 6957.436986] usb 2-4: Manufacturer: Data Robotics Inc.
[ 6957.436993] usb 2-4: SerialNumber: 0DB0DEADBEEF
[ 6957.437133] usb 2-4: configuration #1 chosen from 1 choice
[ 6960.289082] scsi6 : SCSI emulation for USB Mass Storage devices
[ 6960.290129] usb-storage: device found at 3
[ 6960.290131] usb-storage: waiting for device to settle before scanning
[ 6961.290673] scsi 6:0:0:0: Direct-Access TRUSTED Mass Storage 2.00 PQ: 0 ANSI: 5
[ 6961.290845] sd 6:0:0:0: Attached scsi generic sg2 type 0
[ 6961.293622] sd 6:0:0:0: [sdb] Very big device. Trying to use READ CAPACITY(16).
[ 6961.294203] sd 6:0:0:0: [sdb] 34359738368 512-byte logical blocks: (17.5 TB/16.0 TiB)
[ 6961.294231] usb-storage: device scan complete
[ 6961.295257] sd 6:0:0:0: [sdb] Write Protect is off
[ 6961.295265] sd 6:0:0:0: [sdb] Mode Sense: 03 00 00 00
[ 6961.295268] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[ 6961.297389] sd 6:0:0:0: [sdb] Very big device. Trying to use READ CAPACITY(16).
[ 6961.298516] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[ 6961.298526] sdb: sdb1
[ 6961.314895] sd 6:0:0:0: [sdb] Very big device. Trying to use READ CAPACITY(16).
[ 6961.316141] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[ 6961.316149] sd 6:0:0:0: [sdb] Attached SCSI disk
mkfs.ext3 /dev/sdb1
mke2fs 1.41.9 (22-Aug-2009)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
1073741824 inodes, 4294967287 blocks
214748364 blocks (5.00%) reserved for the super user
First data block=0
131072 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848, 512000000, 550731776, 644972544, 1934917632,
2560000000, 3855122432
Writing inode tables: 120/131072
[/font]
This took over 4 hours. I wish Drobo supported XFS…
I am now populating this storage with data, here’s a look at the df output:
# df -h /media/Drobo
Filesystem Size Used Avail Use% Mounted on
/dev/sdb1 16T 1.2T 15T 8% /media/Drobo
One can issue [font=Courier]tune2fs -m 0 /dev/sdb1[/font] to remove the 5% reservation for root-owned files.
Comments? Will it work or will I be re-populating the disks again?