Solved

Dom0 windows server 2003 lvm resize

Posted on 2011-02-22
1
641 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 18

Accepted Solution

by:
TobiasHolm earned 500 total points
ID: 34958590
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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Is your company's data protection keeping pace with virtualization? Here are 7 dynamic ways to adapt to rapid breakthroughs in technology.
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

732 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