Hello Michael, Thank you very much for the detailed explanation!
Joseph On Sat, Aug 10, 2013 at 12:17 AM, michael pope <map7...@gmail.com> wrote: > Joseph, > > > On 08/09/2013 02:32 PM, Joseph Bishay wrote: >> >> Good day everyone, >> >> I hope you are all doing well. >> >> Our LTSP server is running Edubuntu and has been running flawlessly >> for a while now. I'd like to add some redundancy to the server by >> adding a second hard drive to mirror /home. >> >> The current setup is: >> One SSD drive for / >> One SATA 1 TB drive for /home >> >> I'd like to add a second 1 TB SATA drive and then have it >> automagically copy the files over and then have them running as RAID 1 >> for /home, all with minimal downtime :) >> >> Does anyone have any tips or guidelines I could follow from your >> experiences? >> >> Thank you! >> Joseph >> > I would recommend putting the system drive on a RAID 1 and backup your /home > partition. If something happens to that SSD the system will go down, however > if something happens to the /home directory you could simply revert to your > backup. Building a system takes much longer. > > My LTSP setup is now using a software RAID 1 (mdadm) with a LVM on top of > that which gives me the ability to take snapshots when doing upgrades or > anything risky. Taking snapshots with LVM is simple and quick and can be > done on a live system. You can use that snapshot to take a backup of a live > system without reboot and you can revert back to a snapshot quickly using > the command 'lvconvert --merge'. > > If you do decide to go down this path leave 300MB at the front of the RAID1 > for the /boot partition as you don't need that in the LVM. > > Here is the full documentation of how I setup my drives in the Debian 7 > installer: > > Within the installation of Debian at the Partition disks screen; > 1. select 'manual' > 2. Hit enter on each drive and create a 'partition table' > 3. Create boot partitions on both disks > | Size | 0.3GB | > | Type | Primary | > | Location | Beginning | > | Use as: | RAID | > | Bootable | On | > 4. Create main partitions with the rest on both disks > | Size | <the rest> | > | Type | Primary | > | Location | Beginning | > | Use as: | RAID | > | Bootable | Off | > 5. Create boot RAID > | Write changes? | Yes | > - Click 'Create MD device' > | RAID type | RAID 1 | > | Number of active devices | 2 | > | Number of spare | 0 | > - Select both small devices > - Click continue > 6. Create main RAID > | Write changes? | Yes | > - Click 'Create MD device' > | RAID type | RAID 1 | > | Number of active devices | 2 | > | Number of spare | 0 | > - Select both large devices > - Click continue > - Click Finish > 7. Click on RAID1 298MB partition > | Use as | ext3 | > | mount point | /boot | > - Click Done > 8. Click on RAID1 Larger partition > | Use as | physical volume for LVM | > - Click Done > 9. Configure the Logical Volume Manager > - Write the changes? Yes > - Create volume group > - Name volume group 'vg.lvm.sol' > - Select the larger RAID > 10. Create logical volumes > - Select vg.lvm.sol > - Create the following volumes > | root | 30GB | | > | rootbak | 20GB | Used for snapshots | > | home | <the rest> | | > - Click Finish > 11. Click on LVM LV root volume > | Use as | ext4 | > | Mount | / | > | Mount options | noatime | > - Click Done > 12. Click on LVM LV rootbak volume > | Use as | ext4 | > | Mount | NONE | > | Mount options | noatime | > - Click Done > 13. Click on LVM LV home volume > | Use as | ext4 | > | Mount | /home | > | Mount options | noatime | > - Click Done > 14. Click Finish partitioning > 15. (optional) Do you want to return to the partitioning menu? No > This is due to the fact that I don't currently have swap setup > 16. Write the changes to disks? Yes > > My reference: http://www.youtube.com/watch?v=ZZbexPrfnzQ > > I do a system & data backup every night. > System backup is done like so; > - snapshot > - use fsarchiver to create a backup from snapshot > - remove snapshot of root. > > Data backups are done using 'dar' as it keeps all the permissions, has > compression, splices, available on 'system rescue cd', has encryption and > you can retrieve files fast as it's direct access. > > I use two Samsung 840 pro 512GB drives in a RAID 1 and put the boot, root & > home partitions on it. > > Hope this helps you. > > from > Mick ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _____________________________________________________________________ Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto: https://lists.sourceforge.net/lists/listinfo/ltsp-discuss For additional LTSP help, try #ltsp channel on irc.freenode.net