Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [nardia@andrea MoveVm_0.3]$ sh -x ./MoveVm.sh Menovs16 menlnxoravmm menlnxolasc01 OvmTestPool repotarget N N
- + '[' 7 -lt 5 ']'
- ++ date +%Y%m%d-%H%M
- + today=20200122-1532
- + password=Menovs16
- + mgrhost=menlnxoravmm
- + guest=menlnxolasc01
- + pool=OvmTestPool
- + repotarget=repotarget
- ++ echo N
- ++ tr '[a-z]' '[A-Z]'
- + force=N
- ++ echo N
- ++ tr '[a-z]' '[A-Z]'
- + restart=N
- + copytype=SPARSE_COPY
- + /usr/bin/expect FirstConn.exp Menovs16 menlnxoravmm
- spawn ssh -l admin menlnxoravmm -p 10000
- OVM>
- ## Starting Generated OVMCLI Script... ##
- set OutputMode=Verbose
- Command: set OutputMode=Verbose
- Status: Success
- Time: 2020-01-22 15:32:24,897 CET
- OVM> exit
- Connection to menlnxoravmm closed.
- ++ ssh admin@menlnxoravmm -p 10000 list vm
- ++ grep -cx menlnxolasc01
- + isunique=0
- + '[' 0 -gt 1 ']'
- ++ ssh admin@menlnxoravmm -p 10000 show vm name=menlnxolasc01
- + vmdetails='OVM> show vm name=menlnxolasc01
- Command: show vm name=menlnxolasc01
- Status: Success
- Time: 2020-01-22 15:32:25,460 CET
- Data:
- Status = Stopped
- Memory (MB) = 8192
- Max. Memory (MB) = 16384
- Processors = 4
- Max. Processors = 8
- Priority = 50
- Processor Cap = 100
- High Availability = No
- Operating System = Oracle Linux 6
- Mouse Type = OS Default
- Domain Type = Xen PVM
- Keymap = en-us
- Start Policy = Use Pool Policy
- Origin = ftp://?uname?:?pwd?@10.1.3.93/../OVM_OL6U8_x86_64_PVM.ova
- Disk Limit = 104
- Huge Pages Enabled = No
- Config File Absolute Path = /dev/mapper/3600507630081023be800000000000136/VirtualMachines/0004fb00000600009855697447447620/vm.cfg
- Config File Mounted Path = /OVS/Repositories/0004fb00000300001676a3a8e389505f/VirtualMachines/0004fb00000600009855697447447620/vm.cfg
- Server = 31:36:36:36:32:36:5a:43:4a:33:32:39:30:33:33:37 [menlnxovmtst]
- Server Pool = 0004fb000002000095437b56c59fc329 [OvmTestPool]
- Repository = 0004fb00000300001676a3a8e389505f [MyRepoOvmTst]
- Vnic 1 = 0004fb0000070000c94d3aa01fd314d0 [00:21:f6:25:3f:08]
- VmDiskMapping 1 = 0004fb0000130000e02ecd47d4a702db [Mapping for disk Id (0004fb0000120000fc5659370b9d5da7.img)]
- VmDiskMapping 2 = 0004fb00001300004788633c58b4dbd8 [Mapping for disk Id (0004fb0000120000a4cf9b9e6d675858.img)]
- VmCloneCustomizer 1 = 0004fb00001300008a64033fe03c2da6 [menlnxolasc01-move-to-repotarget-20200114-1231]
- VmCloneCustomizer 2 = 0004fb000013000064a05049250b3016 [menlnxolasc01-move-to-MyRepoOvmTst-20200114-1543]
- VmCloneCustomizer 3 = 0004fb00001300005bda1155c5c284c9 [menlnxolasc01-move-to-repotarget-20200114-1620]
- VmCloneCustomizer 4 = 0004fb000013000093f619e4551e56fc [menlnxolasc01-move-to-MyRepoOvmTst-20200115-0845]
- VmCloneCustomizer 5 = 0004fb00001300001e07ab5280e49133 [menlnxolasc01-move-to-MyRepoOvmTst-20200121-1534]
- Restart Action On Crash = Restart
- Id = 0004fb00000600009855697447447620 [menlnxolasc01]
- Name = menlnxolasc01
- Description = Server name menlnxolasc01
- ip address 10.1.24.160
- Locked = false
- DeprecatedAttrs = [Huge Pages Enabled (Deprecated for PV guest)]
- OVM> Connection closed.'
- ++ ssh admin@menlnxoravmm -p 10000 list VirtualDisk
- + vmdisks='OVM> list VirtualDisk
- Command: list VirtualDisk
- Status: Success
- Time: 2020-01-22 15:32:25,911 CET
- Data:
- id:0004fb000012000015e3c500556ef3db.img name:dsk_oracleDb
- id:cfdd509d3b1b473ba44a422028a6dd28.img name:Oracle12102DBRAC_x86_64-xvdb.img
- id:0004fb0000120000ba1d796b651c3cf9.img name:ASM5
- id:ecc77d7e49924b3b9696c26ebc72eb0b.img name:System.img
- id:0004fb0000120000a4cf9b9e6d675858.img name:dsk_menlnxoltst01 (5)
- id:0004fb0000120000fc5659370b9d5da7.img name:system (10)
- id:0004fb0000120000c2d6e30e18044413.img name:ASM1
- id:0004fb0000120000d9603d6d7dd60ab5.img name:ASM4
- id:0004fb0000120000509ab65106d48e42.img name:Hdisk01
- id:0004fb00001200002104cd7067109ca0.img name:ASM3
- id:0004fb0000120000aa2638cd3c824268.img name:ASM2
- id:0004fb0000120000d58d1f3ecf501154.img name:dsk_OracleOASDB
- id:0004fb0000120000cb3ba17d1d09dbc0.img name:ASM4 (6)
- id:0004fb00001200003fc571b32011828d.img name:Oracle12102DBRAC_x86_64-xvdb.img (6)
- id:0004fb0000120000d4907b209fc741d1.img name:ASM1 (6)
- id:0004fb0000120000c5ea399916df9e4d.img name:system (6)
- id:0004fb00001200004250282a966f8893.img name:obi12bc_disk01 (2)
- id:0004fb00001200002d8245a9c8730b52.img name:ASM5 (6)
- id:0004fb000012000029978c93135cdd5b.img name:ASM2 (6)
- id:0004fb000012000068081c7e5bf31531.img name:System.img (6)
- id:0004fb0000120000875183fd98635223.img name:ASM3 (6)
- id:0004fb0000120000e53b054aa0f7d1fc.img name:system (2)
- id:0004fb0000120000122c3a12efca59ec.img name:system (4)
- OVM> Connection closed.'
- ++ grep -ci 'Locked = false'
- ++ echo 'OVM> show vm name=menlnxolasc01
- Command: show vm name=menlnxolasc01
- Status: Success
- Time: 2020-01-22 15:32:25,460 CET
- Data:
- Status = Stopped
- Memory (MB) = 8192
- Max. Memory (MB) = 16384
- Processors = 4
- Max. Processors = 8
- Priority = 50
- Processor Cap = 100
- High Availability = No
- Operating System = Oracle Linux 6
- Mouse Type = OS Default
- Domain Type = Xen PVM
- Keymap = en-us
- Start Policy = Use Pool Policy
- Origin = ftp://?uname?:?pwd?@10.1.3.93/../OVM_OL6U8_x86_64_PVM.ova
- Disk Limit = 104
- Huge Pages Enabled = No
- Config File Absolute Path = /dev/mapper/3600507630081023be800000000000136/VirtualMachines/0004fb00000600009855697447447620/vm.cfg
- Config File Mounted Path = /OVS/Repositories/0004fb00000300001676a3a8e389505f/VirtualMachines/0004fb00000600009855697447447620/vm.cfg
- Server = 31:36:36:36:32:36:5a:43:4a:33:32:39:30:33:33:37 [menlnxovmtst]
- Server Pool = 0004fb000002000095437b56c59fc329 [OvmTestPool]
- Repository = 0004fb00000300001676a3a8e389505f [MyRepoOvmTst]
- Vnic 1 = 0004fb0000070000c94d3aa01fd314d0 [00:21:f6:25:3f:08]
- VmDiskMapping 1 = 0004fb0000130000e02ecd47d4a702db [Mapping for disk Id (0004fb0000120000fc5659370b9d5da7.img)]
- VmDiskMapping 2 = 0004fb00001300004788633c58b4dbd8 [Mapping for disk Id (0004fb0000120000a4cf9b9e6d675858.img)]
- VmCloneCustomizer 1 = 0004fb00001300008a64033fe03c2da6 [menlnxolasc01-move-to-repotarget-20200114-1231]
- VmCloneCustomizer 2 = 0004fb000013000064a05049250b3016 [menlnxolasc01-move-to-MyRepoOvmTst-20200114-1543]
- VmCloneCustomizer 3 = 0004fb00001300005bda1155c5c284c9 [menlnxolasc01-move-to-repotarget-20200114-1620]
- VmCloneCustomizer 4 = 0004fb000013000093f619e4551e56fc [menlnxolasc01-move-to-MyRepoOvmTst-20200115-0845]
- VmCloneCustomizer 5 = 0004fb00001300001e07ab5280e49133 [menlnxolasc01-move-to-MyRepoOvmTst-20200121-1534]
- Restart Action On Crash = Restart
- Id = 0004fb00000600009855697447447620 [menlnxolasc01]
- Name = menlnxolasc01
- Description = Server name menlnxolasc01
- ip address 10.1.24.160
- Locked = false
- DeprecatedAttrs = [Huge Pages Enabled (Deprecated for PV guest)]
- OVM> Connection closed.'
- + checkguest=1
- + '[' 1 -lt 1 ']'
- ++ grep -c menlnxolasc01
- ++ ssh admin@menlnxoravmm -p 10000 show ServerPool name=OvmTestPool
- + checkpool=1
- + '[' 1 -lt 1 ']'
- ++ ssh admin@menlnxoravmm -p 10000 show repository name=repotarget
- ++ grep -ci 'Locked = false'
- + checkrepotarget=1
- + '[' 1 -lt 1 ']'
- ++ echo 'OVM> show vm name=menlnxolasc01
- Command: show vm name=menlnxolasc01
- Status: Success
- Time: 2020-01-22 15:32:25,460 CET
- Data:
- Status = Stopped
- Memory (MB) = 8192
- Max. Memory (MB) = 16384
- Processors = 4
- Max. Processors = 8
- Priority = 50
- Processor Cap = 100
- High Availability = No
- Operating System = Oracle Linux 6
- Mouse Type = OS Default
- Domain Type = Xen PVM
- Keymap = en-us
- Start Policy = Use Pool Policy
- Origin = ftp://?uname?:?pwd?@10.1.3.93/../OVM_OL6U8_x86_64_PVM.ova
- Disk Limit = 104
- Huge Pages Enabled = No
- Config File Absolute Path = /dev/mapper/3600507630081023be800000000000136/VirtualMachines/0004fb00000600009855697447447620/vm.cfg
- Config File Mounted Path = /OVS/Repositories/0004fb00000300001676a3a8e389505f/VirtualMachines/0004fb00000600009855697447447620/vm.cfg
- Server = 31:36:36:36:32:36:5a:43:4a:33:32:39:30:33:33:37 [menlnxovmtst]
- Server Pool = 0004fb000002000095437b56c59fc329 [OvmTestPool]
- Repository = 0004fb00000300001676a3a8e389505f [MyRepoOvmTst]
- Vnic 1 = 0004fb0000070000c94d3aa01fd314d0 [00:21:f6:25:3f:08]
- VmDiskMapping 1 = 0004fb0000130000e02ecd47d4a702db [Mapping for disk Id (0004fb0000120000fc5659370b9d5da7.img)]
- VmDiskMapping 2 = 0004fb00001300004788633c58b4dbd8 [Mapping for disk Id (0004fb0000120000a4cf9b9e6d675858.img)]
- VmCloneCustomizer 1 = 0004fb00001300008a64033fe03c2da6 [menlnxolasc01-move-to-repotarget-20200114-1231]
- VmCloneCustomizer 2 = 0004fb000013000064a05049250b3016 [menlnxolasc01-move-to-MyRepoOvmTst-20200114-1543]
- VmCloneCustomizer 3 = 0004fb00001300005bda1155c5c284c9 [menlnxolasc01-move-to-repotarget-20200114-1620]
- VmCloneCustomizer 4 = 0004fb000013000093f619e4551e56fc [menlnxolasc01-move-to-MyRepoOvmTst-20200115-0845]
- VmCloneCustomizer 5 = 0004fb00001300001e07ab5280e49133 [menlnxolasc01-move-to-MyRepoOvmTst-20200121-1534]
- Restart Action On Crash = Restart
- Id = 0004fb00000600009855697447447620 [menlnxolasc01]
- Name = menlnxolasc01
- Description = Server name menlnxolasc01
- ip address 10.1.24.160
- Locked = false
- DeprecatedAttrs = [Huge Pages Enabled (Deprecated for PV guest)]
- OVM> Connection closed.'
- ++ grep 'Server ='
- ++ cut -d '[' -f2
- ++ cut -d ']' -f1
- + checkovs=menlnxovmtst
- ++ ssh admin@menlnxoravmm -p 10000 show repository name=repotarget
- ++ grep 'Presented Server'
- ++ grep -c menlnxovmtst
- + checkrepopresented=2
- + '[' 2 -lt 1 ']'
- ++ ssh admin@menlnxoravmm -p 10000 showversion
- ++ grep '[0-9].[0-9]'
- ++ cut -d . -f1,2
- ++ sed 's|[^0-9]*||'
- + ovmclirel=3.4
- + case $ovmclirel in
- + echo '==> Oracle VM 3.4 CLI'
- ==> Oracle VM 3.4 CLI
- ++ grep VmDiskMapping
- ++ echo 'OVM> show vm name=menlnxolasc01
- Command: show vm name=menlnxolasc01
- Status: Success
- Time: 2020-01-22 15:32:25,460 CET
- Data:
- Status = Stopped
- Memory (MB) = 8192
- Max. Memory (MB) = 16384
- Processors = 4
- Max. Processors = 8
- Priority = 50
- Processor Cap = 100
- High Availability = No
- Operating System = Oracle Linux 6
- Mouse Type = OS Default
- Domain Type = Xen PVM
- Keymap = en-us
- Start Policy = Use Pool Policy
- Origin = ftp://?uname?:?pwd?@10.1.3.93/../OVM_OL6U8_x86_64_PVM.ova
- Disk Limit = 104
- Huge Pages Enabled = No
- Config File Absolute Path = /dev/mapper/3600507630081023be800000000000136/VirtualMachines/0004fb00000600009855697447447620/vm.cfg
- Config File Mounted Path = /OVS/Repositories/0004fb00000300001676a3a8e389505f/VirtualMachines/0004fb00000600009855697447447620/vm.cfg
- Server = 31:36:36:36:32:36:5a:43:4a:33:32:39:30:33:33:37 [menlnxovmtst]
- Server Pool = 0004fb000002000095437b56c59fc329 [OvmTestPool]
- Repository = 0004fb00000300001676a3a8++ sed -e 's/Mapping for disk Id (//'
- ++ cut -d ']' -f1
- ++ sed -e 's/)//'
- e389505f [MyRepoOvmTst]
- Vnic 1 = 0004fb0000070000c94d3aa01fd314d0 [00:21:f6:25:3f:08]
- VmDiskMapping 1 = 0004fb0000130000e02ecd47d4a702db [Mapping for disk Id (0004fb0000120000fc5659370b9d5da7.img)]
- VmDiskMapping 2 = 0004fb00001300004788633c58b4dbd8 [Mapping for disk Id (0004fb0000120000a4cf9b9e6d675858.img)]
- VmCloneCustomizer 1 = 0004fb00001300008a64033fe03c2da6 [menlnxolasc01-move-to-repotarget-20200114-1231]
- VmCloneCustomizer 2 = 0004fb000013000064a05049250b3016 [menlnxolasc01-move-to-MyRepoOvmTst-20200114-1543]
- VmCloneCustomizer 3 = 0004fb00001300005bda1155c5c284c9 [menlnxolasc01-move-to-repotarget-20200114-1620]
- VmCloneCustomizer 4 = 0004fb000013000093f619e4551e56fc [menlnxolasc01-move-to-MyRepoOvmTst-20200115-0845]
- VmCloneCustomizer 5 = 0004fb00001300001e07ab5280e49133 [menlnxolasc01-move-to-MyRepoOvmTst-20200121-1534]
- Restart Action On Crash = Restart
- Id = 0004fb00000600009855697447447620 [menlnxolasc01]
- Name = menlnxolasc01
- Description = Server name menlnxo++ cut -d '[' -f2
- lasc01
- ip address 10.1.24.160
- Locked = false
- DeprecatedAttrs = [Huge Pages Enabled (Deprecated for PV guest)]
- OVM> Connection closed.'
- + checkactrepotemp='0004fb0000120000fc5659370b9d5da7.img
- 0004fb0000120000a4cf9b9e6d675858.img'
- + checkactrepo=
- + for checkactrepotempi in $checkactrepotemp
- ++ grep 0004fb0000120000fc5659370b9d5da7.img
- ++ echo 'OVM>' list VirtualDisk $'\rCommand:' list VirtualDisk $'\rStatus:' Success $'\rTime:' 2020-01-22 15:32:25,911 CET $'\rData:' $'\r' id:0004fb000012000015e3c500556ef3db.img name:dsk_oracleDb $'\r' id:cfdd509d3b1b473ba44a422028a6dd28.img name:Oracle12102DBRAC_x86_64-xvdb.img $'\r' id:0004fb0000120000ba1d796b651c3cf9.img name:ASM5 $'\r' id:ecc77d7e49924b3b9696c26ebc72eb0b.img name:System.img $'\r' id:0004fb0000120000a4cf9b9e6d675858.img name:dsk_menlnxoltst01 '(5)' $'\r' id:0004fb0000120000fc5659370b9d5da7.img name:system '(10)' $'\r' id:0004fb0000120000c2d6e30e18044413.img name:ASM1 $'\r' id:0004fb0000120000d9603d6d7dd60ab5.img name:ASM4 $'\r' id:0004fb0000120000509ab65106d48e42.img name:Hdisk01 $'\r' id:0004fb00001200002104cd7067109ca0.img name:ASM3 $'\r' id:0004fb0000120000aa2638cd3c824268.img name:ASM2 $'\r' id:0004fb0000120000d58d1f3ecf501154.img name:dsk_OracleOASDB $'\r' id:0004fb0000120000cb3ba17d1d09dbc0.img name:ASM4 '(6)' $'\r' id:0004fb00001200003fc571b32011828d.img name:Oracle12102DBRAC_x86_64-xvdb.img '(6)' $'\r' id:0004fb0000120000d4907b209fc741d1.img name:ASM1 '(6)' $'\r' id:0004fb0000120000c5ea399916df9e4d.img name:system '(6)' $'\r' id:0004fb00001200004250282a966f8893.img name:obi12bc_disk01 '(2)' $'\r' id:0004fb00001200002d8245a9c8730b52.img name:ASM5 '(6)' $'\r' id:0004fb000012000029978c93135cdd5b.img name:ASM2 '(6)' $'\r' id:0004fb000012000068081c7e5bf31531.img name:System.img '(6)' $'\r' id:0004fb0000120000875183fd98635223.img name:ASM3 '(6)' $'\r' id:0004fb0000120000e53b054aa0f7d1fc.img name:system '(2)' $'\r' id:0004fb0000120000122c3a12efca59ec.OVM>' Connection closed.
- id:0004fb00001200003fc571b32011828d.img name:Oracle12102DBRAC_x86_64-xvdb.img (OVM> Connection closed.'3a12efca59ec.img name:system (4) (6) (2)
- + echo '==> Will migrate/clone vm disk 0004fb0000120000fc5659370b9d5da7.img as it is in VirtualDisk list!'
- ==> Will migrate/clone vm disk 0004fb0000120000fc5659370b9d5da7.img as it is in VirtualDisk list!
- ++ echo 0004fb0000120000fc5659370b9d5da7.img
- + checkactrepo=0004fb0000120000fc5659370b9d5da7.img
- + for checkactrepotempi in $checkactrepotemp
- ++ echo 'OVM>' list VirtualDisk $'\rCommand:' list VirtualDisk $'\rStatus:' Success $'\rTime:' 2020-01-22 15:32:25,911 CET $'\rData:' $'\r' id:0004fb000012000015e3c500556ef3db.img name:dsk_oracleDb $'\r' id:cfdd509d3b1b473ba44a422028a6dd28.img name:Oracle12102DBRAC_x86_64-xvdb.img $'\r' id:0004fb0000120000ba1d796b651c3cf9.img name:ASM5 $'\r' id:ecc77d7e49924b3b9696c26ebc72eb0b.img name:System.img $'\r' id:0004fb0000120000a4cf9b9e6d675858.img name:dsk_menlnxoltst01 '(5)' $'\r' id:0004fb0000120000fc5659370b9d5da7.img name:system '(10)' $'\r' id:0004fb0000120000c2d6e30e18044413.img name:ASM1 $'\r' id:0004fb0000120000d9603d6d7dd60ab5.img name:ASM4 $'\r' id:0004fb0000120000509ab65106d48e42.img name:Hdisk01 $'\r' id:0004fb00001200002104cd7067109ca0.img name:ASM3 $'\r' id:0004fb0000120000aa2638cd3c824268.img name:ASM2 $'\r' id:0004fb0000120000d58d1f3ecf501154.img name:dsk_OracleOASDB $'\r' id:0004fb0000120000cb3ba17d1d09dbc0.img name:ASM4 '(6)' $'\r' id:0004fb00001200003fc571b32011828d.img name:Oracle12102DBRAC_x86_64-xvdb.img '(6)' $'\r' id:0004fb0000120000d4907b209fc741d1.img name:ASM1 '(6)' $'\r' id:0004fb0000120000c5ea399916df9e4d.img name:system '(6)' $'\r' id:0004fb00001200004250282a966f8893.img name:obi12bc_disk01 '(2)' $'\r' id:0004fb00001200002d8245a9c8730b52.img name:ASM5 '(6)' $'\r' id:0004fb000012000029978c93135cdd5b.img name:ASM2 '(6)' $'\r' id:0004fb000012000068081c7e5bf31531.img name:System.img '(6)' $'\r' id:0004fb0000120000875183fd98635223.img name:ASM3 '(6)' $'\r' id:0004fb0000120000e53b054aa0f7d1fc.img name:system '(2)' $'\r' id:0004fb0000120000122c3a12efca59ec.OVM>' Connection closed.
- ++ grep 0004fb0000120000a4cf9b9e6d675858.img
- id:0004fb00001200003fc571b32011828d.img name:Oracle12102DBRAC_x86_64-xvdb.img (OVM> Connection closed.'3a12efca59ec.img name:system (4) (6) (2)
- + echo '==> Will migrate/clone vm disk 0004fb0000120000a4cf9b9e6d675858.img as it is in VirtualDisk list!'
- ==> Will migrate/clone vm disk 0004fb0000120000a4cf9b9e6d675858.img as it is in VirtualDisk list!
- ++ echo 0004fb0000120000a4cf9b9e6d675858.img
- + checkactrepo=0004fb0000120000fc5659370b9d5da7.img0004fb0000120000a4cf9b9e6d675858.img
- ++ echo 'OVM> show vm name=menlnxolasc01
- Command: show vm name=menlnxolasc01
- Status: Success
- Time: 2020-01-22 15:32:25,460 CET
- Data:
- Status = Stopped
- Memory (MB) = 8192
- Max. Memory (MB) = 16384
- Processors = 4
- Max. Processors = 8
- Priority = 50
- Processor Cap = 100
- High Availability = No
- Operating System = Oracle Linux 6
- Mouse Type = OS Default
- Domain Type = Xen PVM
- Keymap = en-us
- Start Policy = Use Pool Policy
- Origin = ftp://?uname?:?pwd?@10.1.3.93/../OVM_OL6U8_x86_64_PVM.ova
- Disk Limit = 104
- Huge Pages Enabled = No
- Config File Absolute Path = /dev/mapper/3600507630081023be800000000000136/VirtualMachines/0004fb00000600009855697447447620/vm.cfg
- Config File Mounted Path = /OVS/Repositories/0004fb00000300001676a3a8e389505f/VirtualMachines/0004fb00000600009855697447447620/vm.cfg
- Server = 31:36:36:36:32:36:5a:43:4a:33:32:39:30:33:33:37 [menlnxovmtst]
- Server Pool = 0004fb000002000095437b56c59fc329 [OvmTestPool]
- Repository = 0004fb00000300001676a3a8e389505f [MyRepoOvmTst]
- Vnic 1 = 0004fb0000070000c94d3aa01fd314d0 [00:21:f6:25:3f:08]
- VmDiskMapping 1 = 0004fb0000130000e02ecd47d4a702db [Mapping for disk Id (0004fb0000120000fc5659370b9d5da7.img)]
- VmDiskMapping 2 = 0004fb00001300004788633c58b4dbd8 [Mapping for disk Id (0004fb0000120000a4cf9b9e6d675858.img)]
- VmCloneCustomizer 1 = 0004fb00001300008a64033fe03c2da6 [menlnxolasc01-move-to-repotarget-20200114-1231]
- VmCloneCustomizer 2 = 0004fb000013000064a05049250b3016 [menlnxolasc01-move-to-MyRepoOvmTst-20200114-1543]
- VmCloneCustomizer 3 = 0004fb00001300005bda1155c5c284c9 [menlnxolasc01-move-to-repotarget-20200114-1620]
- VmCloneCustomizer 4 = 0004fb000013000093f619e4551e56fc [menlnxolasc01-move-to-MyRepoOvmTst-20200115-0845]
- VmCloneCustomizer 5 = 0004fb00001300001e07ab5280e49133 [menlnxolasc01-move-to-MyRepoOvmTst-20200121-1534]
- Restart Action On Crash = Restart
- Id = 0004fb00000600009855697447447620 [menlnxolasc01]
- Name = menlnxolasc01
- Description = Server name menlnxolasc01
- ip address 10.1.24.160
- Locked = false
- DeprecatedAttrs = [Huge Pages Enabled (Deprecated for PV guest)]
- OVM> Connection closed.'
- ++ grep -c repotarget
- ++ grep 'Repository ='
- + checkactvmcfg=0
- ++ echo 0004fb0000120000fc5659370b9d5da7.img0004fb0000120000a4cf9b9e6d675858.imgi
- ++ wc -l
- + countvdisks=1
- + isalready=0
- ++ echo 0004fb0000120000fc5659370b9d5da7.img0004fb0000120000a4cf9b9e6d675858.img
- + for diskid in `echo "$checkactrepo"`
- ++ ssh admin@menlnxoravmm -p 10000 show virtualdisk id=0004fb0000120000fc5659370b9d5da7.img0004fb0000120000a4cf9b9e6d675858.img
- ++ grep 'Repository Id ='
- ++ cut -d '[' -f2
- ++ cut -d ']' -f1
- + reponame=
- + '[' '' = repotarget ']'
- + '[' 0 -eq 1 ']'
- ++ echo 'OVM> show vm name=menlnxolasc01
- Command: show vm name=menlnxolasc01
- Status: Success
- Time: 2020-01-22 15:32:25,460 CET
- Data:
- Status = Stopped
- Memory (MB) = 8192
- Max. Memory (MB) = 16384
- Processors = 4
- Max. Processors = 8
- Priority = 50
- Processor Cap = 100
- High Availability = No
- Operating System = Oracle Linux 6
- Mouse Type = OS Default
- Domain Type = Xen PVM
- Keymap = en-us
- Start Policy = Use Pool Policy
- Origin = ftp://?uname?:?pwd?@10.1.3.93/../OVM_OL6U8_x86_64_PVM.ova
- Disk Limit = 104
- Huge Pages Enabled = No
- Config File Absolute Path = /dev/mapper/3600507630081023be800000000000136/VirtualMachines/0004fb00000600009855697447447620/vm.cfg
- Config File Mounted Path = /OVS/Repositories/0004fb00000300001676a3a8e389505f/VirtualMachines/0004fb00000600009855697447447620/vm.cfg
- Server = 31:36:36:36:32:36:5a:43:4a:33:32:39:30:33:33:37 [menlnxovmtst]
- Server Pool = 0004fb000002000095437b56c59fc329 [OvmTestPool]
- Repository = 0004fb00000300001676a3a8e389505f [MyRepoOvmTst]
- Vnic 1 = 0004fb0000070000c94d3aa01fd314d0 [00:21:f6:25:3f:08]
- VmDiskMapping 1 = 0004fb0000130000e02ecd47d4a702db [Mapping for disk Id (0004fb0000120000fc5659370b9d5da7.img)]
- VmDiskMapping 2 = 0004fb00001300004788633c58b4dbd8 [Mapping for disk Id (0004fb0000120000a4cf9b9e6d675858.img)]
- VmCloneCustomizer 1 = 0004fb00001300008a64033fe03c2da6 [menlnxolasc01-move-to-repotarget-20200114-1231]
- VmCloneCustomizer 2 = 0004fb000013000064a05049250b3016 [menlnxolasc01-move-to-MyRepoOvmTst-20200114-1543]
- VmCloneCustomizer 3 = 0004fb00001300005bda1155c5c284c9 [menlnxolasc01-move-to-repotarget-20200114-1620]
- VmCloneCustomizer 4 = 0004fb000013000093f619e4551e56fc [menlnxolasc01-move-to-MyRepoOvmTst-20200115-0845]
- VmCloneCustomizer 5 = 0004fb00001300001e07ab5280e49133 [menlnxolasc01-move-to-MyRepoOvmTst-20200121-1534]
- Restart Action On Crash = Restart
- Id = 0004fb00000600009855697447447620 [menlnxolasc01]
- Name = menlnxolasc01
- Description = Server name menlnxo++ grep VmDiskMapping
- lasc01
- ip address 10.1.24.160
- Locked = false
- DeprecatedAttrs = [Huge Pages Enabled (Deprecated for PV guest)]
- OVM> Connection closed.'
- VmDiskMapping 1 = 0004fb0000130000e02ecd47d4a702db [Mapping for disk Id (0004fb0000120000fc5659370b9d5da7.img)]
- VmDiskMapping 2 = 0004fb00001300004788633c58b4dbd8 [Mapping for disk Id (0004fb0000120000a4cf9b9e6d675858.img)]'
- VmDiskMapping 1 = 0004fb0000130000e02ecd47d4a702db [Mapping for disk Id (0004fb0000120000fc5659370b9d5da7.img)]
- VmDiskMapping 2 = 0004fb00001300004788633c58b4dbd8 [Mapping for disk Id (0004fb0000120000a4cf9b9e6d675858.img)]'
- ++ cut -d '[' -f2
- ++ sed -e 's/Mapping for disk Id (//'
- ++ sed -e 's/)//'
- ++ cut -d ']' -f1
- + vdisksidtemp='0004fb0000120000fc5659370b9d5da7.img
- 0004fb0000120000a4cf9b9e6d675858.img'
- + for vdisksidi in $vdisksidtemp
- ++ grep 0004fb0000120000fc5659370b9d5da7.img
- ++ echo 'OVM>' list VirtualDisk $'\rCommand:' list VirtualDisk $'\rStatus:' Success $'\rTime:' 2020-01-22 15:32:25,911 CET $'\rData:' $'\r' id:0004fb000012000015e3c500556ef3db.img name:dsk_oracleDb $'\r' id:cfdd509d3b1b473ba44a422028a6dd28.img name:Oracle12102DBRAC_x86_64-xvdb.img $'\r' id:0004fb0000120000ba1d796b651c3cf9.img name:ASM5 $'\r' id:ecc77d7e49924b3b9696c26ebc72eb0b.img name:System.img $'\r' id:0004fb0000120000a4cf9b9e6d675858.img name:dsk_menlnxoltst01 '(5)' $'\r' id:0004fb0000120000fc5659370b9d5da7.img name:system '(10)' $'\r' id:0004fb0000120000c2d6e30e18044413.img name:ASM1 $'\r' id:0004fb0000120000d9603d6d7dd60ab5.img name:ASM4 $'\r' id:0004fb0000120000509ab65106d48e42.img name:Hdisk01 $'\r' id:0004fb00001200002104cd7067109ca0.img name:ASM3 $'\r' id:0004fb0000120000aa2638cd3c824268.img name:ASM2 $'\r' id:0004fb0000120000d58d1f3ecf501154.img name:dsk_OracleOASDB $'\r' id:0004fb0000120000cb3ba17d1d09dbc0.img name:ASM4 '(6)' $'\r' id:0004fb00001200003fc571b32011828d.img name:Oracle12102DBRAC_x86_64-xvdb.img '(6)' $'\r' id:0004fb0000120000d4907b209fc741d1.img name:ASM1 '(6)' $'\r' id:0004fb0000120000c5ea399916df9e4d.img name:system '(6)' $'\r' id:0004fb00001200004250282a966f8893.img name:obi12bc_disk01 '(2)' $'\r' id:0004fb00001200002d8245a9c8730b52.img name:ASM5 '(6)' $'\r' id:0004fb000012000029978c93135cdd5b.img name:ASM2 '(6)' $'\r' id:0004fb000012000068081c7e5bf31531.img name:System.img '(6)' $'\r' id:0004fb0000120000875183fd98635223.img name:ASM3 '(6)' $'\r' id:0004fb0000120000e53b054aa0f7d1fc.img name:system '(2)' $'\r' id:0004fb0000120000122c3a12efca59ec.OVM>' Connection closed.
- id:0004fb00001200003fc571b32011828d.img name:Oracle12102DBRAC_x86_64-xvdb.img (OVM> Connection closed.'3a12efca59ec.img name:system (4) (6) (2)
- ++ echo 0004fb0000120000fc5659370b9d5da7.img
- + vdisksid=' 0004fb0000120000fc5659370b9d5da7.img'
- + for vdisksidi in $vdisksidtemp
- ++ grep 0004fb0000120000a4cf9b9e6d675858.img
- ++ echo 'OVM>' list VirtualDisk $'\rCommand:' list VirtualDisk $'\rStatus:' Success $'\rTime:' 2020-01-22 15:32:25,911 CET $'\rData:' $'\r' id:0004fb000012000015e3c500556ef3db.img name:dsk_oracleDb $'\r' id:cfdd509d3b1b473ba44a422028a6dd28.img name:Oracle12102DBRAC_x86_64-xvdb.img $'\r' id:0004fb0000120000ba1d796b651c3cf9.img name:ASM5 $'\r' id:ecc77d7e49924b3b9696c26ebc72eb0b.img name:System.img $'\r' id:0004fb0000120000a4cf9b9e6d675858.img name:dsk_menlnxoltst01 '(5)' $'\r' id:0004fb0000120000fc5659370b9d5da7.img name:system '(10)' $'\r' id:0004fb0000120000c2d6e30e18044413.img name:ASM1 $'\r' id:0004fb0000120000d9603d6d7dd60ab5.img name:ASM4 $'\r' id:0004fb0000120000509ab65106d48e42.img name:Hdisk01 $'\r' id:0004fb00001200002104cd7067109ca0.img name:ASM3 $'\r' id:0004fb0000120000aa2638cd3c824268.img name:ASM2 $'\r' id:0004fb0000120000d58d1f3ecf501154.img name:dsk_OracleOASDB $'\r' id:0004fb0000120000cb3ba17d1d09dbc0.img name:ASM4 '(6)' $'\r' id:0004fb00001200003fc571b32011828d.img name:Oracle12102DBRAC_x86_64-xvdb.img '(6)' $'\r' id:0004fb0000120000d4907b209fc741d1.img name:ASM1 '(6)' $'\r' id:0004fb0000120000c5ea399916df9e4d.img name:system '(6)' $'\r' id:0004fb00001200004250282a966f8893.img name:obi12bc_disk01 '(2)' $'\r' id:0004fb00001200002d8245a9c8730b52.img name:ASM5 '(6)' $'\r' id:0004fb000012000029978c93135cdd5b.img name:ASM2 '(6)' $'\r' id:0004fb000012000068081c7e5bf31531.img name:System.img '(6)' $'\r' id:0004fb0000120000875183fd98635223.img name:ASM3 '(6)' $'\r' id:0004fb0000120000e53b054aa0f7d1fc.img name:system '(2)' $'\r' id:0004fb0000120000122c3a12efca59ec.OVM>' Connection closed.
- id:0004fb00001200003fc571b32011828d.img name:Oracle12102DBRAC_x86_64-xvdb.img (OVM> Connection closed.'3a12efca59ec.img name:system (4) (6) (2)
- ++ echo 0004fb0000120000a4cf9b9e6d675858.img
- + vdisksid=' 0004fb0000120000fc5659370b9d5da7.img 0004fb0000120000a4cf9b9e6d675858.img'
- + sum_space_used=0
- ++ echo ' 0004fb0000120000fc5659370b9d5da7.img 0004fb0000120000a4cf9b9e6d675858.img'
- + for diskid in `echo "$vdisksid"`
- ++ grep 'Used (GiB) ='
- ++ ssh admin@menlnxoravmm -p 10000 show virtualdisk id=0004fb0000120000fc5659370b9d5da7.img
- ++ awk '{print int($1+0.9)}'
- ++ cut -d = -f2
- + tmp=11
- + sum_space_used=11
- + for diskid in `echo "$vdisksid"`
- ++ ssh admin@menlnxoravmm -p 10000 show virtualdisk id=0004fb0000120000a4cf9b9e6d675858.img
- ++ cut -d = -f2
- ++ awk '{print int($1+0.9)}'
- ++ grep 'Used (GiB) ='
- + tmp=64
- + sum_space_used=75
- + ssh admin@menlnxoravmm -p 10000 refresh repository name=repotarget
- OVM> refresh repository name=repotarget
- Command: refresh repository name=repotarget
- Status: Success
- Time: 2020-01-22 15:32:34,872 CET
- JobId: 1579703548934
- OVM> Connection closed.
- ++ ssh admin@menlnxoravmm -p 10000 show repository name=repotarget
- ++ grep 'File System ='
- ++ cut -d = -f2
- ++ cut -d ' ' -f2
- + filesystemid=0004fb0000050000d291195e911c3c07
- + ssh admin@menlnxoravmm -p 10000 refresh filesystem id=0004fb0000050000d291195e911c3c07
- OVM> refresh filesystem id=0004fb0000050000d291195e911c3c07
- Command: refresh filesystem id=0004fb0000050000d291195e911c3c07
- Status: Success
- Time: 2020-01-22 15:32:37,333 CET
- JobId: 1579703555625
- OVM> Connection closed.
- ++ ssh admin@menlnxoravmm -p 10000 show repository name=repotarget
- ++ grep 'File System Free (GiB) ='
- ++ cut -d = -f2
- ++ awk '{print int($1)}'
- + space_free_on_repo=1016
- + '[' 1016 -lt 75 ']'
- ++ grep VmDiskMapping
- ++ echo 'OVM> show vm name=menlnxolasc01
- Command: show vm name=menlnxolasc01
- Status: Success
- Time: 2020-01-22 15:32:25,460 CET
- Data:
- Status = Stopped
- Memory (MB) = 8192
- Max. Memory (MB) = 16384
- Processors = 4
- Max. Processors = 8
- Priority = 50
- Processor Cap = 100
- High Availability = No
- Operating System = Oracle Linux 6
- Mouse Type = OS Default
- Domain Type = Xen PVM
- Keymap = en-us
- Start Policy = Use Pool Policy
- Origin = ftp://?uname?:?pwd?@10.1.3.93/../OVM_OL6U8_x86_64_PVM.ova
- Disk Limit = 104
- Huge Pages Enabled = No
- Config File Absolute Path = /dev/mapper/3600507630081023be800000000000136/VirtualMachines/0004fb00000600009855697447447620/vm.cfg
- Config File Mounted Path = /OVS/Repositories/0004fb00000300001676a3a8e389505f/VirtualMachines/0004fb00000600009855697447447620/vm.cfg
- Server = 31:36:36:36:32:36:5a:43:4a:33:32:39:30:33:33:37 [menlnxovmtst]
- Server Pool = 0004fb000002000095437b56c59fc329 [OvmTestPool]
- Repository = 0004fb00000300001676a3a8e389505f [MyRepoOvmTst]
- Vnic 1 = 0004fb0000070000c94d3aa01fd314d0 [00:21:f6:25:3f:08]
- VmDiskMapping 1 = 0004fb0000130000e02ecd47d4a702db [Mapping for disk Id (0004fb0000120000fc5659370b9d5da7.img)]
- VmDiskMapping 2 = 0004fb00001300004788633c58b4dbd8 [Mapping for disk Id (0004fb0000120000a4cf9b9e6d675858.img)]
- VmCloneCustomizer 1 = 0004fb00001300008a64033fe03c2da6 [menlnxolasc01-move-to-repotarget-20200114-1231]
- VmCloneCustomizer 2 = 0004fb000013000064a05049250b3016 [menlnxolasc01-move-to-MyRepoOvmTst-20200114-1543]
- VmCloneCustomizer 3 = 0004fb00001300005bda1155c5c284c9 [menlnxolasc01-move-to-repotarget-20200114-1620]
- VmCloneCustomizer 4 = 0004fb000013000093f619e4551e56fc [menlnxolasc01-move-to-MyRepoOvmTst-20200115-0845]
- VmCloneCustomizer 5 = 0004fb00001300001e07ab5280e49133 [menlnxolasc01-move-to-MyRepoOvmTst-20200121-1534]
- Restart Action On Crash = Restart
- Id = 0004fb00000600009855697447447620 [menlnxolasc01]
- Name = menlnxolasc01
- Description = Server name menlnxolasc01
- ip address 10.1.24.160
- Locked = false
- DeprecatedAttrs = [Huge Pages Enabled (Deprecated for PV guest)]
- OVM> Connection closed.'
- VmDiskMapping 1 = 0004fb0000130000e02ecd47d4a702db [Mapping for disk Id (0004fb0000120000fc5659370b9d5da7.img)]
- VmDiskMapping 2 = 0004fb00001300004788633c58b4dbd8 [Mapping for disk Id (0004fb0000120000a4cf9b9e6d675858.img)]'
- ++ cut -d '[' -f2
- ++ cut -d ']' -f1
- VmDiskMapping 1 = 0004fb0000130000e02ecd47d4a702db [Mapping for disk Id (0004fb0000120000fc5659370b9d5da7.img)]
- VmDiskMapping 2 = 0004fb00001300004788633c58b4dbd8 [Mapping for disk Id (0004fb0000120000a4cf9b9e6d675858.img)]'
- ++ sed -e 's/Mapping for disk Id (//'
- ++ sed -e 's/)//'
- + vdisksidtemp='0004fb0000120000fc5659370b9d5da7.img
- 0004fb0000120000a4cf9b9e6d675858.img'
- + vdisksid=
- + for vdisksidi in $vdisksidtemp
- ++ grep 0004fb0000120000fc5659370b9d5da7.img
- ++ echo 'OVM>' list VirtualDisk $'\rCommand:' list VirtualDisk $'\rStatus:' Success $'\rTime:' 2020-01-22 15:32:25,911 CET $'\rData:' $'\r' id:0004fb000012000015e3c500556ef3db.img name:dsk_oracleDb $'\r' id:cfdd509d3b1b473ba44a422028a6dd28.img name:Oracle12102DBRAC_x86_64-xvdb.img $'\r' id:0004fb0000120000ba1d796b651c3cf9.img name:ASM5 $'\r' id:ecc77d7e49924b3b9696c26ebc72eb0b.img name:System.img $'\r' id:0004fb0000120000a4cf9b9e6d675858.img name:dsk_menlnxoltst01 '(5)' $'\r' id:0004fb0000120000fc5659370b9d5da7.img name:system '(10)' $'\r' id:0004fb0000120000c2d6e30e18044413.img name:ASM1 $'\r' id:0004fb0000120000d9603d6d7dd60ab5.img name:ASM4 $'\r' id:0004fb0000120000509ab65106d48e42.img name:Hdisk01 $'\r' id:0004fb00001200002104cd7067109ca0.img name:ASM3 $'\r' id:0004fb0000120000aa2638cd3c824268.img name:ASM2 $'\r' id:0004fb0000120000d58d1f3ecf501154.img name:dsk_OracleOASDB $'\r' id:0004fb0000120000cb3ba17d1d09dbc0.img name:ASM4 '(6)' $'\r' id:0004fb00001200003fc571b32011828d.img name:Oracle12102DBRAC_x86_64-xvdb.img '(6)' $'\r' id:0004fb0000120000d4907b209fc741d1.img name:ASM1 '(6)' $'\r' id:0004fb0000120000c5ea399916df9e4d.img name:system '(6)' $'\r' id:0004fb00001200004250282a966f8893.img name:obi12bc_disk01 '(2)' $'\r' id:0004fb00001200002d8245a9c8730b52.img name:ASM5 '(6)' $'\r' id:0004fb000012000029978c93135cdd5b.img name:ASM2 '(6)' $'\r' id:0004fb000012000068081c7e5bf31531.img name:System.img '(6)' $'\r' id:0004fb0000120000875183fd98635223.img name:ASM3 '(6)' $'\r' id:0004fb0000120000e53b054aa0f7d1fc.img name:system '(2)' $'\r' id:0004fb0000120000122c3a12efca59ec.OVM>' Connection closed.
- id:0004fb00001200003fc571b32011828d.img name:Oracle12102DBRAC_x86_64-xvdb.img (OVM> Connection closed.'3a12efca59ec.img name:system (4) (6) (2)
- ++ echo 0004fb0000120000fc5659370b9d5da7.img
- + vdisksid=' 0004fb0000120000fc5659370b9d5da7.img'
- + for vdisksidi in $vdisksidtemp
- ++ grep 0004fb0000120000a4cf9b9e6d675858.img
- ++ echo 'OVM>' list VirtualDisk $'\rCommand:' list VirtualDisk $'\rStatus:' Success $'\rTime:' 2020-01-22 15:32:25,911 CET $'\rData:' $'\r' id:0004fb000012000015e3c500556ef3db.img name:dsk_oracleDb $'\r' id:cfdd509d3b1b473ba44a422028a6dd28.img name:Oracle12102DBRAC_x86_64-xvdb.img $'\r' id:0004fb0000120000ba1d796b651c3cf9.img name:ASM5 $'\r' id:ecc77d7e49924b3b9696c26ebc72eb0b.img name:System.img $'\r' id:0004fb0000120000a4cf9b9e6d675858.img name:dsk_menlnxoltst01 '(5)' $'\r' id:0004fb0000120000fc5659370b9d5da7.img name:system '(10)' $'\r' id:0004fb0000120000c2d6e30e18044413.img name:ASM1 $'\r' id:0004fb0000120000d9603d6d7dd60ab5.img name:ASM4 $'\r' id:0004fb0000120000509ab65106d48e42.img name:Hdisk01 $'\r' id:0004fb00001200002104cd7067109ca0.img name:ASM3 $'\r' id:0004fb0000120000aa2638cd3c824268.img name:ASM2 $'\r' id:0004fb0000120000d58d1f3ecf501154.img name:dsk_OracleOASDB $'\r' id:0004fb0000120000cb3ba17d1d09dbc0.img name:ASM4 '(6)' $'\r' id:0004fb00001200003fc571b32011828d.img name:Oracle12102DBRAC_x86_64-xvdb.img '(6)' $'\r' id:0004fb0000120000d4907b209fc741d1.img name:ASM1 '(6)' $'\r' id:0004fb0000120000c5ea399916df9e4d.img name:system '(6)' $'\r' id:0004fb00001200004250282a966f8893.img name:obi12bc_disk01 '(2)' $'\r' id:0004fb00001200002d8245a9c8730b52.img name:ASM5 '(6)' $'\r' id:0004fb000012000029978c93135cdd5b.img name:ASM2 '(6)' $'\r' id:0004fb000012000068081c7e5bf31531.img name:System.img '(6)' $'\r' id:0004fb0000120000875183fd98635223.img name:ASM3 '(6)' $'\r' id:0004fb0000120000e53b054aa0f7d1fc.img name:system '(2)' $'\r' id:0004fb0000120000122c3a12efca59ec.OVM>' Connection closed.
- id:0004fb00001200003fc571b32011828d.img name:Oracle12102DBRAC_x86_64-xvdb.img (OVM> Connection closed.'3a12efca59ec.img name:system (4) (6) (2)
- ++ echo 0004fb0000120000a4cf9b9e6d675858.img
- + vdisksid=' 0004fb0000120000fc5659370b9d5da7.img 0004fb0000120000a4cf9b9e6d675858.img'
- + sum_space_used=0
- ++ echo ' 0004fb0000120000fc5659370b9d5da7.img 0004fb0000120000a4cf9b9e6d675858.img'
- + for diskid in `echo "$vdisksid"`
- ++ ssh admin@menlnxoravmm -p 10000 show virtualdisk id=0004fb0000120000fc5659370b9d5da7.img
- ++ grep 'Used (GiB) ='
- ++ awk '{print int($1+0.9)}'
- ++ cut -d = -f2
- + tmp=11
- + sum_space_used=11
- + for diskid in `echo "$vdisksid"`
- ++ ssh admin@menlnxoravmm -p 10000 show virtualdisk id=0004fb0000120000a4cf9b9e6d675858.img
- ++ grep 'Used (GiB) ='
- ++ cut -d = -f2
- ++ awk '{print int($1+0.9)}'
- + tmp=64
- + sum_space_used=75
- ++ ssh admin@menlnxoravmm -p 10000 show repository name=repotarget
- ++ grep 'File System Free (GiB) ='
- ++ cut -d = -f2
- ++ awk '{print int($1)}'
- + space_free_on_repo=1016
- + '[' 1016 -lt 75 ']'
- ++ echo 'OVM> show vm name=menlnxolasc01
- Command: show vm name=menlnxolasc01
- Status: Success
- Time: 2020-01-22 15:32:25,460 CET
- Data:
- Status = Stopped
- Memory (MB) = 8192
- Max. Memory (MB) = 16384
- Processors = 4
- Max. Processors = 8
- Priority = 50
- Processor Cap = 100
- High Availability = No
- Operating System = Oracle Linux 6
- Mouse Type = OS Default
- Domain Type = Xen PVM
- Keymap = en-us
- Start Policy = Use Pool Policy
- Origin = ftp://?uname?:?pwd?@10.1.3.93/../OVM_OL6U8_x86_64_PVM.ova
- Disk Limit = 104
- Huge Pages Enabled = No
- Config File Absolute Path = /dev/mapper/3600507630081023be800000000000136/VirtualMachines/0004fb00000600009855697447447620/vm.cfg
- Config File Mounted Path = /OVS/Repositories/0004fb00000300001676a3a8e389505f/VirtualMachines/0004fb00000600009855697447447620/vm.cfg
- Server = 31:36:36:36:32:36:5a:43:4a:33:32:39:30:33:33:37 [menlnxovmtst]
- Server Pool = 0004fb000002000095437b56c59fc329 [OvmTestPool]
- Repository = 0004fb00000300001676a3a8e389505f [MyRepoOvmTst]
- Vnic 1 = 0004fb0000070000c94d3aa01fd314d0 [00:21:f6:25:3f:08]
- VmDiskMapping 1 = 0004fb0000130000e02ecd47d4a702db [Mapping for disk Id (0004fb0000120000fc5659370b9d5da7.img)]
- VmDiskMapping 2 = 0004fb00001300004788633c58b4dbd8 [Mapping for disk Id (0004fb0000120000a4cf9b9e6d675858.img)]
- VmCloneCustomizer 1 = 0004fb00001300008a64033fe03c2da6 [menlnxolasc01-move-to-repotarget-20200114-1231]
- VmCloneCustomizer 2 = 0004fb000013000064a05049250b3016 [menlnxolasc01-move-to-MyRepoOvmTst-20200114-1543]
- VmCloneCustomizer 3 = 0004fb00001300005bda1155c5c284c9 [menlnxolasc01-move-to-repotarget-20200114-1620]
- VmCloneCustomizer 4 = 0004fb000013000093f619e4551e56fc [menlnxolasc01-move-to-MyRepoOvmTst-20200115-0845]
- VmCloneCustomizer 5 = 0004fb00001300001e07ab5280e49133 [menlnxolasc01-move-to-MyRepoOvmTst-20200121-1534]
- Restart Action On Crash = Restart
- Id = 0004fb00000600009855697447447620 [menlnxolasc01]
- Name = menlnxolasc01
- Description = Server name menlnxo++ grep -c 'Status = Running'
- lasc01
- ip address 10.1.24.160
- Locked = false
- DeprecatedAttrs = [Huge Pages Enabled (Deprecated for PV guest)]
- OVM> Connection closed.'
- + running=0
- + '[' 0 -eq 1 ']'
- + ssh admin@menlnxoravmm -p 10000 create VmCloneCustomizer name=menlnxolasc01-move-to-repotarget-20200122-1532 description=menlnxolasc01-move-to-repotarget-20200122-1532 on Vm name=menlnxolasc01
- OVM> create VmCloneCustomizer name=menlnxolasc01-move-to-repotarget-20200122-1532 description=menlnxolasc01-move-to-repotarget-20200122-1532 on Vm name=menlnxolasc01
- Command: create VmCloneCustomizer name=menlnxolasc01-move-to-repotarget-20200122-1532 description=menlnxolasc01-move-to-repotarget-20200122-1532 on Vm name=menlnxolasc01
- Status: Success
- Time: 2020-01-22 15:32:39,396 CET
- JobId: 1579703559177
- Data:
- id:0004fb000013000056d99a9934909ab4 name:menlnxolasc01-move-to-repotarget-20200122-1532
- OVM> Connection closed.
- ++ echo 'OVM> show vm name=menlnxolasc01
- Command: show vm name=menlnxolasc01
- Status: Success
- Time: 2020-01-22 15:32:25,460 CET
- Data:
- Status = Stopped
- Memory (MB) = 8192
- Max. Memory (MB) = 16384
- Processors = 4
- Max. Processors = 8
- Priority = 50
- Processor Cap = 100
- High Availability = No
- Operating System = Oracle Linux 6
- Mouse Type = OS Default
- Domain Type = Xen PVM
- Keymap = en-us
- Start Policy = Use Pool Policy
- Origin = ftp://?uname?:?pwd?@10.1.3.93/../OVM_OL6U8_x86_64_PVM.ova
- Disk Limit = 104
- Huge Pages Enabled = No
- Config File Absolute Path = /dev/mapper/3600507630081023be800000000000136/VirtualMachines/0004fb00000600009855697447447620/vm.cfg
- Config File Mounted Path = /OVS/Repositories/0004fb00000300001676a3a8e389505f/VirtualMachines/0004fb00000600009855697447447620/vm.cfg
- Server = 31:36:36:36:32:36:5a:43:4a:33:32:39:30:33:33:37 [menlnxovmtst]
- Server Pool = 0004fb000002000095437b56c59fc329 [OvmTestPool]
- Repository = 0004fb00000300001676a3a8e389505f [MyRepoOvmTst]
- Vnic 1 = 0004fb0000070000c94d3aa01fd314d0 [00:21:f6:25:3f:08]
- VmDiskMapping 1 = 0004fb0000130000e02ecd47d4a702db [Mapping for disk Id (0004fb0000120000fc5659370b9d5da7.img)]
- VmDiskMapping 2 = 0004fb00001300004788633c58b4dbd8 [Mapping for disk Id (0004fb0000120000a4cf9b9e6d675858.img)]
- VmCloneCustomizer 1 = 0004fb00001300008a64033fe03c2da6 [menlnxolasc01-move-to-repotarget-20200114-1231]
- VmCloneCustomizer 2 = 0004fb000013000064a05049250b3016 [menlnxolasc01-move-to-MyRepoOvmTst-20200114-1543]
- VmCloneCustomizer 3 = 0004fb00001300005bda1155c5c284c9 [menlnxolasc01-move-to-repotarget-20200114-1620]
- VmCloneCustomizer 4 = 0004fb000013000093f619e4551e56fc [menlnxolasc01-move-to-MyRepoOvmTst-20200115-0845]
- VmCloneCustomizer 5 = 0004fb00001300001e07ab5280e49133 [menlnxolasc01-move-to-MyRepoOvmTst-20200121-1534]
- Restart Action On Crash = Restart
- Id = 0004fb00000600009855697447447620 [menlnxolasc01]
- Name = menlnxolasc01
- Description = Server name menlnxolasc01
- ip address 10.1.24.160
- Locked = false
- DeprecatedAttrs = [Huge Pages Enabled (Deprecated for PV guest)]
- OVM> Connection closed.'
- ++ cut -d '[' -f2
- ++ grep VmDiskMapping
- ++ sed -e 's/)//'
- ++ cut -d ']' -f1
- ++ sed -e 's/Mapping for disk Id (//'
- + DISK_IDS='0004fb0000120000fc5659370b9d5da7.img
- 0004fb0000120000a4cf9b9e6d675858.img'
- ++ echo '0004fb0000120000fc5659370b9d5da7.img
- 0004fb0000120000a4cf9b9e6d675858.img'
- + for diskid in `echo "$DISK_IDS"`
- ++ grep -c 0004fb0000120000fc5659370b9d5da7.img
- ++ echo 'OVM> list VirtualDisk
- Command: list VirtualDisk
- Status: Success
- Time: 2020-01-22 15:32:25,911 CET
- Data:
- id:0004fb000012000015e3c500556ef3db.img name:dsk_oracleDb
- id:cfdd509d3b1b473ba44a422028a6dd28.img name:Oracle12102DBRAC_x86_64-xvdb.img
- id:0004fb0000120000ba1d796b651c3cf9.img name:ASM5
- id:ecc77d7e49924b3b9696c26ebc72eb0b.img name:System.img
- id:0004fb0000120000a4cf9b9e6d675858.img name:dsk_menlnxoltst01 (5)
- id:0004fb0000120000fc5659370b9d5da7.img name:system (10)
- id:0004fb0000120000c2d6e30e18044413.img name:ASM1
- id:0004fb0000120000d9603d6d7dd60ab5.img name:ASM4
- id:0004fb0000120000509ab65106d48e42.img name:Hdisk01
- id:0004fb00001200002104cd7067109ca0.img name:ASM3
- id:0004fb0000120000aa2638cd3c824268.img name:ASM2
- id:0004fb0000120000d58d1f3ecf501154.img name:dsk_OracleOASDB
- id:0004fb0000120000cb3ba17d1d09dbc0.img name:ASM4 (6)
- id:0004fb00001200003fc571b32011828d.img name:Oracle12102DBRAC_x86_64-xvdb.img (6)
- id:0004fb0000120000d4907b209fc741d1.img name:ASM1 (6)
- id:0004fb0000120000c5ea399916df9e4d.img name:system (6)
- id:0004fb00001200004250282a966f8893.img name:obi12bc_disk01 (2)
- id:0004fb00001200002d8245a9c8730b52.img name:ASM5 (6)
- id:0004fb000012000029978c93135cdd5b.img name:ASM2 (6)
- id:0004fb000012000068081c7e5bf31531.img name:System.img (6)
- id:0004fb0000120000875183fd98635223.img name:ASM3 (6)
- id:0004fb0000120000e53b054aa0f7d1fc.img name:system (2)
- id:0004fb0000120000122c3a12efca59ec.img name:system (4)
- OVM> Connection closed.'
- + isvirtual=1
- VmDiskMapping 1 = 0004fb0000130000e02ecd47d4a702db [Mapping for disk Id (0004fb0000120000fc5659370b9d5da7.img)]
- VmDiskMapping 2 = 0004fb00001300004788633c58b4dbd8 [Mapping for disk Id (0004fb0000120000a4cf9b9e6d675858.img)]'
- ++ grep 0004fb0000120000fc5659370b9d5da7.img
- ++ awk '{print $5}'
- + diskmapping=0004fb0000130000e02ecd47d4a702db
- + '[' 1 -lt 1 ']'
- ++ ssh admin@menlnxoravmm -p 10000 show virtualdisk id=0004fb0000120000fc5659370b9d5da7.img
- ++ cut -d ']' -f1
- ++ cut -d '[' -f2
- ++ grep 'Repository Id ='
- + reponame=MyRepoOvmTst
- + '[' MyRepoOvmTst = repotarget ']'
- + ssh admin@menlnxoravmm -p 10000 create VmCloneStorageMapping cloneType=SPARSE_COPY name=Storage_Mapping-0004fb0000130000e02ecd47d4a702db vmDiskMapping=0004fb0000130000e02ecd47d4a702db repository=repotarget on VmCloneCustomizer name=menlnxolasc01-move-to-repotarget-20200122-1532
- OVM> create VmCloneStorageMapping cloneType=SPARSE_COPY name=Storage_Mapping-0004fb0000130000e02ecd47d4a702db vmDiskMapping=0004fb0000130000e02ecd47d4a702db repository=repotarget on VmCloneCustomizer name=menlnxolasc01-move-to-repotarget-20200122-1532
- Command: create VmCloneStorageMapping cloneType=SPARSE_COPY name=Storage_Mapping-0004fb0000130000e02ecd47d4a702db vmDiskMapping=0004fb0000130000e02ecd47d4a702db repository=repotarget on VmCloneCustomizer name=menlnxolasc01-move-to-repotarget-20200122-1532
- Status: Success
- Time: 2020-01-22 15:32:40,575 CET
- JobId: 1579703560141
- Data:
- id:0004fb00001300007064c689d97969a0 name:Storage_Mapping-0004fb0000130000e02ecd47d4a702db
- OVM> Connection closed.
- + for diskid in `echo "$DISK_IDS"`
- ++ echo 'OVM> list VirtualDisk
- Command: list VirtualDisk
- Status: Success
- Time: 2020-01-22 15:32:25,911 CET
- Data:
- id:0004fb000012000015e3c500556ef3db.img name:dsk_oracleDb
- id:cfdd509d3b1b473ba44a422028a6dd28.img name:Oracle12102DBRAC_x86_64-xvdb.img
- id:0004fb0000120000ba1d796b651c3cf9.img name:ASM5
- id:ecc77d7e49924b3b9696c26ebc72eb0b.img name:System.img
- id:0004fb0000120000a4cf9b9e6d675858.img name:dsk_menlnxoltst01 (5)
- id:0004fb0000120000fc5659370b9d5da7.img name:system (10)
- id:0004fb0000120000c2d6e30e18044413.img name:ASM1
- id:0004fb0000120000d9603d6d7dd60ab5.img name:ASM4
- id:0004fb0000120000509ab65106d48e42.img name:Hdisk01
- id:0004fb00001200002104cd7067109ca0.img name:ASM3
- id:0004fb0000120000aa2638cd3c824268.img name:ASM2
- id:0004fb0000120000d58d1f3ecf501154.img name:dsk_OracleOASDB
- id:0004fb0000120000cb3ba17d1d09dbc0.img name:ASM4 (6)
- id:0004fb00001200003fc571b32011828d.img name:Oracle12102DBRAC_x86_64-xvdb.img (6)
- id:0004fb0000120000d4907b209fc7++ grep -c 0004fb0000120000a4cf9b9e6d675858.img
- 41d1.img name:ASM1 (6)
- id:0004fb0000120000c5ea399916df9e4d.img name:system (6)
- id:0004fb00001200004250282a966f8893.img name:obi12bc_disk01 (2)
- id:0004fb00001200002d8245a9c8730b52.img name:ASM5 (6)
- id:0004fb000012000029978c93135cdd5b.img name:ASM2 (6)
- id:0004fb000012000068081c7e5bf31531.img name:System.img (6)
- id:0004fb0000120000875183fd98635223.img name:ASM3 (6)
- id:0004fb0000120000e53b054aa0f7d1fc.img name:system (2)
- id:0004fb0000120000122c3a12efca59ec.img name:system (4)
- OVM> Connection closed.'
- + isvirtual=1
- VmDiskMapping 1 = 0004fb0000130000e02ecd47d4a702db [Mapping for disk Id (0004fb0000120000fc5659370b9d5da7.img)]
- VmDiskMapping 2 = 0004fb00001300004788633c58b4dbd8 [Mapping for disk Id (0004fb0000120000a4cf9b9e6d675858.img)]'
- ++ grep 0004fb0000120000a4cf9b9e6d675858.img
- ++ awk '{print $5}'
- + diskmapping=0004fb00001300004788633c58b4dbd8
- + '[' 1 -lt 1 ']'
- ++ ssh admin@menlnxoravmm -p 10000 show virtualdisk id=0004fb0000120000a4cf9b9e6d675858.img
- ++ grep 'Repository Id ='
- ++ cut -d '[' -f2
- ++ cut -d ']' -f1
- + reponame=MyRepoOvmTst
- + '[' MyRepoOvmTst = repotarget ']'
- + ssh admin@menlnxoravmm -p 10000 create VmCloneStorageMapping cloneType=SPARSE_COPY name=Storage_Mapping-0004fb00001300004788633c58b4dbd8 vmDiskMapping=0004fb00001300004788633c58b4dbd8 repository=repotarget on VmCloneCustomizer name=menlnxolasc01-move-to-repotarget-20200122-1532
- OVM> create VmCloneStorageMapping cloneType=SPARSE_COPY name=Storage_Mapping-0004fb00001300004788633c58b4dbd8 vmDiskMapping=0004fb00001300004788633c58b4dbd8 repository=repotarget on VmCloneCustomizer name=menlnxolasc01-move-to-repotarget-20200122-1532
- Command: create VmCloneStorageMapping cloneType=SPARSE_COPY name=Storage_Mapping-0004fb00001300004788633c58b4dbd8 vmDiskMapping=0004fb00001300004788633c58b4dbd8 repository=repotarget on VmCloneCustomizer name=menlnxolasc01-move-to-repotarget-20200122-1532
- Status: Success
- Time: 2020-01-22 15:32:41,504 CET
- JobId: 1579703561293
- Data:
- id:0004fb00001300007064a43832f0d376 name:Storage_Mapping-0004fb00001300004788633c58b4dbd8
- OVM> Connection closed.
- ++ grep 'Vnic .* ='
- ++ echo 'OVM> show vm name=menlnxolasc01
- Command: show vm name=menlnxolasc01
- Status: Success
- Time: 2020-01-22 15:32:25,460 CET
- Data:
- Status = Stopped
- Memory (MB) = 8192
- Max. Memory (MB) = 16384
- Processors = 4
- Max. Processors = 8
- Priority = 50
- Processor Cap = 100
- High Availability = No
- Operating System = Oracle Linux 6
- Mouse Type = OS Default
- Domain Type = Xen PVM
- Keymap = en-us
- Start Policy = Use Pool Policy
- Origin = ftp://?uname?:?pwd?@10.1.3.93/../OVM_OL6U8_x86_64_PVM.ova
- Disk Limit = 104
- Huge Pages Enabled = No
- Config File Absolute Path = /dev/mapper/3600507630081023be800000000000136/VirtualMachines/0004fb00000600009855697447447620/vm.cfg
- Config File Mounted Path = /OVS/Repositories/0004fb00000300001676a3a8e389505f/VirtualMachines/0004fb00000600009855697447447620/vm.cfg
- Server = 31:36:36:36:32:36:5a:43:4a:33:32:39:30:33:33:37 [menlnxovmtst]
- Server Pool = 0004fb000002000095437b56c59fc329 [OvmTestPool]
- Repository = 0004fb00000300001676a3a8e389505f [MyRepoOvmTst]
- Vnic 1 = 0004fb0000070000c94d3aa01fd314d0 [00:21:f6:25:3f:08]
- VmDiskMapping 1 = 0004fb0000130000e02ecd47d4a702db [Mapping for disk Id (0004fb0000120000fc5659370b9d5da7.img)]
- VmDiskMapping 2 = 0004fb00001300004788633c58b4dbd8 [Mapping for disk Id (0004fb0000120000a4cf9b9e6d675858.img)]
- VmCloneCustomizer 1 = 0004fb00001300008a64033fe03c2da6 [menlnxolasc01-move-to-repotarget-20200114-1231]
- VmCloneCustomizer 2 = 0004fb000013000064a05049250b3016 [menlnxolasc01-move-to-MyRepoOvmTst-20200114-1543]
- VmCloneCustomizer 3 = 0004fb00001300005bda1155c5c284c9 [menlnxolasc01-move-to-repotarget-20200114-1620]
- VmCloneCustomizer 4 = 0004fb000013000093f619e4551e56fc [menlnxolasc01-move-to-MyRepoOvmTst-20200115-0845]
- VmCloneCustomizer 5 = 0004fb00001300001e07ab5280e49133 [menlnxolasc01-move-to-MyRepoOvmTst-20200121-1534]
- Restart Action On Crash = Restart
- Id = 0004fb00000600009855697447447620 [menlnxolasc01]
- Name = menlnxolasc01
- Description = Server name menlnxolasc01
- ip address 10.1.24.160
- Locked = false
- DeprecatedAttrs = [Huge Pages Enabled (Deprecated for PV guest)]
- OVM> Connection closed.'
- ++ cut -d = -f2
- ++ cut -d '[' -f1
- ++ sed -e 's/ //g'
- + NETWORK_IDS=0004fb0000070000c94d3aa01fd314d0
- ++ echo 0004fb0000070000c94d3aa01fd314d0
- + for vnicid in `echo "$NETWORK_IDS"`
- ++ ssh admin@menlnxoravmm -p 10000 show vnic id=0004fb0000070000c94d3aa01fd314d0
- + vnicdetails='OVM> show vnic id=0004fb0000070000c94d3aa01fd314d0
- Command: show vnic id=0004fb0000070000c94d3aa01fd314d0
- Status: Success
- Time: 2020-01-22 15:32:41,825 CET
- Data:
- Mac Address = 00:21:f6:25:3f:08
- Ip Address 1 = 10.1.24.160
- Ip Address 2 = fe80::221:f6ff:fe25:3f08
- Interface Name = eth0
- Vm = 0004fb00000600009855697447447620 [menlnxolasc01]
- Network = 102291e43c [Internal01]
- Id = 0004fb0000070000c94d3aa01fd314d0 [00:21:f6:25:3f:08]
- Name = 00:21:f6:25:3f:08
- Locked = false
- OVM> Connection closed.'
- ++ echo 'OVM> show vnic id=0004fb0000070000c94d3aa01fd314d0
- Command: show vnic id=0004fb0000070000c94d3aa01fd314d0
- Status: Success
- Time: 2020-01-22 15:32:41,825 CET
- Data:
- Mac Address = 00:21:f6:25:3f:08
- Ip Address 1 = 10.1.24.160
- Ip Address 2 = fe80::221:f6ff:fe25:3f08
- Interface Name = eth0
- Vm = 0004fb00000600009855697447447620 [menlnxolasc01]
- Network = 102291e43c [Internal01]
- Id = 0004fb0000070000c94d3aa01fd314d0 [00:21:f6:25:3f:08]
- Name = 00:21:f6:25:3f:08
- Locked = false
- OVM> Connection closed.'
- ++ grep 'Mac Address ='
- ++ cut -d = -f2
- ++ sed -e 's/ //g'
- + vnicname=00:21:f6:25:3f:08
- ++ echo 'OVM> show vnic id=0004fb0000070000c94d3aa01fd314d0
- Command: show vnic id=0004fb0000070000c94d3aa01fd314d0
- Status: Success
- Time: 2020-01-22 15:32:41,825 CET
- Data:
- Mac Address = 00:21:f6:25:3f:08
- Ip Address 1 = 10.1.24.160
- Ip Address 2 = fe80::221:f6ff:fe25:3f08
- Interface Name = eth0
- Vm = 0004fb00000600009855697447447620 [menlnxolasc01]
- Network = 102291e43c [Internal01]
- Id = 0004fb0000070000c94d3aa01fd314d0 [00:21:f6:25:3f:08]
- Name = 00:21:f6:25:3f:08
- Locked = false
- OVM> Connection closed.'
- ++ cut -d = -f2
- ++ cut -d '[' -f1
- ++ sed -e 's/ //g'
- ++ grep 'Network ='
- + vnicnetworkid=102291e43c
- + ssh admin@menlnxoravmm -p 10000 create VmCloneNetworkMapping name=NetworkMapping-0004fb0000070000c94d3aa01fd314d0 network=102291e43c vnic=0004fb0000070000c94d3aa01fd314d0 on VmCloneCustomizer name=menlnxolasc01-move-to-repotarget-20200122-1532
- OVM> create VmCloneNetworkMapping name=NetworkMapping-0004fb0000070000c94d3aa01fd314d0 network=102291e43c vnic=0004fb0000070000c94d3aa01fd314d0 on VmCloneCustomizer name=menlnxolasc01-move-to-repotarget-20200122-1532
- Command: create VmCloneNetworkMapping name=NetworkMapping-0004fb0000070000c94d3aa01fd314d0 network=102291e43c vnic=0004fb0000070000c94d3aa01fd314d0 on VmCloneCustomizer name=menlnxolasc01-move-to-repotarget-20200122-1532
- Status: Success
- Time: 2020-01-22 15:32:42,485 CET
- JobId: 1579703562266
- Data:
- id:0004fb00001300002ceea145d56d6e8e name:NetworkMapping-0004fb0000070000c94d3aa01fd314d0
- OVM> Connection closed.
- + each_cycle=30
- + sleep 30
- + ssh admin@menlnxoravmm -p 10000 moveVmToRepository Vm name=menlnxolasc01 CloneCustomizer=menlnxolasc01-move-to-repotarget-20200122-1532 targetRepository=repotarget
- OVM> moveVmToRepository Vm name=menlnxolasc01 CloneCustomizer=menlnxolasc01-move-to-repotarget-20200122-1532 targetRepository=repotarget
- ++ ssh admin@menlnxoravmm -p 10000 list job
- ++ grep -i 'Move Vm'
- ++ grep menlnxolasc01
- ++ head -1
- ++ cut -d : -f2
- ++ cut -d ' ' -f1
- + job_id=
- + done=0
- + i=30
- + '[' 0 -lt 1 ']'
- + echo '==> Waiting for Vm moving to complete......30 seconds'
- ==> Waiting for Vm moving to complete......30 seconds
- + let i=i+30
- + sleep 30
- ++ ssh admin@menlnxoravmm -p 10000 show job id=
- ++ grep -c 'Summary Done = Yes'
- + done=0
- + '[' 0 -lt 1 ']'
- + echo '==> Waiting for Vm moving to complete......60 seconds'
- ==> Waiting for Vm moving to complete......60 seconds
- + let i=i+30
- + sleep 30
- ++ ssh admin@menlnxoravmm -p 10000 show job id=
- ++ grep -c 'Summary Done = Yes'
- + done=0
- + '[' 0 -lt 1 ']'
- + echo '==> Waiting for Vm moving to complete......90 seconds'
- ==> Waiting for Vm moving to complete......90 seconds
- + let i=i+30
- + sleep 30
- ++ ssh admin@menlnxoravmm -p 10000 show job id=
- ++ grep -c 'Summary Done = Yes'
- + done=0
- + '[' 0 -lt 1 ']'
- + echo '==> Waiting for Vm moving to complete......120 seconds'
- ==> Waiting for Vm moving to complete......120 seconds
- + let i=i+30
- + sleep 30
- ++ ssh admin@menlnxoravmm -p 10000 show job id=
- ++ grep -c 'Summary Done = Yes'
- + done=0
- + '[' 0 -lt 1 ']'
- + echo '==> Waiting for Vm moving to complete......150 seconds'
- ==> Waiting for Vm moving to complete......150 seconds
- + let i=i+30
- + sleep 30
- ++ ssh admin@menlnxoravmm -p 10000 show job id=
- ++ grep -c 'Summary Done = Yes'
- + done=0
- + '[' 0 -lt 1 ']'
- + echo '==> Waiting for Vm moving to complete......180 seconds'
- ==> Waiting for Vm moving to complete......180 seconds
- + let i=i+30
- + sleep 30
- ++ ssh admin@menlnxoravmm -p 10000 show job id=
- ++ grep -c 'Summary Done = Yes'
- + done=0
- + '[' 0 -lt 1 ']'
- + echo '==> Waiting for Vm moving to complete......210 seconds'
- ==> Waiting for Vm moving to complete......210 seconds
- + let i=i+30
- + sleep 30
- ++ ssh admin@menlnxoravmm -p 10000 show job id=
- ++ grep -c 'Summary Done = Yes'
- + done=0
- + '[' 0 -lt 1 ']'
- + echo '==> Waiting for Vm moving to complete......240 seconds'
- ==> Waiting for Vm moving to complete......240 seconds
- + let i=i+30
- + sleep 30
- ++ ssh admin@menlnxoravmm -p 10000 show job id=
- ++ grep -c 'Summary Done = Yes'
- + done=0
- + '[' 0 -lt 1 ']'
- + echo '==> Waiting for Vm moving to complete......270 seconds'
- ==> Waiting for Vm moving to complete......270 seconds
- + let i=i+30
- + sleep 30
- ++ ssh admin@menlnxoravmm -p 10000 show job id=
- ++ grep -c 'Summary Done = Yes'
- + done=0
- + '[' 0 -lt 1 ']'
- + echo '==> Waiting for Vm moving to complete......300 seconds'
- ==> Waiting for Vm moving to complete......300 seconds
- + let i=i+30
- + sleep 30
- ++ ssh admin@menlnxoravmm -p 10000 show job id=
- ++ grep -c 'Summary Done = Yes'
- + done=0
- + '[' 0 -lt 1 ']'
- + echo '==> Waiting for Vm moving to complete......330 seconds'
- ==> Waiting for Vm moving to complete......330 seconds
- + let i=i+30
- + sleep 30
- ++ ssh admin@menlnxoravmm -p 10000 show job id=
- ++ grep -c 'Summary Done = Yes'
- + done=0
- + '[' 0 -lt 1 ']'
- + echo '==> Waiting for Vm moving to complete......360 seconds'
- ==> Waiting for Vm moving to complete......360 seconds
- + let i=i+30
- + sleep 30
- ++ ssh admin@menlnxoravmm -p 10000 show job id=
- ++ grep -c 'Summary Done = Yes'
- + done=0
- + '[' 0 -lt 1 ']'
- + echo '==> Waiting for Vm moving to complete......390 seconds'
- ==> Waiting for Vm moving to complete......390 seconds
- + let i=i+30
- + sleep 30
- ++ ssh admin@menlnxoravmm -p 10000 show job id=
- ++ grep -c 'Summary Done = Yes'
- + done=0
- + '[' 0 -lt 1 ']'
- + echo '==> Waiting for Vm moving to complete......420 seconds'
- ==> Waiting for Vm moving to complete......420 seconds
- + let i=i+30
- + sleep 30
- ++ ssh admin@menlnxoravmm -p 10000 show job id=
- ++ grep -c 'Summary Done = Yes'
- + done=0
- + '[' 0 -lt 1 ']'
- + echo '==> Waiting for Vm moving to complete......450 seconds'
- ==> Waiting for Vm moving to complete......450 seconds
- + let i=i+30
- + sleep 30
- ++ ssh admin@menlnxoravmm -p 10000 show job id=
- ++ grep -c 'Summary Done = Yes'
- + done=0
- + '[' 0 -lt 1 ']'
- + echo '==> Waiting for Vm moving to complete......480 seconds'
- ==> Waiting for Vm moving to complete......480 seconds
- + let i=i+30
- + sleep 30
- ++ ssh admin@menlnxoravmm -p 10000 show job id=
- ++ grep -c 'Summary Done = Yes'
- + done=0
- + '[' 0 -lt 1 ']'
- + echo '==> Waiting for Vm moving to complete......510 seconds'
- ==> Waiting for Vm moving to complete......510 seconds
- + let i=i+30
- + sleep 30
- ++ ssh admin@menlnxoravmm -p 10000 show job id=
- ++ grep -c 'Summary Done = Yes'
- + done=0
- + '[' 0 -lt 1 ']'
- + echo '==> Waiting for Vm moving to complete......540 seconds'
- ==> Waiting for Vm moving to complete......540 seconds
- + let i=i+30
- + sleep 30
- ++ ssh admin@menlnxoravmm -p 10000 show job id=
- ++ grep -c 'Summary Done = Yes'
- + done=0
- + '[' 0 -lt 1 ']'
- + echo '==> Waiting for Vm moving to complete......570 seconds'
- ==> Waiting for Vm moving to complete......570 seconds
- + let i=i+30
- + sleep 30
- ++ ssh admin@menlnxoravmm -p 10000 show job id=
- ++ grep -c 'Summary Done = Yes'
- + done=0
- + '[' 0 -lt 1 ']'
- + echo '==> Waiting for Vm moving to complete......600 seconds'
- ==> Waiting for Vm moving to complete......600 seconds
- + let i=i+30
- + sleep 30
- ++ ssh admin@menlnxoravmm -p 10000 show job id=
- ++ grep -c 'Summary Done = Yes'
- + done=0
- + '[' 0 -lt 1 ']'
- + echo '==> Waiting for Vm moving to complete......630 seconds'
- ==> Waiting for Vm moving to complete......630 seconds
- + let i=i+30
- + sleep 30
- ++ ssh admin@menlnxoravmm -p 10000 show job id=
- ++ grep -c 'Summary Done = Yes'
- + done=0
- + '[' 0 -lt 1 ']'
- + echo '==> Waiting for Vm moving to complete......660 seconds'
- ==> Waiting for Vm moving to complete......660 seconds
- + let i=i+30
- + sleep 30
- Command: moveVmToRepository Vm name=menlnxolasc01 CloneCustomizer=menlnxolasc01-move-to-repotarget-20200122-1532 targetRepository=repotarget
- Status: Success
- Time: 2020-01-22 15:44:15,393 CET
- JobId: 1579703563002
- OVM> Connection closed.
- ++ ssh admin@menlnxoravmm -p 10000 show job id=
- ++ grep -c 'Summary Done = Yes'
- + done=0
- + '[' 0 -lt 1 ']'
- + echo '==> Waiting for Vm moving to complete......690 seconds'
- ==> Waiting for Vm moving to complete......690 seconds
- + let i=i+30
- + sleep 30
- ++ ssh admin@menlnxoravmm -p 10000 show job id=
- ++ grep -c 'Summary Done = Yes'
- + done=0
- + '[' 0 -lt 1 ']'
- + echo '==> Waiting for Vm moving to complete......720 seconds'
- ==> Waiting for Vm moving to complete......720 seconds
- + let i=i+30
- + sleep 30
- ++ ssh admin@menlnxoravmm -p 10000 show job id=
- ++ grep -c 'Summary Done = Yes'
- + done=0
- + '[' 0 -lt 1 ']'
- + echo '==> Waiting for Vm moving to complete......750 seconds'
- ==> Waiting for Vm moving to complete......750 seconds
- + let i=i+30
- + sleep 30
- ++ ssh admin@menlnxoravmm -p 10000 show job id=
- ++ grep -c 'Summary Done = Yes'
- + done=0
- + '[' 0 -lt 1 ']'
- + echo '==> Waiting for Vm moving to complete......780 seconds'
- ==> Waiting for Vm moving to complete......780 seconds
- + let i=i+30
- + sleep 30
- ++ ssh admin@menlnxoravmm -p 10000 show job id=
- ++ grep -c 'Summary Done = Yes'
- + done=0
- + '[' 0 -lt 1 ']'
- + echo '==> Waiting for Vm moving to complete......810 seconds'
- ==> Waiting for Vm moving to complete......810 seconds
- + let i=i+30
- + sleep 30
- ++ ssh admin@menlnxoravmm -p 10000 show job id=
- ++ grep -c 'Summary Done = Yes'
- + done=0
- + '[' 0 -lt 1 ']'
- + echo '==> Waiting for Vm moving to complete......840 seconds'
- ==> Waiting for Vm moving to complete......840 seconds
- + let i=i+30
- + sleep 30
- ++ ssh admin@menlnxoravmm -p 10000 show job id=
- ++ grep -c 'Summary Done = Yes'
- + done=0
- + '[' 0 -lt 1 ']'
- + echo '==> Waiting for Vm moving to complete......870 seconds'
- ==> Waiting for Vm moving to complete......870 seconds
- + let i=i+30
- + sleep 30
- ++ ssh admin@menlnxoravmm -p 10000 show job id=
- ++ grep -c 'Summary Done = Yes'
- + done=0
- + '[' 0 -lt 1 ']'
- + echo '==> Waiting for Vm moving to complete......900 seconds'
- ==> Waiting for Vm moving to complete......900 seconds
- + let i=i+30
- + sleep 30
- ++ ssh admin@menlnxoravmm -p 10000 show job id=
- ++ grep -c 'Summary Done = Yes'
- + done=0
- + '[' 0 -lt 1 ']'
- + echo '==> Waiting for Vm moving to complete......930 seconds'
- ==> Waiting for Vm moving to complete......930 seconds
- + let i=i+30
- + sleep 30
- ++ ssh admin@menlnxoravmm -p 10000 show job id=
- ++ grep -c 'Summary Done = Yes'
- + done=0
- + '[' 0 -lt 1 ']'
- + echo '==> Waiting for Vm moving to complete......960 seconds'
- ==> Waiting for Vm moving to complete......960 seconds
- + let i=i+30
- + sleep 30
- ++ ssh admin@menlnxoravmm -p 10000 show job id=
- ++ grep -c 'Summary Done = Yes'
- + done=0
- + '[' 0 -lt 1 ']'
- + echo '==> Waiting for Vm moving to complete......990 seconds'
- ==> Waiting for Vm moving to complete......990 seconds
- + let i=i+30
- + sleep 30
- ++ ssh admin@menlnxoravmm -p 10000 show job id=
- ++ grep -c 'Summary Done = Yes'
- + done=0
- + '[' 0 -lt 1 ']'
- + echo '==> Waiting for Vm moving to complete......1020 seconds'
- ==> Waiting for Vm moving to complete......1020 seconds
- + let i=i+30
- + sleep 30
- ++ ssh admin@menlnxoravmm -p 10000 show job id=
- ++ grep -c 'Summary Done = Yes'
- + done=0
- + '[' 0 -lt 1 ']'
- + echo '==> Waiting for Vm moving to complete......1050 seconds'
- ==> Waiting for Vm moving to complete......1050 seconds
- + let i=i+30
- + sleep 30
- ++ ssh admin@menlnxoravmm -p 10000 show job id=
- ++ grep -c 'Summary Done = Yes'
- + done=0
- + '[' 0 -lt 1 ']'
- + echo '==> Waiting for Vm moving to complete......1080 seconds'
- ==> Waiting for Vm moving to complete......1080 seconds
- + let i=i+30
- + sleep 30
- ++ ssh admin@menlnxoravmm -p 10000 show job id=
- ++ grep -c 'Summary Done = Yes'
- + done=0
- + '[' 0 -lt 1 ']'
- + echo '==> Waiting for Vm moving to complete......1110 seconds'
- ==> Waiting for Vm moving to complete......1110 seconds
- + let i=i+30
- + sleep 30
- ^Z
- [1]+ Stopped sh -x ./MoveVm.sh Menovs16 menlnxoravmm menlnxolasc01 OvmTestPool repotarget N N
- [nardia@andrea MoveVm_0.3]$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement