|   | 
      | 
  
  
      | 
      | 
  
 
     | 
    | 
  
  
     | 
    | 
  
  
    |   | 
      | 
  
  
    | 
         
xen-users
[Xen-users] Question about duplicating a DomU
 
I'm using lvm for the DomU devices.
I used virt-install on RHEL5 to install a RHEL5 DomU OS on my first lvm
device /dev/cluster/nfs1. I then created a snapshot of that device and
proceeded to duplicate the snapshot device onto the newly created lvm
device.
lvcreate -s /dev/cluster/nfs1 -L 100M -n nfsX
cat /dev/cluster/nfsX > /dev/cluster/nfs2
I then duplicated and modified the xen config. 
cd /etc/xen/
cp nfs1 nfs2
sed -i '/uuid/ d' nfs2
echo "uuid = '`uuidgen`'" >> nfs2
Changed the disk and mac obviously and noting else in nfs2. Which looks
like this:
        # Automatically generated xen config file
        name = "nfs2"
        memory = "1024"
        disk = [
'phy:/dev/cluster/nfs2,xvda,w','phy:/dev/cluster/shared,sda,w', ]
        vif = [ 'mac=00:16:3e:14:7c:6e, bridge=xenbr0', ]
        bootloader="/usr/bin/pygrub"
        vcpus=1
        on_reboot   = 'restart'
        on_crash    = 'restart'
        uuid = '685e069c-7fac-460c-8303-26dd26aeeb41'
But when attempting to start both nfs1 and nfs2 I get this. What did I
miss?
[root@sts-rvtest ~]# xm create nfs1
Using config file "/etc/xen/nfs1".
Going to boot Red Hat Enterprise Linux Server (2.6.18-8.el5xen)
  kernel: /boot/vmlinuz-2.6.18-8.el5xen
  initrd: /boot/initrd-2.6.18-8.el5xen.img
Started domain nfs1
[root@sts-rvtest ~]# xm list
Name                                      ID Mem(MiB) VCPUs State
Time(s)
Domain-0                                   0     6022     4 r-----
33.2
nfs1                                       5     1024     1 -b----
7.4
[root@sts-rvtest ~]# xm create nfs2
Using config file "/etc/xen/nfs2".
Going to boot Red Hat Enterprise Linux Server (2.6.18-8.el5xen)
  kernel: /boot/vmlinuz-2.6.18-8.el5xen
  initrd: /boot/initrd-2.6.18-8.el5xen.img
Error: destroyDevice() takes exactly 3 arguments (2 given)
[root@sts-rvtest ~]# xm shutdown nfs1
[root@sts-rvtest ~]# xm list
Name                                      ID Mem(MiB) VCPUs State
Time(s)
Domain-0                                   0     6022     4 r-----
36.3
[root@sts-rvtest ~]# xm create nfs2
Using config file "/etc/xen/nfs2".
Going to boot Red Hat Enterprise Linux Server (2.6.18-8.el5xen)
  kernel: /boot/vmlinuz-2.6.18-8.el5xen
  initrd: /boot/initrd-2.6.18-8.el5xen.img
Started domain nfs2
[root@sts-rvtest ~]# xm list
Name                                      ID Mem(MiB) VCPUs State
Time(s)
Domain-0                                   0     6022     4 r-----
37.4
nfs2                                       7     1024     1 -b----
0.2
[root@sts-rvtest ~]# xm create nfs1
Using config file "/etc/xen/nfs1".
Going to boot Red Hat Enterprise Linux Server (2.6.18-8.el5xen)
  kernel: /boot/vmlinuz-2.6.18-8.el5xen
  initrd: /boot/initrd-2.6.18-8.el5xen.img
Error: destroyDevice() takes exactly 3 arguments (2 given)
[root@sts-rvtest ~]# xm list
Name                                      ID Mem(MiB) VCPUs State
Time(s)
Domain-0                                   0     6022     4 r-----
39.7
nfs2                                       7     1024     1 -b----
6.6
[root@sts-rvtest ~]#
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
 |   
 
| <Prev in Thread] | 
Current Thread | 
[Next in Thread> |  
- [Xen-users] Question about duplicating a DomU,
Wagner, Jesse <=
  
 |  
  
 | 
    | 
  
  
    |   | 
    |