Requirements
- ACLs
- Fault-tolerant RAID
- 3+ Terabyte capacity
- Data encryption
- Data partitioning
- User quotas
Secondary Requirements
Backup
Configuration
- 4-8 Disk RAID6
- dmcrypt
- LVM
- dmcrypt
Linux >2.6.17 can resize RAID5
Data Partitioning
- Inherits MediaCentre.BackEnd requirements
- User data (/home)
- Backup data (/systems)
- Project data (/src)
- Multimedia data (/media)
- Fast access data (RAID0)
Filesystem
XFS
- Very fast
- ACLs
- Not-resizeable
Both XFS and JFS are good candidates.
Benchmarking from 2004: http://linuxgazette.net/102/piszcz.html
"XFS is only safe when you have:
a) no write caching on the drive (barrier or nobarrier)
b) non-volatile write caching on the drive (barrier or nobarrier)
c) volatile write caching and barriers supported and enabled
The same conditions hold true for any filesystem that requires I/O ordering guarantees to maintain filesystem consistency..." - SGI Archive
XFS important options:
* mkfs.xfs -l size=128m (seems to be the default)
* nobarrier?
* noatime
* block size <= page size (Linux limit) (4k on x86_64)
RAID 5 tuning
- Don't specify su or sw, mkfs.xfs does the right thing.
- ONLY on LVM or dmraid devices. For dmcrypt or HW raid they need to be specified manually.
-
http://www.eecs.harvard.edu/~stein/PAPERS/hotosx-html/
sunit = DM chunk size swidth = sunit × (N-1) N = disks in RAID 5 array
EXT4
- Resizeable
- ACLs
- Comparable performance to XFS, better metadata performance
- Clear upgrade path to btrfs. (btrfs_convert)
Hardware
CPU Power
- Buffalo TeraStation uses Freescale MPC8241 PPC @ 266MHz, 128MB RAM
- TeraStation has Realtek 8110 ethernet, not Jumbo clean
Commercial NAS
| Model | Bays | Price | Link | || | Buffalo Terastation Pro | 4 | ~700 | | | Synology 407e | 4 | £380 | | | Infrant ReadyNAS NV+ | 4 | £500 | | | D-Link DNS-323 | 2 | £150 | froogle |
Hardware Raid Adapters
| Model | Type | Ports | Price | || | Adaptec 2410SA | SATA | 4 | £220 | | HighPoint RocketRAID 1640 | SATA | 4 | | | ICP Vortex 8546RZ | SATA | 4 | | | LSI MegaRAID 150-4 | SATA | 4 | |
Software Raid Adapters
| Model | Type | Ports | Price | || | Adaptec 1430SA | PCI-E | 4 | £62 | | Promise SATA300 TX4 | PCI-66 | 4 | £55 | | Promise SATA300 TX4302 | PCI-66 | 2, 2e | £55 |
http://www.span.com/catalog/product_info.php?products_id=5090&source=gbaseuk¤cy=GBP
eSATA adapters
Disk Enclosures
- Span 8-bay iSCSI: £336
- Span 8-bay eSATA: £100
- 1U 4-bay generic: Eclipse £77
- SeriTek 1EN2 £105 - hotswap
- Highpoint X4 - 4-bay Multilane
- CF-10 series
Hard Disks
Maxtor: 250=6.5, 320=6.8
WD: 320=5.9, 400=4.8, 500=6.4
Seagate: 400=5.47, 500=6.7 (ST3500641AS), 500=5.95
| Model | Buffer | Capacity | Price | Warranty | || | Samsung HD501LJ | 16 | 500 | 69 (Scan) | 3 | | WD5000KS | 16 | 500 | 80 (Misco) | 3 | | Seagate 7200.10 ST3500630AS | 16 | 500 | OEM 87, Dabs 77 | 5 non-OEM |
Notes
- For connecting disk enclosures to external controller
- eSATA (one per SATA channel)
- Infiniband (one per 4 SATA channels)
SAS, eSATA, ML
- http://www.anandtech.com/printarticle.aspx?i=2859 - intro to server storage
Port Multipliers
Support from patched 2.6.22
- http://home-tj.org/wiki/index.php/Libata-tj-stable - status
- http://www.avsforum.com/avs-vb/showthread.php?t=869763
- SATA PM vs SATA ML
- http://www.mail-archive.com/linux-ide@vger.kernel.org/ - Linux-ide mailing list archive
- http://marc.info/?l=linux-ide&m=118825737704343&w=2 - SiI3132 is buggy (Limited to 120MB/sec)
- http://www.amug.org/amug-web/html/amug/reviews/reviews.html - Loads of reviews of enclosures
- http://www.amug.org/amug-web/html/amug/reviews/articles/addonics/adsa3gpx8-4em/ - SiI3124 beats 120MB/sec
RAID
- Calculator: http://www.ibeast.com/content/tools/RaidCalc/RaidCalc.asp
- http://articles.techrepublic.com.com/5100-6349-1054944.html - Guide
- http://www.chemistry.wustl.edu/~gelb/castle_raid.html - HW vs SW RAID5
Links
http://tweakers.net/reviews/557/29 - comparison of 9 SATA hardware raid cards
http://www.chemistry.wustl.edu/~gelb/castle_raid.html - software vs hardware raid (Linux)
http://www.hwb.no/artikkel/15307
http://www.smallnetbuilder.com/content/view/27840/77/ - build a cheap and fast raid 5 NAS
http://www.terastation.org/wiki/Hacking
http://www.terastation.org/wiki/Real_NAS
http://www.cooldrives.com/eidrrerasaii.html
http://www.span.com/ - Storage array cases
http://tomshardware.co.uk/2007/05/15/the_spring_hard_drive_guide_uk/
http://marc.info/?l=linux-raid&m=108225929401354&w=2 - thread on 3TB array
http://smartmontools.sourceforge.net/ - watching SMART for signs of failure
http://forums.anandtech.com/messageview.cfm?catid=27&threadid=2047740 - 3-5 TB raid
http://en.wikipedia.org/wiki/Lustre_%28file_system%29
http://www.gagme.com/greg/linux/raid-lvm.php - Linux LVM and RAID
[Tom's hardware - entry-level storage components review][60]
http://www.shimari.com/dm-crypt-on-raid/ - dmcrypt on RAID howto