Friday, May 3, 2024
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 1022  / 2 Years ago, tue, december 7, 2021, 12:21:47

I have a 2TB and a 1.5 TB hard drive. My ultimate goal is that I have a partition of 1.5 TB which is mirrored to both disks, so that I won't lose data if one hard disk crashes. Of course I'd like to be able to use the remaining 500 GB as well, but I don't need it mirrored. This is only about data, the system is on another harddisk.


I'm not sure which is the best way to achieve that. I have thought of the following things:



  • Raid 1 (although I'm not sure whether I could still use the remaining 500 GB then). Also I read that the partitions should be exactly the same size..



  • set up some rsync (not very convenient)



  • use LVM (although I'm not sure what to with that exactly)


    My goal is to a) have redundancy so I won't lose data if one hd crashes and b) ideally gaining some performance if possible using e.g. raid




Any advice is appreciated!


More From » partitioning

 Answers
7

I'm not sure what the purpose of this setup is- do you need both hard drives to be functional (and identical), or are you just referring to a full-on backup?



For a backup, there are several available tools to make complete backups. There is, of course, the deja dup tool, but you may wish to use something else. (There is also the dd tool from the command line; type man dd at the terminal to understand syntax.)



Backup tools are discussed here; a common tool is Clonezilla.



EDIT:



Here's the cleanest means of using the dd function:



"dd if=/dev/hda1 of=./part1.image to backup(repeat for different partitions)
dd if=./part1.image of=/dev/hda1 to restore"



Original post is here. Running this command periodically will give you a bit-perfect copy of your partition.


[#26761] Tuesday, December 7, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
allally

Total Points: 487
Total Questions: 106
Total Answers: 110

Location: Laos
Member since Sun, Jul 3, 2022
2 Years ago
;