Linux LVM users
 help / color / mirror / Atom feed
* [linux-lvm] Problem in LVM settings in VMware
@ 2008-08-04 14:35 Jason Lee
  2008-08-05 17:37 ` Ian Burnett
  0 siblings, 1 reply; 2+ messages in thread
From: Jason Lee @ 2008-08-04 14:35 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 999 bytes --]

Hi,

I am quite new to VMware and recently installed a VM of Fedora in my Host OS
Win XP. In this VM, I have couple of VMDK files which comes together as
parts of vmdk file. Each vmdk file is about 2-3GB size and I have 4 of them
totalling to 8-12GB. However, currently, I am facing shortage of space.

What I did was freeing up some space from my Host OS and in the VM, I can
see this "unallocated space" partition. So, I have no idea how to proceed
with these unallocated space partition. Ultimate goal is to absorb this
unallocated partition as similar LVM so these current LVM can expand beyond
the existing size.

I am currently using VM server 1.0.5 Build and LVM2. I tried to find several
articles from the net but that didnt help due to my specific problem.
I tried Pvdisplay and only able to see one VG even though it has various
parts of vmdk. Besides, Im not sure whether issuing Pvcreate for this newly
created partition would help.

Anyone could please advise me.

Thanks alot.

Rgrds,

[-- Attachment #2: Type: text/html, Size: 1079 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [linux-lvm] Problem in LVM settings in VMware
  2008-08-04 14:35 [linux-lvm] Problem in LVM settings in VMware Jason Lee
@ 2008-08-05 17:37 ` Ian Burnett
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Burnett @ 2008-08-05 17:37 UTC (permalink / raw)
  To: LVM general discussion and development

Jason Lee wrote:
> Hi,
>
> I am quite new to VMware and recently installed a VM of Fedora in my 
> Host OS Win XP. In this VM, I have couple of VMDK files which comes 
> together as parts of vmdk file. Each vmdk file is about 2-3GB size and 
> I have 4 of them totalling to 8-12GB. However, currently, I am facing 
> shortage of space.
>
> What I did was freeing up some space from my Host OS and in the VM, I 
> can see this "unallocated space" partition. So, I have no idea how to 
> proceed with these unallocated space partition. Ultimate goal is to 
> absorb this unallocated partition as similar LVM so these current LVM 
> can expand beyond the existing size.
The VMware image appears to the guest OS as a whole machine complete 
with what look like standard disks. In the case of a Linux guest OS, any 
allocated disk space will appear as /dev/sd? devices, which will require 
partitioning, marking these partitions as type "Linux LVM" and then 
initialising with pvcreate. In this respect there's nothing special 
about your setup and any of the on-line LVM guides should work in this 
case.

If your host OS is reporting unallocated space, then you need to make 
that space available to WinXP first, then VMware, then add it to the 
Linux guest image as an extra or larger drive. How you do that is a 
question for a WinXP or VMware newsgroup.

Try to separate in your mind the difference between the Linux guest OS 
and the Windows host OS and the disks that they are viewing. The Windows 
host OS sees the real physical drives spinning in your system (assuming 
no RAID controller stuff, etc.) The Linux guest OS simply knows about 
what VMware has told it about. The data stored by the Linux image just 
happens to be stored in a bunch of vmdk files in the WinXP filesystem.

The ultimate goal should certainly be achievable - just a question of 
working out who knows about this "unallocated space".
> I am currently using VM server 1.0.5 Build and LVM2. I tried to find 
> several articles from the net but that didnt help due to my specific 
> problem.
> I tried Pvdisplay and only able to see one VG even though it has 
> various parts of vmdk. Besides, Im not sure whether issuing Pvcreate 
> for this newly created partition would help.
Have you tried pvcreate? What happened? I know Microsoft VirtualPC has a 
feature known as "scratch disks", which allows you to decide on VM 
shutdown whether to commit the changes made to the image or rollback to 
the last time the VM started. In effect you can completly trash the 
system, then quickly restore it to a known working state.

What disk devices does your Fedora system show? (fdisk -l) What physical 
volumes have you already created? (pvscan and pvdisplay).

Ian

-- 
Ian Burnett :: www.ianburnett.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-08-05 17:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-04 14:35 [linux-lvm] Problem in LVM settings in VMware Jason Lee
2008-08-05 17:37 ` Ian Burnett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox