Skip to content

u/supro47

In this archive from Jun 2015 to Feb 2022

4
posts
22
comments
0
media
63
score
1 saved before deletion

Clonezilla works great, I've used clone hard drives several times.

If you are using it as your main backup solution, you may want to look into ways of doing incremental backups so you don't have to clone your entire drive each time you make a backup. My solution is rather complicated (and requires you to use BTRFS as your filesystem), but I'll share it anyways.

On my main hard drive, I have three btrfs subvolumes: @root, @home, and @backup. I take snapshots and store them in @backup. Btrfs snapshots let like data overlap, so if the first snapshot is 5gb, and the second snapshot is 5gb with 4gb overlaping with the first snapshot, then it will only take up 6gb of space. You can then use send/recieve to send incremental backups to an external drive, which I store in /media/usb/@backup. The snapshots that are sent are read-only, so then I take a writable snapshot and store it at /media/usb/@home and /media/usb/@root. Grub also is installed on the usb drive.

Like I said, a bit complicated, but it's really nice because I have a usb3 drive with a year's worth of backups that I can boot my last backup from. The backups generally take less than 10 minutes to make (clonezilla can take several hours depending on your drive size and speed).

The other nice thing about it, is that btrfs skips subvolumes that are inside another subvolume (you must do this seperately), so if there's stuff you don't want to back up, just stick it in it's own subvolume. For example, I don't need to back up my steam games because I can just redownload them if something goes wrong. So my steam folder is in it's own subvolume and then it doesn't take up space when I make my backup.

You may also want to keep a bootable livecd/dvd/usb on hand, especially if you don't have usb 3 on your system. Usb 2 is extremely slow because it doesn't let you read and write at the same time. LiveCDs/usbs are optimized for read only media, so if you just need to boot into linux and fix a few things on your hard drive (via chrooting or something), it will be a lot quicker than booting an OS that is installed to a usb2 drive. Usb 3 is much faster though, and will run almost as fast as your sata drives, so it's less of a problem.

1 points

Systemd should be able to do it but I don't know how you'd go about it. If you log into the remote PC with a user you could put an umount option in the {bash,zsh}rc which should work (allow users to unmount in fstab or use sudo)

Thanks, this will work for now. I'd like to get systemd to do it, because the server is in a different room and it'd take less running back and forth when I reboot the machine. I guess I'm reading up on systemd tonight, because I barely understand how it works.

2 points

In your example, you have crypttab pointed at a mounted partition. Can you do this without mounting it (point to something like /dev/disks/by-id/<UUID>? My understanding is that the key has to be in a partition that is mounted for crypttab to read it.

The wiki says that crypttab is ran before fstab, so I didn't think you could mount the usb in fstab and then have crypttab get the key, but I just tried it and that works. Is there a way to automattically unmount the drive when the machine finishes booting? That way I won't have to ssh in to umount.

1 points

It's hard to say what's going on without any more information.

Run:

dmesg | tail    

after it crashes to see if there's some sort of hardware issue.

Also, if you execute spotify from the terminal, it might spit out an error message when it crashes, or atleast hopefully tell you what it was doing when it crashed. If you do this a couple of times and it was always doing the same thing when it crashes, it might narrow down what the problem is.

There's a broad list of things that could be wrong (anywhere from a hardware issue to coincidentally both these programs have unrelated bugs that need fixing), so it's really hard to narrow down what's wrong. You may want to check your drive for smart errors and run memtest86+ (which is also available on various livedvds). If you are able to try the same programs out on a different distro and they don't crash, then you might be able to narrow it down to a software problem.

2 points

The MD#'s are OEM and the PH#'s are retail. Not sure if there is a difference between "MD04ACA500V" and "MD04ABA500V", but I'd guess its either a different batch or a different revision, with AC being newer. If you are that concerned, emailing Toshiba would be your best bet.

Even if they are slightly different, I'm sure the build quality and performance is the same.

(FYI: They are cheaper on amazon right now)

3 points

ZFS has it's own error handling built in. It's one of the advantages of using software raid vs hardware raid. TLER won't hurt, and perhaps there is minimal benefit to having both the hardware and the software checking for errors, but it's pretty much irrelevant and not necessary.

1 points

Your post was really informative. Looks like I have some reading to do. It's some really cool stuff and I'm excited to see what comes out of it.

Moving away from raid into better methods of parity does seem like a good solution for the time, but I'm really wondering how much longer we stick with hdds (or at least, the type that we are using now). There's all kinds of problems to deal with, especially as they get larger. There's more moving parts and more probability of failure.

2 points

I was thinking of larger arrays, and there definitely is a curve when you start talking about what is cost effective. There's a reason now you see all the giant enterprise servers running 4TB and 5TB drives even though bigger stuff exists.

I guess in your hypothetical, you are talking about using SMR drives in a raid with more parity, and right now that's not a good solution, because there really isn't any advantage of using larger SMR drives and more parity for failure. A larger system with smaller drives are more practical.

Currently I don't think that SMR drives have any place in a RAID, and their use is really limited to "write once" type of backups.

However, let's hypothetically say that 6tb is the limit for standard hdd technology (it isn't, but let's pretend). At some point in the future, a larger drive, say 20TB SMR drives might be more cost effective to run with more parity than a string of 6TB with less, the same way now that 10x5tb is more cost effective than 50x1TB (cost for the drives are similar, but the hardware needed to run 50 drives isn't).

I don't think this is really the answer though, but how things would end up if no new storage technology is invented (well, we have ssd...but those do have their own problems with long term storage)

