News for hackers. Stuff that matters.
Re:Long term support considered harmful by edofic on Tuesday January 27, 2015 @04:15PM (#8955968)
"Since there's no way to roll back server upgrades"

It is if you run a modern filesystem like ZFS or btrfs. You just do a cheap snapshot before upgrading(can be automated) and roll back if there are problems. Even works with lvm.

Re:Long term support considered harmful by KaiserPro on Tuesday January 27, 2015 @09:33PM (#8957668)
Sadly as zfs isn't as widely available as I'd like, you can use LVM to provide snapshots.

Its not as friendly as ZFS snapshots, but it is at least available in centos 5 https://www.centos.org/docs/5/html/Cluster_Logical_Volume_Ma...

(sadly somethings need long term support)

Re:Long term support considered harmful by lsc on Wednesday January 28, 2015 @12:58AM (#8958368)
rolling back a LVM snapshot involves dding off the snapshot, and on to whatever you want your production disk to be (or just running off the snapshot forever, which has.... performance consequences with LVM.)

Yes, LVM snapshots exist, but they are of limited utility compared to ZFS and the like.

I've been experimenting with CentOS6 and ZFS on Linux; so far it looks pretty good. it handles failing consumer grade hard drives vastly better than lvm on md, and snapshots are inexpensive.

Re:Long term support considered harmful by b101010 on Wednesday January 28, 2015 @04:18AM (#8958879)
You can also roll back lvm snapshots using the merge option

https://access.redhat.com/documentation/en-US/Red_Hat_Enterp...

Re:Long term support considered harmful by lsc on Wednesday January 28, 2015 @11:42AM (#8960863)
nice. I had not seen that before... that makes it a lot more useful.
Re:Long term support considered harmful by KaiserPro on Wednesday January 28, 2015 @04:34AM (#8958922)
Oh yes, LVM is abhorrent, along with mdadm.

Thats why I'm not so happy about the direction the tools are going with BTRFS. If ZFS isn't around, LVM is your only real option.

However, RHEL usually sets up LVM, so you might as well use it.

Re:Long term support considered harmful by thaumaturgy on Tuesday January 27, 2015 @04:23PM (#8956029)
Ooh, thanks. That's a good idea. I'd never considered running ZFS on my small servers.
Re:Long term support considered harmful by keithpeter on Tuesday January 27, 2015 @06:25PM (#8956891)
Or perhaps simply gzip of the / partition before upgrading. If insuperable problems, zap new / and restore old known working one?

Assuming data/sites are on different partitions.

Re:Long term support considered harmful by kbenson on Tuesday January 27, 2015 @07:03PM (#8957070)
While initially conceptually easier to grasp, that is far inferior to using a snapshot.

Here's a short list of ways in which that may cause you problems:

1) gzip of a path is not point in time, synced files may no longer be in sync since they were backed up at slightly different times (e.g. I hope you didn't expect database consistency to actually mean anything).

2) gzip of a path will take a while, because it has to actually function on every file (a snapshot is generally copy on write, meaning it's "free" (not quite) for every file until it's changed. Throw away the snapshot before a change and there's no need to copy the file.

3) gzip will take more room (see #2)

Re:Long term support considered harmful by keithpeter on Wednesday January 28, 2015 @10:33AM (#8960341)
Excellent reply. The implications of a significant number of transactions per minute had escaped me.
Re:Long term support considered harmful by davexunit on Wednesday January 28, 2015 @09:11AM (#8959864)
Or, you could try out NixOS/GuixSD, which support transactional upgrades and rollbacks for the full system. No need to take a disk image (outside of your normal backup routine, of course).
Re:Long term support considered harmful by vacri on Tuesday January 27, 2015 @11:59PM (#8958201)
btrfs still isn't production ready. I went to a talk from a btrfs dev two weeks ago, and it was still "use btrfs with caveats", not "just use btrfs".
Re:Long term support considered harmful by vel0city on Tuesday January 27, 2015 @11:39PM (#8958141)
Or, if you're using VMs, just take a snapshot and roll back if something doesn't work right. For anything that isn't virtualized, there's ZFS.