1 2 Previous Next 17 Replies Latest reply: Jul 15, 2011 9:29 AM by 874547 RSS

    Failed to run  "ldmp2v prepare"

    874547
      Dear All
      Had you ever encountered the follwing problem ? I had one Ultra 60 with 18gb disk , I tried to migrate it to OVM 2.1 . It's ok to run "ldmp2v collect" on the Ultra 60, but failed to run "ldmp2v prepare ..." on the target machine (T5140).

      racstb:/#ldmp2v prepare -v -b file -B /p2v/U60/disk0 -d /p2v/u60 -x no-auto-adjust-fs -o keep-mac U60
      Creating vdisks ...
      Creating vdisk U60-disk0 ...
      Creating volume U60-vol0@primary-vds0 (500 MB)...
      Creating VTOC on /dev/rdsk/c4d0s2 (disk0) ...
      fmthard: Partition 0 specified as 26962200 sectors starting at 0
      does not fit. The full disk contains 1022400 sectors.
      Cannot create a VTOC on vdisk U60-disk0
      Cannot create vdisks.

      racstb:/#format
      Searching for disks...done


      AVAILABLE DISK SELECTIONS:
      0. c1t0d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848> solaris
      /pci@400/pci@0/pci@8/scsi@0/sd@0,0
      1. c1t1d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848> solaris
      /pci@400/pci@0/pci@8/scsi@0/sd@1,0
      2. c4d0 <SUN-DiskImage-500MB cyl 1704 alt 2 hd 1 sec 600>
      /virtual-devices@100/channel-devices@200/disk@0


      racstb:/#ls -l /p2v/u60/
      total 4847858
      -rw-r--r-- 1 root root 2480879862 Jul 11 12:05 U60.flar
      -rw-r--r-- 1 root root 494 Jul 11 12:05 manifest
      racstb:/#ls /etc/ldmp2v.conf
      /etc/ldmp2v.conf
      racstb:/#cat /etc/ldmp2v.conf
      #
      # Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
      #

      #
      # ldmp2v.conf - default parameters for the Oracle VM Server for SPARC P2V Tool
      #
      # The P2V tool converts an existing physical system to a virtual system that
      # runs in a logical domain on a SPARC chip multithreading (CMT) system.
      #

      # Virtual switch to use
      VSW="primary-vsw0"

      # Virtual disk service to use
      VDS="primary-vds0"

      # Virtual console concentrator to use
      VCC="primary-vcc0"

      # Location where vdisk backend devices are stored
      #BACKEND_PREFIX="/ldoms/disks/"
      BACKEND_PREFIX="/p2v/U60/"

      # Default backend type: "zvol" or "file".
      BACKEND_TYPE="file"

      # Create sparse backend devices: "yes" or "no"
      BACKEND_SPARSE="no"

      # Timeout for Solaris boot in seconds
      BOOT_TIMEOUT=60
      racstb:/#
        • 1. Re: Failed to run  "ldmp2v prepare"
          User12587626-Oracle
          Can you give the contents of the manifest file?
          T
          • 2. Re: Failed to run  "ldmp2v prepare"
            874547
            racstb:/#cat /p2v/u60/manifest
            archive_method flash
            cpu 1
            disk 0 /dev/dsk/c0t0d0 0
            hostid 80c6d602
            ip 172.32.200.2
            ip 192.168.0.224
            ip 192.168.0.225
            ip 192.168.0.225
            memory 1024
            net 0 e1000g0 192.168.0.225 0:2:b3:d2:18:69
            net 1 ge0 192.168.0.224 0:3:ba:c:6b:b1
            net 2 hme0 172.32.200.2 8:0:20:c6:d6:2
            nodename U60
            os_release 5.10
            swap 0 /dev/dsk/c0t0d0s1 8392048
            ufs 0 / /dev/dsk/c0t0d0s0 26552822 17681384 17415856
            vtoc 0 /dev/dsk/c0t0d0s0 0 2 00 0 26962064 26962063
            vtoc 0 /dev/dsk/c0t0d0s1 1 3 01 26962064 8392072 35354135
            • 3. Re: Failed to run  "ldmp2v prepare"
              User12587626-Oracle
              Can you try without using the -x no-auto-adjust-fs option.

              T
              • 4. Re: Failed to run  "ldmp2v prepare"
                874547
                racstb:/#ldmp2v prepare -C U60
                Cleaning up domain U60 ...
                racstb:/#ldmp2v prepare -v -b file -B /p2v/U60/disk0 -d /p2v/u60 -o keep-mac U60
                Creating vdisks ...
                Creating vdisk U60-disk0 ...
                Creating volume U60-vol0@primary-vds0 (500 MB)...
                Creating VTOC on /dev/rdsk/c4d0s2 (disk0) ...
                fmthard: Partition 0 specified as 26962200 sectors starting at 0
                does not fit. The full disk contains 1022400 sectors.
                Cannot create a VTOC on vdisk U60-disk0
                Cannot create vdisks.
                racstb:/#ldmp2v prepare -C U60
                Cleaning up domain U60 ...
                racstb:/#ldmp2v prepare -v -d /p2v/u60 -o keep-mac U60
                Creating vdisks ...
                Creating vdisk U60-disk0 ...
                Creating volume U60-vol0@primary-vds0 (500 MB)...
                Creating VTOC on /dev/rdsk/c4d0s2 (disk0) ...
                fmthard: Partition 0 specified as 26962200 sectors starting at 0
                does not fit. The full disk contains 1022400 sectors.
                Cannot create a VTOC on vdisk U60-disk0
                Cannot create vdisks.
                • 5. Re: Failed to run  "ldmp2v prepare"
                  874547
                  racstb:/#ldmp2v prepare -C U60
                  Cleaning up domain U60 ...
                  racstb:/#ldmp2v prepare -v -b file -B /p2v/U60/disk0 -d /p2v/u60 -o keep-mac U60
                  Creating vdisks ...
                  Creating vdisk U60-disk0 ...
                  Creating volume U60-vol0@primary-vds0 (500 MB)...
                  Creating VTOC on /dev/rdsk/c4d0s2 (disk0) ...
                  fmthard: Partition 0 specified as 26962200 sectors starting at 0
                  does not fit. The full disk contains 1022400 sectors.
                  Cannot create a VTOC on vdisk U60-disk0
                  Cannot create vdisks.
                  racstb:/#ldmp2v prepare -C U60
                  Cleaning up domain U60 ...
                  racstb:/#ldmp2v prepare -v -d /p2v/u60 -o keep-mac U60
                  Creating vdisks ...
                  Creating vdisk U60-disk0 ...
                  Creating volume U60-vol0@primary-vds0 (500 MB)...
                  Creating VTOC on /dev/rdsk/c4d0s2 (disk0) ...
                  fmthard: Partition 0 specified as 26962200 sectors starting at 0
                  does not fit. The full disk contains 1022400 sectors.
                  Cannot create a VTOC on vdisk U60-disk0
                  Cannot create vdisks.
                  racstb:/#
                  • 6. Re: Failed to run  "ldmp2v prepare"
                    menno
                    According to the manifest s0 requires approximately 12 GB, the backing file for the vdisk you specify with the -B option however seems to be only 500 MB. If you omit the -B option, ldmp2v will create a sufficiently large backing file for you
                    • 7. Re: Failed to run  "ldmp2v prepare"
                      874547
                      no, please see the following logs:

                      racstb:/src#ldmp2v prepare -d /src/U60 -o keep-mac U60-1
                      Creating vdisks ...
                      fmthard: Partition 0 specified as 26962200 sectors starting at 0
                      does not fit. The full disk contains 1022400 sectors.
                      Cannot create a VTOC on vdisk U60-1-disk0
                      Cannot create vdisks.
                      • 8. Re: Failed to run  "ldmp2v prepare"
                        menno
                        Looking more closely at the manifest, the disk entry is invalid: the last field is 0 but should be the disk size. ldmp2v adds 500 MB slack to this size so thats why it creates a 500 MB vdisk.

                        archive_method flash
                        cpu 1
                        disk 0 /dev/dsk/c0t0d0 0 <<==
                        hostid 80c6d602
                        [...]
                        ufs 0 / /dev/dsk/c0t0d0s0 26552822 17681384 17415856
                        vtoc 0 /dev/dsk/c0t0d0s0 0 2 00 0 26962064 26962063
                        vtoc 0 /dev/dsk/c0t0d0s1 1 3 01 26962064 8392072 35354135

                        Your manifest doesn't have an entry for slice s2 (or perhaps that was cut off during pasting the manifest?). Can you post the output of 'prtvtoc /dev/rdsk/c0t0d0s2'?
                        • 9. Re: Failed to run  "ldmp2v prepare"
                          874547
                          why it always created one only 500MB vdisk ? I reinstalled and reconfigured OVM 2.1 and try to run "ldmp2v prepare ..." for another source host "OMC3".

                          root@racstb # ldmp2v prepare -d /p2v/U60 -o keep-mac -b file -B /p2v/ldoms/U60 -c 2 -M 2g -v U60WARNING: there are insufficient free VCPUs available for the guest domain (need: 2, available: 0).
                          WARNING: there is insufficient memory available for the guest domain (need: 2048 MB, available: 32 MB)
                          Creating vdisks ...
                          Creating vdisk U60-disk0 ...
                          Creating volume U60-vol0@primary-vds0 (500 MB)...
                          Creating VTOC on /dev/rdsk/c4d0s2 (disk0) ...
                          fmthard: Partition 0 specified as 26962200 sectors starting at 0
                          does not fit. The full disk contains 1022400 sectors.
                          Cannot create a VTOC on vdisk U60-disk0
                          Cannot create vdisks.
                          root@racstb # ldmp2v prepare -d /OMC3 -o keep-mac -b file -B /p2v/ldoms/OMC3 -v OMC3
                          WARNING: there are insufficient free VCPUs available for the guest domain (need: 2, available: 0).
                          NOTICE: setting guest memory to 1024 MB
                          WARNING: there is insufficient memory available for the guest domain (need: 1024 MB, available: 32 MB)
                          Creating vdisks ...
                          Creating vdisk OMC3-disk0 ...
                          Creating volume OMC3-vol0@primary-vds0 (500 MB)...
                          Creating VTOC on /dev/rdsk/c4d1s2 (disk0) ...
                          fmthard: Partition 0 specified as 63156000 sectors starting at 0
                          does not fit. The full disk contains 1022400 sectors.
                          Cannot create a VTOC on vdisk OMC3-disk0
                          Cannot create vdisks.
                          • 10. Re: Failed to run  "ldmp2v prepare"
                            menno
                            You get a 500MB disk because the manifest has an invalid disk size and is missing the s2 slice.

                            Please post the output of 'prtvtoc /dev/rdsk/c0t0d0s2' on your original system.
                            • 11. Re: Failed to run  "ldmp2v prepare"
                              874547
                              It is not the problem of manifest . I used ldmp2v of versin 2.0 and version 2.1 , it outputed the same configurations.Try to look for other solutions.

                              root@T5140 # more /export/home/60/manifest
                              nodename U60
                              hostid 80c6d602
                              os_release 5.10
                              cpu 1
                              memory 1024
                              net 0 e1000g0 192.168.0.225 0:2:b3:d2:18:69
                              net 1 ge0 192.168.0.224 0:3:ba:c:6b:b1
                              net 2 hme0 172.32.200.2 8:0:20:c6:d6:2
                              ip 192.168.0.225
                              ip 192.168.0.224
                              ip 172.32.200.2
                              ip 192.168.0.225
                              ufs 0 / /dev/dsk/c0t0d0s0 26552822 17681358 17415830
                              swap 0 /dev/dsk/c0t0d0s1 8392048
                              vtoc 0 /dev/dsk/c0t0d0s0 0 2 00 0 26962064 26962063
                              vtoc 0 /dev/dsk/c0t0d0s1 1 3 01 26962064 8392072 35354135
                              disk 0 /dev/dsk/c0t0d0 0
                              root@T5140 # more /p
                              p2v/ platform/ proc/
                              root@T5140 # more /p2v/u60/manifest
                              archive_method flash
                              cpu 1
                              disk 0 /dev/dsk/c0t0d0 0
                              hostid 80c6d602
                              ip 172.32.200.2
                              ip 192.168.0.224
                              ip 192.168.0.225
                              ip 192.168.0.225
                              memory 1024
                              net 0 e1000g0 192.168.0.225 0:2:b3:d2:18:69
                              net 1 ge0 192.168.0.224 0:3:ba:c:6b:b1
                              net 2 hme0 172.32.200.2 8:0:20:c6:d6:2
                              nodename U60
                              os_release 5.10
                              swap 0 /dev/dsk/c0t0d0s1 8392048
                              ufs 0 / /dev/dsk/c0t0d0s0 26552822 17681384 17415856
                              vtoc 0 /dev/dsk/c0t0d0s0 0 2 00 0 26962064 26962063
                              vtoc 0 /dev/dsk/c0t0d0s1 1 3 01 26962064 8392072 35354135


                              root@U60 # prtvtoc /dev/dsk/c0t0d0s0
                              * /dev/dsk/c0t0d0s0 partition map
                              *
                              * Dimensions:
                              * 512 bytes/sector
                              * 248 sectors/track
                              * 19 tracks/cylinder
                              * 4712 sectors/cylinder
                              * 7508 cylinders
                              * 7506 accessible cylinders
                              *
                              * Flags:
                              * 1: unmountable
                              * 10: read-only
                              *
                              * Unallocated space:
                              * First Sector Last
                              * Sector Count Sector
                              * 35354136 14136 35368271
                              *
                              * First Sector Last
                              * Partition Tag Flags Sector Count Sector Mount Directory
                              0 2 00 0 26962064 26962063 /
                              1 3 01 26962064 8392072 35354135
                              root@U60 #
                              • 12. Re: Failed to run  "ldmp2v prepare"
                                menno
                                Well I'm sorry but it the invalid manifest really is the cause of your problem.

                                There are two problems here:
                                1 - your original disk has no s2 slice (
                                2 - ldmp2v fails to notice that and creates an invalid manifest (which is a bug, CR 7066460)

                                The corrected manifest below should get you on your way. It has a proper 'disk' entry and a 'vtoc' entry for the missing s2(both calculated from s0 and s1)

                                archive_method flash
                                cpu 1
                                disk 0 /dev/dsk/c0t0d0 35389440
                                hostid 80c6d602
                                ip 172.32.200.2
                                ip 192.168.0.224
                                ip 192.168.0.225
                                ip 192.168.0.225
                                memory 1024
                                net 0 e1000g0 192.168.0.225 0:2:b3:d2:18:69
                                net 1 ge0 192.168.0.224 0:3:ba:c:6b:b1
                                net 2 hme0 172.32.200.2 8:0:20:c6:d6:2
                                nodename U60
                                os_release 5.10
                                swap 0 /dev/dsk/c0t0d0s1 8392048
                                ufs 0 / /dev/dsk/c0t0d0s0 26552822 17681384 17415856
                                vtoc 0 /dev/dsk/c0t0d0s0 0 2 00 0 26962064 26962063
                                vtoc 0 /dev/dsk/c0t0d0s1 1 3 01 26962064 8392072 35354135
                                vtoc 0 /dev/dsk/c0t0d0s2 2 5 00 0 35389440 35389439

                                Edited by: menno on 13-Jul-2011 11:14
                                • 13. Re: Failed to run  "ldmp2v prepare"
                                  874547
                                  I downgraded OVM to version 2.0 then tried again, but still fail to run "ldmp2v prepare" .

                                  root@T5140 # ldmp2v prepare -d /export/home/OMC3 -b file -B /export/home/disk0 OMC3
                                  NOTICE: setting guest memory to 1 GB
                                  Creating vdisks ...
                                  Cannot determine disk name for device disk@0
                                  Cannot setup disk name translations.
                                  root@T5140 # ldmp2v prepare -d /export/home/OMC3 -b file OMC3
                                  NOTICE: setting guest memory to 1 GB
                                  Creating vdisks ...
                                  Failed to add device /tank/ldoms/OMC3/disk0
                                  as OMC3-vol0@primary-vds0 because this device is already exported on LDom primary.
                                  Volume OMC3-vol0 already exists in vds primary-vds0
                                  Cannot create OMC3-vol0@primary-vds0.
                                  root@T5140 # ldmp2v prepare -C OMC3
                                  Cleaning up domain OMC3 ...
                                  root@T5140 # ldmp2v prepare -d /export/home/OMC3 -b file OMC3
                                  NOTICE: setting guest memory to 1 GB
                                  Creating vdisks ...
                                  fmthard: Partition 0 specified as 63156000 sectors starting at 0
                                  does not fit. The full disk contains 1022400 sectors.
                                  Cannot create a VTOC on vdisk OMC3-disk0
                                  Cannot create vdisks.
                                  • 14. Re: Failed to run  "ldmp2v prepare"
                                    User12587626-Oracle
                                    Hi

                                    Menno is absolutely correct .

                                    Have you tried his manifest file on the prepare?

                                    If not I really think you should.

                                    T
                                    1 2 Previous Next