Edit: I also just wanted to point out that I'm only a hobbyist when it comes to these things so I'm largely just speculating and talking out of my ass.

3 points

I think we'll see the technology change before we get to that point. Either everything will go ssd, or some new hdd technology will be invented that can write faster. On top of that, there's some hard limit on how large plate hdd can get (we have a little ways to go still), so eventually we'll have to start using something else anyways.

The problem is also somewhat resolved by having more parity. As rebuild times get longer, I expect to see less and less raid5/6 and more raid51/61 (or whatever you call raid that has both mirroring and parity) or some other new crazy raid configuration that allows for more drives to fail during rebuild. I dunno, I guess at some point you reach a stage where you would constantly be rebuilding, but once again, I think that's a long ways off and new tech will come out that doesn't suffer from the same problems.

2 points

Ah, such innocence. Beware, my young friend, that the addiction only gets worse. Fill up a drive, get a new external. Then you have too much stuff on your desk, so you crack them open, and put them in your new shiny case that houses six drives. Shit, hard drive died. Better look into this raid thing that everyone's raving on about. Okay, I have a raid set up, but how do I know my data is still good? Better buy ecc memory. Hmm, six bays are no longer enough, better build a server. Wow...I'm collecting so much data, I need a more efficient way to back it up in case everything dies. These tape drives are cool....

Then you spend a better part of your Sunday convincing yourself that buying a $2000 lto-6 tape is crossing the line.

15 points

Like /u/tyrrannothesaurusrex said, if you have the full size rips it's worth it. If you access to the original blurays/dvds, makemkv(for ripping) + handbrake(for encoding) will do the job nicely. You should never re-encode files.

Honestly though, even if you have the full size rips or the original DVD/blurays, unless you have a really fast computer, it's going to be faster for you to just re-download in the format you want. I started ripping my entire bluray collection but gave up on that after I realized I could easily download 3 or 4 movies in the time it took to rip and encode one (and that's on a mediocre internet connection).

7 points

I've been playing with btrfs raid5 with some old drives, and as far as I can tell, everything works great. I was actually expecting them to mark it as stable, because when raid5/6 was first added, I thought the only think keeping it from being stable was the fact that scrub and replace didn't work. It honestly wouldn't surprise me if the dev team actually considers it stable now, but just haven't changed it on their wiki because they haven't updated the page on raid5/6.

edit:clarity

1 points

I totally get it. It's 'datahoarding' for a reason, and the thought of losing your data due to software being goofy is terrifying. ZFS is nice, and has been tried and tested for a while and it's by no means a bad choice. It has certain advantages, and especially when used with ECC memory, it's a rock solid choice that may be more reliable than btrfs.

I was just throwing in my two cents because I think btrfs does get a bad rap around here that it doesn't necessarily deserve. People keep saying it's unstable and make it sound like that means it's going to have binary diarrhoea all over your data. As someone who has used it over the past three years, I just haven't seen that. It's mainly 'unstable' because some of it's features are still in development, but the file system itself is stable and has been considered so for a while now.

It has some clear advantages over zfs, especially because it doesn't require investing in everything upfront. Btrfs is extremely flexible when it comes to upgrading and doesn't have the memory requirements that zfs needs (which recommends a 1GB of memory for 1TB of storage).

Personally, I think that the cost of everything you need for a proper zfs system is a bit overkill for housing media, where as if I was running some sort of production server or storing unique data that I couldn't afford to loose, zfs would be a must.

Really though, that's just my opinion. Zfs is a good choice, and you won't go wrong going in that direction. It's just that, based on what you've said, btrfs might be a better choice that more fits your needs.

2 points

There's no real time frame, but it's progressing steadily in that direction. I don't think it's as 'unstable' as people think it is, it's more 'untested'. They added it back in kernel 3.8 (I think), but it was extremely unusable because it was missing scrub and replace. 3.19 kernel added both of those back in, so most features work now (there's some really quirky stuff about how it reports how much space has been used) and I don't think it will be long until it's deemed stable for consumers (or at least as stable as the rest of btrfs). That being said, don't expect wide spread adoption until it's been tested and used thoroughly.

The nice thing is, you can start with raid1 and as you fill up your space, convert to raid5/6 on the fly just by running the balance command.

Edit: Btrfs is also awesome at creating raids with disks of different sizes. This means you can slowly replace smaller disks with bigger ones without having to decide and stick with a size. Right now I'm adding 5tb drives, but as larger ones go down in price, I'll add 6tb's instead. A mixed system of 5tb/6tb/8tb drives? Btrfs doesn't care.

3 points

I've never tried it before, but I'm guessing it works because btrfs is copy on write, which allows it to search for old copies of data in the "empty space" and give you some level of recovery if a sector goes bad. This is great for data recovery from deleting files but will be pretty limited for data recovery from a drive going bad. Do you have a link to the page that talks about it? I'm curious at how that works and I might test it on a couple of usb drives to see what happens.

I'd stick with raid 10. Even if that feature is stable and works the way you suggest, your data is much more secure in raid. Hardware failure is hardware failure and software voodoo can only do so much to recover data. This won't recover data if your drive gets really messed up, and as your drives fill up, there will be less old copies on the drive (unless you use snapshots) so it will be a less effective method of recovery.

(I also could be wrong with how this works. If someone has a better understanding, please correct me)

1 points

Love this set up. I'm looking at doing something similar in herbstluftwm. There's a few scripts missing that are mentioned in bar.sh (artist.sh, func_mpc.sh, & func_volume.sh) that are missing in your dotfiles. I'd really like to see how you got the song progress bar and volume bar in dzen2.

2 points

End of this list.

Back to top

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.