Sponsored Content
Full Discussion: Automated disk cloning
Special Forums Hardware Filesystems, Disks and Memory Automated disk cloning Post 302378255 by fpmurphy on Monday 7th of December 2009 10:55:18 AM
Old 12-07-2009
I am confused as to why you are copying and restoring MBRs. What are you trying to achieve doing this?

You state that you have a laptop and a similar external hard disk. Then you start talking about a virtual machine with a 300Mb disk and a 1GB disk. Which is it? Actual hardware or a virtual environment?
 

10 More Discussions You Might Find Interesting

1. SCO

Disk cloning

Hello everybody, :confused: I have to change the system disk on an old PC running SCO 5.0.5. The disk is up and running, this is a preventive action. My experience on UNIX is very limited and I look for the easyest solution to clone this unit. Is it possible with commands or through a clone... (2 Replies)
Discussion started by: mhachez
2 Replies

2. UNIX for Dummies Questions & Answers

HP10.20 Cloning

Good day all. So, here's the situation. I have (7x) B180L VISUALIZE WORKSTATION's with Transtec 5100 RAID (RAID 5, 9.1 GB HDD's) towers running of UNIX HP10.20. It's time to replace the RAID's with new ones, them being Fibrenetix FX606 5 bay SATA RAID, 5 bay SATA-SCSI desktop RAID including 80Gb... (1 Reply)
Discussion started by: Tony_dw
1 Replies

3. HP-UX

Hpux Disk Cloning

hello, Anybody that has already running script or command that can disk clone the hpux machine thanks (2 Replies)
Discussion started by: eykyn17
2 Replies

4. Solaris

Disk cloning using ufsrestore

I am using ufsdump and ufsrestore to clone the root disk on one of my servers. I would like to automate this as much as possible, but have run into a problem where it prompts for changing the owner/mode when it is complete. Any ideas for running this in the background and not being prompted? ... (4 Replies)
Discussion started by: patricko0317
4 Replies

5. Solaris

Problem by cloning boot disk.

Hello guys! I use the Solaris 10 x86 machine. I need to clone the boot disk. Why, when I copy slice 1 - there is a following: # ufsdump 0f - /dev/rdsk/c0d0s1 | (cd /mnt && ufsrestore rf - ) DUMP: Warning - super-block on device `/dev/rdsk/c0d01` is corrupt - run fsck Dump: The Entire... (6 Replies)
Discussion started by: wolfgang
6 Replies

6. AIX

Automated Disk space recovery script

Hi, I have to write a shell script for disk space recovery - We have been facing disk space shortage issues very often. d=`df -k |awk '{print $5}' | egrep "" | cut -c-2` if then echo "DISK SPACE STATUS :NOT OK" >> /backup/stats/healthcheck/SCP1_BLU_HCsummary_$dt.txt else echo "DISK... (3 Replies)
Discussion started by: vasukv
3 Replies

7. Shell Programming and Scripting

Cloning

Hi, Is there disadvantages if we do AIX Serevr cloning to the new AIX server. Thanks in advance (0 Replies)
Discussion started by: kmsekhar
0 Replies

8. HP-UX

HP-UX server cloning

Hello Friends, Am in requirement to clone a Live HP-UX server here's details OS: HpUX B-11.11 with mirrored LVM disks . S/ws: Remedy, XML engine, Annoysystem, Oracle All Oracle, XMl and Remedy data is on SAM LUN which is used for clustering . My requirement to create a clone server and... (10 Replies)
Discussion started by: Shirishlnx
10 Replies

9. Ubuntu

dd cloning of whole disk

I am using 'dd' to clone an entire hard drive which only has Ubuntu 11.10 and some data with no special options. The disks are both 1Tb, However, I did re-partition the target disk with gparted successfully. The new partions are not the same size as the source disk. When starting 'dd' no partitions... (24 Replies)
Discussion started by: Royalist
24 Replies

10. Linux

Disk cloning ?

Dear All I needed to clone my disk to another hard drive . I did it as the following : #dd if=/dev/sdb of=/dev/sdc But after a while, the procedure ended with the "writing to /dev/sdc input/output error" message. Can you please let me know how can I overcome this as the fdisk now returns as "... (1 Reply)
Discussion started by: hadimotamedi
1 Replies
virt-clone(1M)						  System Administration Commands					    virt-clone(1M)

NAME
virt-clone - clone virtual machine images SYNOPSIS
/usr/bin/virt-clone [option] DESCRIPTION
The virt-clone utility is a command line tool for cloning existing virtual machine images. virt-clone copies disk images of an existing virtual machine and defines a new guest with an identical virtual hardware configuration. Elements that require uniqueness are updated to avoid a clash between old and new guests. With appropriate command-line arguments, virt-clone can run completely unattended, with the guest automatically starting itself as well. This allows for easy automation of guest installs. If you do not specify options to virt-clone, the command runs interactively, prompting for input as required. To run virt-clone, you must become superuser or assume the Primary Administrator role. OPTIONS
The following options are supported: --connect=URI Connect to the hypervisor at URI. -d, --debug Display debugging information when running the install process. -f disk_image, --file=disk_image Path to the file, disk partition, or logical volume to use as the backing store for the guest's virtual disk. If the original guest has multiple disks, this parameter must be repeated multiple times, once per disk in the original virtual machine. -h, --help Display the help message and exit. -m mac_addr, --mac=mac_addr Fixed MAC address for the guest. If the keyword random is specified, a random address will be used. -n name, --name=name Name of the new guest virtual machine instance. This must be unique among all guests known to the hypervisor on this machine, including those not currently active. To redefine an existing guest, use the virsh(1M) tool to shut it down and delete it prior to running virt- clone. This parameter will be prompted for if omitted on the command line. -o original_guest, -original=original_guest Name or UUID for the original guest to be cloned. This guest must be shut down since it is not possible to safely clone active guests. -u UUID, -uuid=UUID UUID for the guest; if none is specified, a random UUID is generated. If you specify UUID, use a 32-digit hexadecimal number. Keep in mind that UUIDs are intended to be unique across the entire data center, and indeed, the world. EXAMPLES
Example 1 Cloning a Guest with a Single Disk The following command clones a guest named demo, which has a single disk to copy. # virt-clone --original demo --name newdemo --file /var/lib/xen/images/newdemo.img Example 2 Cloning a Guest with Multiple Disks The following command clones a guest named demo, with has multiple disks to copy. # virt-clone --original demo --name newdemo --file /var/lib/xen/images/newdemo.img --file /var/lib/xen/images/newdata.img Example 3 Cloning to a Device with Comparable Disk Space The following command clones a guest to a physical device that has at least as much disk space as had the original guest. . If the destina- tion device is has more space, the new guest can do a file system resize when it boots. # virt-clone --name demo --file /dev/HostVG/DemoVM --mac 00:16:3e:34:11:54 ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWxvmu | +-----------------------------+-----------------------------+ |Interface Stability |Volatile | +-----------------------------+-----------------------------+ SEE ALSO
virsh(1M), virt-install(1M), xm(1M), xVM(5), attributes(5), xVM(5) SunOS 5.11 23 Jun 2008 virt-clone(1M)
All times are GMT -4. The time now is 03:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy