Solved

Dom0 windows server 2003 lvm resize

Posted on 2011-02-22
1
637 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
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

This is an issue that we can get adding / removing permissions in the vCSA 6.0. We can also have issues searching for users / groups in the AD (using your identify sources). This is how one of the ways to handle this issues and fix it.
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…

809 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