LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-31-2017, 05:33 PM   #1
MaartenM
LQ Newbie
 
Registered: Oct 2006
Location: Mijnsheerenland
Distribution: Fedora, Suse, Android
Posts: 12

Rep: Reputation: 0
Question Best steps to expand RAID storage on DL365G5 on SUSE with qcow2 guest


If have a HP dl365 G5 with SUSE Linux host with two .qcow2 guests . I like to expand my RAID (2 disk) to RAID 5. I need more space. Server is only used for minor workload with one Samba server guest and maybe one quest Windows server the make.
What are the best steps to backup an place the guests back to the new RAID with 3 disks? Or are there other configuration where expand storage is better supported.
regards, Maarten
 
Old 01-31-2017, 08:59 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,993

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
Are you saying that the only data on this array is two qcow files?
This could be my thinking.
If so then you might consider copying the files off to a backup media or rsync them. (really any means where it verifies the file written)

Then create the new array and copy back with verify.

Others may have a better solution also if I didn't fully understand the question.
 
1 members found this post helpful.
Old 01-31-2017, 09:17 PM   #3
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
https://wiki.archlinux.org/index.php...kup_with_rsync
 
1 members found this post helpful.
Old 02-02-2017, 11:07 AM   #4
MaartenM
LQ Newbie
 
Registered: Oct 2006
Location: Mijnsheerenland
Distribution: Fedora, Suse, Android
Posts: 12

Original Poster
Rep: Reputation: 0
@Jefro
Thanks for your answer.
The only concern I have is if I place the .qcows (geust) back wil they work on the new RAID and fresh installed SuSE OS as virtual host? Or do I have to special tricks to let the copied guest work on the new RAID with SUSE?
It's the same hardware only more data and new RAID.
 
Old 02-02-2017, 12:10 PM   #5
MaartenM
LQ Newbie
 
Registered: Oct 2006
Location: Mijnsheerenland
Distribution: Fedora, Suse, Android
Posts: 12

Original Poster
Rep: Reputation: 0
Question Backup with rsync and rsync to new raid

Quote:
Originally Posted by Ztcoracat View Post
With a rsync command I need the same amount of volume. I dont't have this at the moment.
If I rsync the complete root is this also the complete mbr just like a clone?
And could I startup with a boot USB and rsync everything back to the new RAID including mbr and root?
 
Old 02-02-2017, 12:57 PM   #6
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by MaartenM View Post
With a rsync command I need the same amount of volume. I dont't have this at the moment.
If I rsync the complete root is this also the complete mbr just like a clone?
And could I startup with a boot USB and rsync everything back to the new RAID including mbr and root?
The MBR holds the information on how the logical partitions, containing file systems, are organized on that medium. So I'm thinking that using rsync for the rootfs may not be the same as the mbr as if cloned.

Using rsync can synchronize Unix clients to a central Unix server using rsync/ssh and standard Unix accounts. It can be used in desktop environments, for example to efficiently synchronize files with a backup copy on an external hard drive. It looks like the automated backup with SSH is your best bet. I'm not sure if you can startup with a USB.
https://en.wikipedia.org/wiki/Rsync

After reading the man page for rsync I was able to determine that it will not copy the mbr.
http://linuxcommand.org/man_pages/rsync1.html

I think you need to use the dd cmd to move the /boot and the mbr.
But don't take my word on this.
http://www.linuxforums.org/forum/ubu...will-work.html

Wait for jefro's advise on this he has the experience.
 
Old 02-02-2017, 04:30 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,993

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
The qcow file has no ties to the underlying raid. It is simply a data file. It's always nice in my mind to keep it contiguous if possible. Using tar command would insure that usually. I think rsync has a way to do that.

Backup is the only way to protect data. You can try to fool with files in place but you run a risk.



A virtual machine has two parts in this question. One is the virtual hard drive file system and the second is the collection of virtual and physical hardware. Since you haven't changed any of the virtual/physical hardware the machine will be the same in all respects. The virtual hard drive filesystem can easily be moved or copied to any location you wish generally. Placing it on drobox or some place like that would render it very slow of course. An iscis or usb attached hard drive or any sort of local hard drive or array is just fine.
 
1 members found this post helpful.
Old 02-03-2017, 07:45 AM   #8
MaartenM
LQ Newbie
 
Registered: Oct 2006
Location: Mijnsheerenland
Distribution: Fedora, Suse, Android
Posts: 12

Original Poster
Rep: Reputation: 0
Question Whats better: snapshot or shutdown and tar to external disk?

Quote:
Originally Posted by jefro View Post
The qcow file has no ties to the underlying raid. It is simply a data file. It's always nice in my mind to keep it contiguous if possible. Using tar command would insure that usually. I think rsync has a way to do that.

Backup is the only way to protect data. You can try to fool with files in place but you run a risk.



A virtual machine has two parts in this question. One is the virtual hard drive file system and the second is the collection of virtual and physical hardware. Since you haven't changed any of the virtual/physical hardware the machine will be the same in all respects. The virtual hard drive filesystem can easily be moved or copied to any location you wish generally. Placing it on drobox or some place like that would render it very slow of course. An iscis or usb attached hard drive or any sort of local hard drive or array is just fine.

Now I know I like your opinion on backup method. I could snapshot directly to external disk.
Code:
# virsh snapshot-create-as --domain f17-base snap1 snap1-desc \
--disk-only --diskspec vda,snapshot=external,file=/export/vmimages/sn1-of-f17-base.qcow2 \
--atomic
original is snapshot and a new image is created.
or
shutdown and tar or rsync to an external disk
Long downtime is ok. qcow2 image is 24Gb.
 
Old 02-03-2017, 03:15 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,993

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
Not sure you get the entire machine on a snapshot. Do you? I don't remember.
 
  


Reply

Tags
backup, disk array, qcow2, raid, suse



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] qcow2 image file causing guest install to fail due to insufficient space maccas17 Linux - Virtualization and Cloud 14 11-01-2018 07:37 AM
LXer: How to use external storage to expand unexpandable Android phones LXer Syndicated Linux News 0 10-11-2013 10:20 AM
Converting Xen RAW image to KVM qcow2 makes Win2k8 guest BSOD Savaan Linux - Virtualization and Cloud 9 12-31-2011 11:59 AM
expand SATA storage with SAS ? how? nicolasdiogo Linux - Hardware 4 07-13-2011 04:33 AM
LXer: Linux-based NAS storage devices expand capacity LXer Syndicated Linux News 0 12-22-2007 01:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:01 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