Ubuntu Servers :: Remotely Restoring A Server Using An Image And The Dd Command?
Apr 18, 2010
I'm getting ready to deploy a Ubuntu server in a remote location. I am deathly afraid of something going horribly wrong though, so what I'd like to do is be able to somehow image the system when it's working, and be able to restore that remotely via SSH if things go to hell. My first thoughts were that I could partition the hard drive, and install two separate instances of Ubuntu. One would be the server in it's working state, and the other one would be a separate instance of Ubuntu that I could boot into to restore an image (if that's possible).
1. If I had two separate instances of Ubuntu on two separate partitions, and I was currently booted into one of them, would it be possible to tell the Ubuntu server to reboot and boot into the other instance of Ubuntu on the other partition over SSH? (SSH is the only form of access I will have to the server)
2. Is there a better way to remotely restore a server than what I outlined above?
3. Also, I've used the dd command to make backups before, but it copies an entire hard drive byte for byte. Is there an argument I can tag on, or another command to use altogether that will only copy the bits that are being used?
View 5 Replies
ADVERTISEMENT
Jan 14, 2010
I need to backup my active production servers (yeah it's too late now) with image cloning application that were running RHEL3-5. The problem is I need to run it remotely from my office. Most of the software I found either need to use bootable cd or need to unmount my partitions which is I wasn't allowed to since it's a production servers. I also tried dd but it consume too much time, sector by sector cloning and empty disk space also included so the file created also big in size.
View 4 Replies
View Related
Aug 5, 2011
Is there any way to install a Ubuntu server and access the server remotely via a Ubuntu desktop environment instead of a SSH command line?
I will be installing a Ubuntu server in an office where the office manager will need to be able to do simple things like add/remove users, access filesystems, etc. She can handle these tasks in Ubuntu desktop/GUI, but it is impractical for her to have to learn how to use the CLI terminal to do this stuff.
Will I have to install desktop Ubuntu on the server to do this, or can I install Ubuntu server version and setup another computer Ubuntu desktop to remotely login graphically?
View 1 Replies
View Related
Jul 31, 2010
i am wanting to install ubunru server edition on an older sony vio desktop to use as a server i can access remotely. i will be needing to however access this server remotely from a college i attend throughout parts of the year.
View 9 Replies
View Related
May 23, 2011
I'm writing you to ask some help with administrating a server remotely.
I have a machine I use remotely when I have to travel, some time for quite long periods like from one to three months.
Last time it happened to me that after upgrading I send the reboot command
and the machine didn't turn down, so I couldn't be able to access it.
My question is: how can I avoid such situations?
Is there any best practice to follow?
View 5 Replies
View Related
Sep 4, 2010
I run a dedicated specialty Quake 3 Arena Server.It currently runs a stock Debian 5.05. These are the hardware specifications.
256mb SD Ram
10gb Hard Drive
Intel Celeron
I think I should be getting more speed then I am.I would like to install Ubuntu Server.What version is the most stable, and will provide the best speed?I have to download my server files from the internet. Is this possible without the GUI?Is there anyway to control my server remotely, without any impact on performance, VNC is a huge impact.I want to run a mail server as well, is this possible with out a performance hit?
View 9 Replies
View Related
Mar 10, 2011
Here is the scenario:
I have triple boot
Win 7 32 bit on hard drive 1
Win 7 64 bit on hard drive 2
Data partition accessible by 3 OSs
Ubuntu 10.10 on hard drive 2
[Code]...
Everything is working great. I'm using Windows Boot Loader (used easybcd to attach Ubuntu).
I want to expand /dev/sdb3 to have more space for Ubuntu. I am able to shrink the data partition /dev/sdb2, which leaves an unallocated space. I have backed up /dev/sdb3 using Paragon software.
My question is, what is the best way to expand the /sdb3 partition into the unallocated space and restore the ubuntu image backup so that it will use up all the space (unallocated and current /sdb3)? I don't want to screw up since everything is working properly, I just want some more space.
View 5 Replies
View Related
Feb 3, 2010
I want to restore a HDD image I have to my laptop's HDD while booted off the Ubuntu Live CD.The laptop's HDD is unformatted and has no partitions.I expected this to work:$ sudo dd if=/path/to/backup.img of=/dev/sdaBut I'm tolddd: opening `/dev/sda': Permission denied.
View 1 Replies
View Related
Mar 31, 2010
I've been running a dual boot set-up with Win XP and Ubuntu 9.10. The old 40 gb drive was showing signs of impending failure, so I replaced it with a new 120 gb drive, after saving an image of the old setup. After restoring the image from the original drive to the new one, Windows boots fine from the GRUB menu, but Ubuntu doesn't. I briefly see the Ubuntu "circle" then the screen goes blank. If I hit any key, I get a console screen of error messages (I can provide details if needed).
I think the problem is caused by the fact that the restore process scaled the saved image to fit the new, larger drive, with the result that the Ubuntu partition doesn't actually start where GRUB expects to find it. I'd like to recover the Ubuntu installation, but if is too big a deal, I'll just wait until 10.4 is released and do a clean install.
View 9 Replies
View Related
Apr 27, 2011
In the event of theoretical anticipated motherboard failure; how would Ubuntu react to dissimilar hardware? In that the Linux kernel contains, as I understand, all the necessary drivers.
View 3 Replies
View Related
Jul 18, 2011
I have long been using clonezilla as my backup/restore software and have never had a problem with it before, ever. Today I backed up my entire disk (windows 7 and Ubuntu 10.10) and upgraded to 11.04 to try it out. I didn't like it, so I decided to restore the backup. Now I can't boot my computer. It gets to a black screen and nothing happens. No error message, nothing. I can still boot from a live USB (which is what I am using now), and I can also boot from a Windows Live CD. I tried using the MBR repair on Windows and reinstalling Grub through the Ubuntu Live USB. Neither of them have worked. Do you have any ideas what the problem might be?
View 5 Replies
View Related
Feb 5, 2016
I created two debian bootable pendrive with the newest and basic commands: CP debian.iso and SYNC. When I tried to restoring the pendrive GPARTED sees only few space and is unable to perform any operation on the hidden partition as well in Windows 7.
CFDISK is able to see the partitions but is unable to write anything, just deleting. After deleted any partion GPARTED enconters a wrong block size so is unable to perform any changes.
Thus the only way I found to restoring the pendrive is delete the partion with CFDISK and then formatting the pendrive in Windows, where did I do wrong?
View 4 Replies
View Related
Jan 31, 2011
I've recently begun using PING (Partimage is not Ghost) imaging software, and it works great with other Linux distros. Upon my first use on openSUSE, I found that I could not restore the image onto another computer. After a successful restoration of the image, I get: "Could not find /dev/mapper/isw_ddedgibjfd_ARRAY_part2 Want to fall back to /dev/mapper/isw_ddedgibjfd_ARRAY_part2? (Y/n)" during the first boot. I don't know what to do, I've tried taking multiple images, and restoring them on multiple computers, but I always get the same error.
View 7 Replies
View Related
Jan 2, 2010
I'm trying to restore an image from a 40gb partition(6gb used) to a 100gb partition. I set everything up in gparted and and restored the partition image with clonezilla. In gparted, the partition shows the full 100gb partition with 6gb used, however when I boot windows and open the properties on the C: partition, it shows that it's only 40gb. Is there some setting to restore the partition image and use the full 100gb?
View 7 Replies
View Related
Jan 13, 2011
I am looking for an Open Source software making it possible to make a disk image of an Ubuntu installation as well as a Windows XP installation.I have checked out Clonezilla which almost solved the problem. However, the disk to which you restore needs to be the same size or bigger. I want to restore the whole thingo a smaller disk than the original.I am considering getting myself an SSD disk which will be considerably smaller than the 160 gb disk I have right now. I need it to work for Windows as well. Unfortunately I can't get rid of Windows quite yet I often participate in webinars on GotoWebinar and they do not support Linux ...
View 9 Replies
View Related
Sep 16, 2010
Right now I have a OpenSuSE 11.1 server running on a single hard drive. I want to install the HighPoint RocketRAID 1740 card and utilize RAID 10.I wanted to know if the following process would work ok:
1. Image the current hard drive using clonezilla and remove the drive.
2. Install the RAID card with 4 hard drives of the same make and model as the current drive
3. Create the logical volume
4. Restore the image to that volume
Since I am restoring the image to a RAID volume, is that completely transparent to the OS? Or do I need to do a clean install on that volume and reconfigure everything?
View 4 Replies
View Related
Mar 3, 2011
Is there a way/command to back up all data from a Red hat Linux 4 serve[Including user rpofiles, data, group info, encrypts] either to a Red hat Linux 5.4 machine or as an Image file or manageable resource?
View 1 Replies
View Related
Oct 6, 2010
when i use rsync command to backup my image file , it shows the following error message.
bash: line 1: /usr/bin/rsync: Argument list too long
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: remote command could not be run (code 126) at io.c(463) [receiver=2.6.8]
The command which i used is rsync -avrl -e ssh cms@server:/data/cms/data/images/* /mnt/Backup/Intranet_cms_backup/images
View 7 Replies
View Related
Feb 23, 2011
how to get image of server with all configuration files and data. Without data loss.
View 5 Replies
View Related
Nov 12, 2009
The last time I did a restore using cpio under CentOS 3.9 it took a very long time for me to find my seemingly correct command wasn't working and I ended up doing the work in Knoppix. This time I thought I'd run my command by wiser heads before the necessary tape turns up and I spend a lot of time finding my command doesn't work. cpio -i -mtvV --block-size=128 --no-absolute-filenames /var/log/maillog* < /dev/st0
Does this look right? The backup string is find / -path /mnt -prune -o -path /lost+found -prune -o -path /sys -prune -o -path /proc -prune -o -path /swapfile1 -prune -o -path /var/named/chroot/proc -prune -o -print | cpio -o -H crc --block-size=128 > /dev/st0
EDIT: I changed the restore string to cpio -i -mtvV --block-size=128 --no-absolute-filenames *var/log/maillog* < /dev/st0 EDIT2: Whoops, should be cpio -i -mvV --block-size=128 --no-absolute-filenames *var/log/maillog* < /dev/st0
View 1 Replies
View Related
Feb 16, 2010
I have made a virtual machine on my server using virt-manager that I access using virt-viewer from my desktop/laptop. Currently I am having to leave the VM on all the time. Which is a waste of cpu/ram etc. Ideally I would like to be able to wake the vm up from virt-viewer or from a bash script being ran on my desktop.
View 1 Replies
View Related
Mar 17, 2010
Is there a command to remotely shutdown a computer on the local network? I have a computer running as a file/print server and I have no screen or keyboard connected to it. Would be great if I could shut it down from my laptop. I have the needed credentials (as I'm guessing these would be needed in the command?)
View 2 Replies
View Related
May 2, 2011
Is there any web interface that I can install to remotely reboot ubuntu? It would only be accessible via a VPN or on the LAN so not too much worry over security.
View 3 Replies
View Related
Apr 18, 2010
I recently set up a computer running Ubuntu 9.10 Desktop for use as a server, and successfully have it hosting game servers.I'm relatively new to Ubuntu, so I'm not sure how to go about this, but ideally I would like a user to be able to access a single folder on the server over the internet, and be able to upload and download files from it.It would be nice to set up multiple folders like this, so different people would have access to their own personal folder, but not anyone else's.
View 9 Replies
View Related
Jan 3, 2011
One server is a dedicated MySQL server. After upgrading that one to Ubuntu 10.04 (from an ancient Suse 9.2), both servers are running Ubuntu 10.04 LTS.I have another server that I use to administer the database server via phpMyAdmin. However since the upgrade it is not able to connect. I get an error #1130 Cannot log in to the MySQL server. The same happens if I try to connect remotely from the command line with: mysql -u root -h 129.79.137.121 -pI'm not sure if this is an iptables/ports problem or a configuration problem on the MySQL end or something else entirely.I've searched and tried the suggestions I've found in various places but none seems to have fixed it.
View 2 Replies
View Related
Mar 9, 2011
I came back to see on the screen a message requesting remote desktop control. So I said no and went into remote desktop and said never allow connection. I had recently hosted a PHP app on the home pc for testing purposes using apache. Here are some of the last logs entries:
Code:
127.0.0.1 - - [08/Mar/2011:18:26:34 -0500] "POST /z3950search.php HTTP/1.1" 200 1731 "http://localhost/z3950search.php" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.15) Gecko/20110303 Ubuntu/10.10 (maverick) Firefox/3.6.15"
127.0.0.1 - - [08/Mar/2011:18:26:37 -0500] "GET /favicon.ico HTTP/1.1" 404 500 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.15) Gecko/20110303 Ubuntu/10.10 (maverick) Firefox/3.6.15"
127.0.0.1 - - [08/Mar/2011:18:26:38 -0500] "GET /favicon.ico HTTP/1.1" 404 500 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.15) Gecko/20110303 Ubuntu/10.10 (maverick) Firefox/3.6.15" .....
View 2 Replies
View Related
Jul 22, 2011
System hostname Server Operating system Ubuntu Linux 11.04 Webmin version 1.550 Time on system Fri Jul 22 09:23:44 2011 Kernel and CPU Linux 2.6.38-10-generic on i686 Processor information Genuine Intel(R) CPU 2160 @ 1.80GHz, 2 cores
Every couple of hours I am unable to ssh or vnc in to my system or anything else. I can remote into another PC on my LAN and everything works fine. The only things that fixes the problem is restarting the system. Could someone point me in the right dirrection to start trouble shooting this problem? I am still learning where all the log files are and I am generally new to linux
View 2 Replies
View Related
Jan 22, 2011
I just got done installing Ubuntu Server 10.04 on a home server. Now what should I do? I was hoping to have 3 computers connected to it so that we can all share files wirelessly if that's possible.Does Ubuntu Server have a GUI or command line only?
View 9 Replies
View Related
May 7, 2010
I have a problem with the system backup. I need to create a system image using the command "tar", but my server has physical disks with LVM and I am executing "linux rescue" for recovering the linux image. After restoring the image on the new server reports "kernel panic", this is caused because the new server where I restored the image doesn't have LVM disks.
View 2 Replies
View Related
Aug 24, 2010
I'm still pretty new to servers and ubuntu and have ran into something I could see being a problem in the future. On a dedicated remote server I have installed a web server using the "How To Forge - Perfect server set up for ubuntu 10.04 and ispconfig". I have a forum and email up and running and shoutcast radio and teamspeak3 servers also. We can also nx into it if need be. I can reformat the 1T hdd remotely from my provider control panel and ssh is installed at the same time and a new root password is sent via email. The thing is I now realise that by default the file system is written to a 10gig partition.
This might usually be ok but ispconfig uses the /var/www folder on the file system to house the forum I host and the partition is filling up. My mate I co rent with is talking about starting a parrot/bird owners forum and i might eventually like to have a gaming forum as well. I realise I should probably have set things up differently but like I said I am new at all this and tbh the home directories never going to have much in it so theres 900 gig doing nothing. So my question is can I use anything to enlarge that partition remotely? I know theres gparted on disc and all the articles I found say I need to use a disc which obviously is out of the question.
So what I think I need is some sort of partition magic for ubuntu. I would really like to expand it so all my current files etc on it would stay as is. I'm also currently looking into back up methods and wondered if that would be the way to go? Back up my file system and home directories and then reformat and make the partition larger? Or could I copy the entire www folder to a newly created folder in /home and re write the site enabled files to point to it? Would this work and if so what else would I need to edit?
View 9 Replies
View Related