Our application uses EBS to store data. The storage requirement of the application grows rapidly as users signup. We need to do it online so that users don't experience downtime with the application. So, here is what we do:
- The file system is XFS.
- We are using LVM and RAID0.
- Whenever we fill up 40% of total storage, we add two EBS volumes, create a RAID0 array out of them. Then we add this array to the LVM to extend the file system.
This way, the application can continue to read and write to the file system, while the underlying file system grows.
Yesterday, we experienced corruption in some of the database files that were being written into.
My question is:
- is it safe to use RAID0 with LVM and XFS?
- is it safe to use xfs_grow to increase storage while the files in the file system are being written into?