Software RAID support on Linux

Good RAID FAQ on Linux here.

Walkthrough on setting up a software RAID array here

Check RAID status:

<code>/sbin/mdadm --detail /dev/md0</code>

Or check with this:

<code>sudo cat /proc/mdstat</code>

This is what a good status will look like:

<code>
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] 
md1 : active raid1 sdb5[0] sdc5[1]
      1485888 blocks [2/2] [UU]
      
md0 : active raid1 sdb1[0] sdc1[1]
      242709888 blocks [2/2] [UU]
      
unused devices: <none>

The [UU] (I think) indicates the status of both drives in the array, and both are Up

Removing drives: sudo mdadm /dev/md0 -r /dev/sdb1

Adding drives back to the array: sudo mdadm /dev/md0 -a /dev/sdb1

applicationContext.xml file replaced after Grails upgrade

If you have heavily modified your applicationContext.xml file for your application, make sure you take a copy of it (your whole app to be safe) before you upgrade to a newer version of Grails, since during the ‘grails clean’ and ‘grails upgrade’ steps the applicationContent.xml file will be replaced.

Domain class constraint ‘length’ deprecated in Grails 0.4.2

The domain class constraint ‘length’ has been deprecated in Grails 0.4.2, and needs to be replaced with the equivalent constraint ‘size’ instead.

If you have upgraded to 0.4.2 you may see this error on startup:

<code>Domain class [class ExampleDomain] includes the length constraint for the exampleProperty
 property.  This constraint is deprecated and will be removed in the future.  
Please update your code to use the size constraint instead.
</code>