test of lvm/raid +ext4 vs btrfs
hi,
would it make sense to test btrfs on disk device compared to a mdadm raid 1 on lvm2 partition. Most of us use raid or/and Lvm2 to provide raid and snapshotting to ext4 partition. So basicaly it would be fair to test a settup with
Disk
Soft RAID 1
Lvm2
Ext4
vs
Disk
Btrfs in raid1 like setup
Both present similar features so this could be very interesting to test.
regards,
Ghislain.
Announcement
Collapse
No announcement yet.
Linux 3.14 File-System HDD Benchmarks
Collapse
X
-
Originally posted by GreatEmerald View PostYes. In fact, I have a LiveCD build on SUSE Studio just for that (it automatically pulls in the latest kernel and btrfs tools for performing complex offline tasks; last time I used it to set up a backup in a different drive using btrfs-send/btrfs-receive). The btrfs check tool itself I usually run regularly to see if it reports any problems. There sometimes are some problems when I have to force-poweroff the machine (like when the GPU hangs), but they usually amount to some warnings and some data truncation. The former are mostly solved by running btrfs scrub. There was a case when it didn't help, and I needed to run the btrfs check repair to solve those. (There was also a time when btrfs check reported a lot of false positives, and even the warnings emitted now generally don't amount to much ? the developers themselves can't tell what some of them are about without having direct access to the drive in question). There was also one time some years ago when I had bad RAM, which caused corruption that btrfs check repair couldn't solve either, but that's pretty much a given (and I still was able to retrieve all the data I needed).
I guess its time to start playing with btrfs.
- Gilboa
Leave a comment:
-
Originally posted by Ericg View PostAFAIK, Yes, Acronis just uses NTFS utilities to query the metadata and pick whats needed. And yes the same thing is possible with Btrfs.. but that requires btrfs on both drives.
Originally posted by Ericg View PostUnfortunately there's no utilities out there right now that actually DO use the filesystem utilities and API's to figure out whats going on inside the filesystem. PartImage, PartClone, (AFAIK) CloneZilla, Gnome-Disks, Gparted, all just take the easy route and do a sector-by-sector copy. Hell they may just be frontends for dd anyway.
Originally posted by Ericg View PostSo I'm back to the way we do it at the shop with Acronis Live CD's because its infinitely more space efficient.
Originally posted by Ericg View PostI'll check out Suse Studio for Suse installs, but that doesn't help me for XP or Win7 installs where every model has different drivers needed and may have different patch-levels installed.
Leave a comment:
-
Originally posted by GreatEmerald View PostI assume that Acronis does all that by checking NTFS metadata to see what space is occupied and what space isn't? Because, again, the same thing is possible with btrfs send/receive, you'll get a small snapshot with only the data you need. The other partitions, well, you'd have to use some similar filesystem tools in those
The situation at the shop is we have 1 external hard drive that is an "Image drive" which has a directory layout of images and we have an Acronis True Image liveCD. Fire up the LiveCD and do everything in a limited Acronis environment and then everything is in Acronis' secret format.
What I was hoping for was throwing Fedora on my external hard drive, installed, and whenever I needed to image a drive I would plug it in and boot onto the installed, full, Fedora system on the drive and all drive images would be in a ~/Drive Images folder and all client data backups would be under ~/Client Data. Images would (hopefully) be taken / restored from linux native utilities from within Fedora... but I can't do that if every image is multi-hundred gigabytes.
So I'm back to the way we do it at the shop with Acronis Live CD's because its infinitely more space efficient.
Originally posted by GreatEmerald View PostAs for simple reinstalls, we have deployment ISOs (see SUSE Studio) for that. You insert a CD/USB drive, boot from it, and the image gets deployed on the hard drive. Much safer than to make a disk copy and pray that copying it back makes everything work as expected.
Leave a comment:
-
Originally posted by TAXI View PostI know this is off-topic but is there any reason for tar? AFAIK you could pipe the dd output directly to the compressing program instead of using the (useless as it's just one file) container.
Leave a comment:
-
Originally posted by Ericg View PostI get that sometimes you WANT to do dd because you need a PERFECT bit by bit copy with zero possible errors... But even compressing it, I really doubt that you'll save much space unless you first zero out the drive, which means we need something better and smarter than just sector by sector.
As for simple reinstalls, we have deployment ISOs (see SUSE Studio) for that. You insert a CD/USB drive, boot from it, and the image gets deployed on the hard drive. Much safer than to make a disk copy and pray that copying it back makes everything work as expected.
Leave a comment:
-
Originally posted by Ericg View Post4) then dd the drive, piping THAT into tar
5) and tell it to compress it.
Leave a comment:
-
Originally posted by GreatEmerald View PostBah, you want to have the cake and eat it too. Doing a full disk backup naturally creates a backup of the full disk, including "free space" (which is never really free). Anything else would be an inaccurate backup and prone to error. And anyway, the point is that you should never have free space. Just like with RAM, any free space on the disk is wasted space. It's much better to make use of it by creating snapshots, so all the free space is filled with backup data (except for certain overhead space so you could delete the oldest snapshot when you need to write more to the disk). So if you want to have a space-efficient backup, then you can use send/receive. And if you want a truly full backup of the disk that you can reliably restore, then use dd and make a full copy (and you can even compress it afterwards and possibly save some extra space).Originally posted by GreatEmerald View PostBah, you want to have the cake and eat it too.
I can throw in the Acronis CD, select the "$Vendor - $Brand - $Model - $OS" image and Acronis doesn't care that the original image was taken from a 250GB Hard drive and the new one is a 120GB, or a 120GB and the new one is a 1TB. It just makes sure the partition table roughly matches resizing as needed. And thats just the automatic mode, manual mode I could configure it.
Originally posted by GreatEmerald View Postincluding "free space" (which is never really free).
1) pipe output output from /dev/zero into a file until the filesystem -ERRNOSPC's
2) then you have a file that takes up your remaining drive space, filled with zero's
3) then delete said file
4) then dd the drive, piping THAT into tar
5) and tell it to compress it.
Which ONLY works because all those zero's in the free space get compressed down to nothing. But thats not fast, reliable (seriously, torturing your disk and filesystem?), or easy.
I work in a computer repair shop, anytime we get a "Just reinstall it" job on a computer we haven't seen before the last step we do is to create an image of that computer's drive with Acronis, with all drivers and our 'standard' apps installed (flash, Avast, Reader, Chrome, etc). This way if we ever get a similar one that is also a "Just reinstall it" we don't have to go through all the hassle again. We can just restore the image we made from the last guy's clean drive and then work from there.
Sector by sector is great in that its filesystem agnostic and it will pretty much always work. But if you're taking an image of a 1TB hard drive... good luck finding a place to store that. Because you need either a blank 1TB drive, or a drive larger than 1TB that HAS 1TB free.
I just pulled up the Acronis image for a Dell Dimension system on one of the external hard drive. Full copy of the OS, + updates, + apps, + drivers.... 9.8Gb's. 9.8Gb's for an image, that for all I know came from a 1TB hard drive, or came from a 20GB hard drive. And if I restored that? Acronis wouldn't care either as long as the system had at least a 10GB hard drive.
I get that sometimes you WANT to do dd because you need a PERFECT bit by bit copy with zero possible errors... But even compressing it, I really doubt that you'll save much space unless you first zero out the drive, which means we need something better and smarter than just sector by sector.
Leave a comment:
-
Originally posted by Ericg View PostEvery linux disk utility does full disk backups via a sector by sector copy, which is great because its filesystem agnostic. But it sucks because you get an image the size of your drive, not the size of your used space because none of them hook into the filesystem utilities and kernel features to figure out what exactly IS used space
Leave a comment:
-
SSD benchmarks are queued up for Monday or Tuesday of next week.... HDD results (non-Hybrid) may come later in the week pending interest level; reason using SSHD was at the time of testing I forgot that it was a hybrid drive and the model number not reflecting it so when testing was done I remembered this particular system was my sole hybrid drive system.
Leave a comment:
Leave a comment: