?
Solved

Dom0 windows server 2003 lvm resize

Posted on 2011-02-22
1
Medium Priority
?
651 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 2000 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

7 Extremely Useful Linux Commands for Beginners

Just getting started with Linux? Here's a quick start guide that has 7 commands that we believe will come in handy.

Question has a verified solution.

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

It Is not possible to enable LLDP in vSwitch(at least is not supported by VMware), so in this article we will enable this, and also go trough how to enabled CDP and how to get this information in vSwitches and also in vDS.
Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month8 days, 15 hours left to enroll

764 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