User: Password:
|
|
Subscribe / Log in / New account

Heavyweight transactions!

Heavyweight transactions!

Posted Nov 12, 2009 17:08 UTC (Thu) by Cyberax (✭ supporter ✭, #52523)
Parent article: Supporting transactions in btrfs

It would be nice to have heavyweight transactions.

I.e. I start "apt-get dist-upgrade", it makes a snapshot of the hard drive, stops all IO operations from other processes, and does upgrade. If it fails, then it will just roll back to the previous snapshot.

It would be nice to avoid locking other processes, but braindeadness of Unix filesystems seems to require it :(


(Log in to post comments)

Heavyweight transactions!

Posted Nov 12, 2009 20:00 UTC (Thu) by doogie (guest, #2445) [Link]

Won't work; let's say you stop that background postgres daemon, so it is no longer doing any IO. But the upgrade then needs to stop the daemon, upgrade it's files, then start it again.

Heavyweight transactions!

Posted Nov 12, 2009 21:38 UTC (Thu) by Cyberax (✭ supporter ✭, #52523) [Link]

Not a problem:
1) You can stop postfix before upgrade starts.
2) You can stop postfix _inside_ the transaction. It might lead to lost data, though.


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds