Solved

Dom0 windows server 2003 lvm resize

Posted on 2011-02-22
1
629 Views
Last Modified: 2012-05-11
I need to reduce the disk size allocated to a windows 2003 paravirtual lvm disk based vm.
Using Centos, using LVM to allocate disk to VMs (windows and linux VMs).
Windows VM is only one disk, only one ntfs partition on it.
I need to shrink ntfs partition in guest before resizing volume, but I am unable to boot from KNOPPIX live cd (iso), it hangs at "Booting kernel..."
My question: how-to successfully boot Knoppix cd (want to use it to resize windows partition).
Below is my vm config.

import os, re
arch = os.uname()[4]
if re.search('64', arch):
    arch_libdir = 'lib64'
else:
    arch_libdir = 'lib'

kernel = "/usr/lib/xen/boot/hvmloader"
builder='hvm'
memory = 2048   
shadow_memory = 8
name = "docushare"
vif = [ 'type=ioemu, mac=00:16:3E:56:B7:99,bridge=xenbr1,script=vif-bridge' ]
acpi = 1
apic = 1
disk = [ 'phy:/dev/raid/docusharewin,hda,w', 'file:/root/Desktop/knoppix.iso,hdc:cdrom,r'  ]
device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm'
boot = "d"
sdl = 0
vnc = 1
vncconsole=1
serial='pty'
usbdevice='tablet'
on_poweroff='destroy'
on_reboot='restart'
on_crash='restart'
0
Comment
Question by:markymarkmenard
1 Comment
 
LVL 18

Accepted Solution

by:
TobiasHolm earned 500 total points
Comment Utility
Hi!

You can try to boot from another CD to make the resize. Try "System Rescue" and run GParted. There are LVM tools on the CD as well.

http://www.sysresccd.org/Main_Page

Regards, Tobias
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Why should I virtualize?  It’s a question that’s asked often enough.  My response is usually “Why SHOULDN’T you virtualize?”
David Varnum recently wrote up his impressions of PRTG, based on a presentation by my colleague Christian at Tech Field Day at VMworld in Barcelona. Thanks David, for your detailed and honest evaluation!
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now