LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-23-2013, 11:07 AM   #1
masavini
Member
 
Registered: Jun 2008
Posts: 285

Rep: Reputation: 6
new backup policy...


hi,
my laptop has a 500gb hard disk. to back it up i just bought an IDENTICAL hd (same brand and model) and an external case with usb, then used them to clone the laptop hd with g4l.
i clone it after testing any change i performed on the operative system or the installed apps, while dropbox incrementally backs up my documents directories.

it is a wonderful backup system: when it happened the laptop disk got broken (it did), i just physically replaced the internal hd with the clone, booted the system and waited for dropbox to sync the most frequently changing files... in a few minutes i had my full system back, perfectly working and up to date.


i just bought an asus ux51vz with 2 128gb Adata XM11 ssd drives (with proprietary connectors) in a raid0 configuration. i will receive it in the next few days and i'm now wondering how to get a similar backup system...

here are some of the possibilities i considered:

A) keep the raid0 configuration and back it up on a single 256gb ssd connected with a usb adapter (http://www.ebay.it/itm/Asus-UX31-UX2...item3f1fbc99d2).
doubts:
1) where to buy a 256gb Adata XM11 ssd?
2) would a 256gb drive have exactly the same size (sectors number) of 2 128gb raid-0? this is crucial for g4l to properly clone the raid0 drives...
3) what does it happen if one of the 128gb ssd drives fails and i physically replace both of them with the 256gb clone? it wouldn't be a raid0 configuration anymore, shall i expect it to work properly?

pros:
- keeping the raid0 configuration would ensure the highest read/write speed
- all of the 256gb storage space could be used

cons:
- many doubts above, would such a system work properly?
- the 256gb Adata XM11 ssd will surely be pretty expensive


B) break the raid0 configuration and backup both the ssd drives to another 2 128gb Adata XM11 drives connected with a usb adapter (http://www.ebay.it/itm/Asus-UX31-UX2...item3f1fbc99d2).
doubts:
1) how to break the raid0? should i expect to find an option in the bios menu?
2) where to buy the 128gb Adata XM11 ssds for the backup?

pros:
- all of the 256gb storage space could be used
- no g4l issues for drives size

cons:
- read/write speed would be about half than in raid0
- the 2 128gb Adata XM11 ssds will surely be pretty expensive
- the 2 drives can't be backed up at once

C) break the raid0 configuration and use one of the 2 drives as backup drive.
doubts:
1) how to break the raid0? should i expect to find an option in the bios menu?
2) how about the mount process behaviour? after the cloning process the 2 drives will be IDENTICAL (same content, same partition table, even the same UUIDs): there's a concrete risk that ubuntu mounts some partitions from a drive, and some other from the other drive... it would be a mess... how to tell fstab to mount all of the partitions from a single drive?

pros:
- nothing to buy
- no g4l issues for drives size

cons:
- only 128gb storage space could be used
- read/write speed would be about half than in raid-0


D) break the raid0 configuration and set up a raid1 configuration.
doubts:
1) how to break the raid0 and set-up the raid1? shall i expect to find an option in the bios menu?

pros:
- nothing to buy

cons:
- only 128gb storage space could be used
- read/write speed would be about a quarter than in raid0
- no chance to get back to a previous backup point if the system gets messed up


as you can see, there are lots of question marks...
if the raid1 could be set up with a bios option, the D) solution would be the simpliest... but having no restore point would make me very anxious...

since i only use about 50gb, the C) solution could be the best...
i guess that the "mount" issue could be solved booting a live cd just after the cloning process, then manually changing the UUID of the backup partitions.

comments/hints/warnings?

thanks

Last edited by masavini; 06-23-2013 at 12:30 PM.
 
Old 06-28-2013, 05:35 AM   #2
masavini
Member
 
Registered: Jun 2008
Posts: 285

Original Poster
Rep: Reputation: 6
well, the laptop has finally arrived...

in the bios utility i set sata configuration as ahci. and raid has gone.

then i installed ubuntu 13.04 on sda and cloned sda to sdb with g4l (8 minutes for a full backup... wow!)

finally i edited /etc/fstab so it mounts all of the partitions from sda.

now the system is messed up: sometimes ubuntu starts, sometimes it doesn't... and when it starts it randomly mounts some partitions from sda and some from sdb...

how can it be?

later i'll post some df output and fstab...
 
Old 07-01-2013, 01:11 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
I suspect its because the drive/partitions can change at boot. The usual way to lock this down is to use UUIDs instead of drive/partition definitions.
You can use the blkid & lsblk cmds to x-ref and get them straight in your fstab & grub.conf.
 
Old 07-01-2013, 09:46 AM   #4
masavini
Member
 
Registered: Jun 2008
Posts: 285

Original Poster
Rep: Reputation: 6
that's the same i guessed...
but after the cloning process the drives are identical and the partitions have the same uuid!

i could change the uuid of ext4 and swap partition using a script found on this page, but it did not work with efi system partition, even if it looks like a fat32 filesystem...

any hint?
 
  


Reply

Tags
backup, raid, ssd



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Configure my Redhat directory server password policy and account lockout policy arunplanet Linux - Newbie 4 10-06-2012 08:59 AM
Fedora 16: Could not downgrade policy file (selinux-policy-targeted) coreychch Fedora 1 06-29-2012 02:33 AM
How to set the password policy and lockout policy bin_shell Linux - Security 4 03-24-2010 03:30 PM
Samba System Policy, Default User Policy scooter549 Linux - General 2 02-24-2009 02:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration