Skip to main content

Posts

Uncompress tar.gz tar.bz2 the easy way.

Usually uncompressing a tar'ed compressed file requires the use of two utility and pipe '|' through each other. Today, I found an easy way to to that. Traditionally, to extract tar.bz2 , we use  bzip2 -cd files.tar.bz2 | tar xvf -    and so with .gz files the easy way is this way,

Upgrading to NexentaStor CE 3.1.3

Recently just upgraded my test NexentaStor CE from 3.1.2 to 3.1.3 (r9990). Here are the walkthru of the process upgrade. nmc@nx:/$ setup appliance upgrade Cleanup upgrade caches (note: cleanup is generally not required and can be skipped in most cases; if you say Yes, prepare to wait for software upgrade to complete a bit longer) ?  Yes   <=answer y You are about to upgrade the appliance software. Please be advised that by executing this operation you agree to be bound by the terms of the product license available at http://www.nexenta.com/nexentastor-licenses. This operation may take some time to check with the remote appliance's software repository. Proceed?  Yes <=answer y Checking repository sources. Please wait...

Virtualbox : Shrink VM disk

So you've finally succeeded running a windows virtual machine (VM) on your desktop. You play around the vm; copying files, installing & deleting applications and so on. After a while, you found out that your vm is using let say 20gb out of 100gb (which you set during creating the vm) disk but your local machine (host) report that you have used up 50gb. So how can you claim back that extra 30gb in your host ?

Why I Can't Move/Import VM in XenServer.

Ok this is what i found out, the metadata export/import via ' Backup, Restore and Update ' menu in xsconsole OR using ' xe vm-export filename=xxx metadata=true vm= ' will export all vm's metadata eventhough you've specify the vm in the latter, the former is ok because it is backup & restore tool. Problem happens when you want to restore the metadata or import to another xenserver. If you follow the method from 'Backup and Restore' in the reference guide, it should be ok if you're using pool because all pools are using shared storage; and if you don't use pool, your xenserver store all the VMs in the shared storage ONLY, means the Local SR is not use at all. This way, you wont face any problem. But, what if you have a mix of local & shared storage use. 

Ping in interval on Windows with commandline

How do you ping in interval in Windows ? This is how you do it. Just type this in Start => Run cmd /c "for /L %i in (1,0,2) do @ping 1.2.3.4 > nul & sleep 10" This would ping an address in interval of 10 seconds without echo the results but if you do then use this next command cmd /c "for /L %i in (1,0,2) do @ping 1.2.3.4 & sleep 10 " Notice the '>nul' is exclude. Happy trying and now you don't need all those fancy utilities.

XenServer 5.6 SP2

XenServer 5.6 SP2 just released. New features since 5.6 FP1 are : §    IntelliCache . Using XenServer with IntelliCache makes hosted Virtual Desktop Infrastructure deployments more cost-effective by enabling you to use a combination of shared storage and local storage. The load on the storage array is reduced and performance is enhanced. See the XenServer Service Pack 2 Installation Guide for more information on this feature. §    WorkLoad Balancing Installation Improvements . Choice of English or Japanese language available on installation screens. §    Local Storage Spans All Physical Volumnes . When EXT local storage is used (e.g. when the   Use thin provisioning   is selected in the host installer), on a host containing multiple physical disks, the local Storage Repository (SR) now spans all the disks in a single LVM volume group. §    Reset-on-boot VM behaviour . Disks with the   on-boot   option set to   re...