# increasing disk size after increasing virtual disk

**URL:** https://forums.suse.com/t/increasing-disk-size-after-increasing-virtual-disk/23240
**Category:** SLES Configure-Administer
**Created:** [October 25, 2012, 4:32pm UTC](https://forums.suse.com/t/increasing-disk-size-after-increasing-virtual-disk/23240 "2012-10-25T16:32:25Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![System1](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@System1](https://forums.suse.com/u/System1)
#### Post date: [October 25, 2012, 4:32pm UTC](https://forums.suse.com/t/increasing-disk-size-after-increasing-virtual-disk/23240/1 "2012-10-25T16:32:25Z")

</div>

ZCM 11 Appliance which runs on SLES 11. The appliance is installed on  
VMWare 4. When I installed it, I created a second virtual disk for  
/var/opt/novell/zenworks. I need to increase that disk now.  
(Unfortunately, I don’t have enough room to just create a newer larger  
one and move everything over). I know how to increase the virtual  
disk from the Vsphere client. But how do I tell SLES to expand that  
disk to use the added space?

Thanks,  
Ken

---

<div class="post-metadata">

### Author: ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)
#### Post date: [October 25, 2012, 5:27pm UTC](https://forums.suse.com/t/increasing-disk-size-after-increasing-virtual-disk/23240/2 "2012-10-25T17:27:55Z")

</div>

Hi Ken,

as always, it depends.

You may need to restart the VM in order to pick up the new size of the virtual disk.

If the complete disk was used for the file system (without partition table), then depending on the type of file system in use, YaST may be able to simply expand the FS to the new physical disk size.

If you use a single partition on that disk, you’ll need to extend the size of that partition (can YaST do that for you? I don’t know, it’s been ages I dealt with partition-based file systems :[ ) and after that, use YaST to resize the file system to the new size of the underlying partition.

If you’re using LVM,…

If…

…

We’d need more details to be specific.

Regards,  
Jens

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)
#### Post date: [October 25, 2012, 5:51pm UTC](https://forums.suse.com/t/increasing-disk-size-after-increasing-virtual-disk/23240/3 "2012-10-25T17:51:33Z")

</div>

On Thu, 25 Oct 2012 14:34:02 GMT, jmozdzen  
[jmozdzen@no-mx.forums.suse.com](mailto:jmozdzen@no-mx.forums.suse.com) wrote:  
[color=blue]

> Hi Ken,
> 
> as always, it depends.
> 
> You may need to restart the VM in order to pick up the new size of the  
> virtual disk.
> 
> If the complete disk was used for the file system (without partition  
> table), then depending on the type of file system in use, YaST may be  
> able to simply expand the FS to the new physical disk size.
> 
> If you use a single partition on that disk, you’ll need to extend the  
> size of that partition (can YaST do that for you? I don’t know, it’s  
> been ages I dealt with partition-based file systems :[ ) and after that,  
> use YaST to resize the file system to the new size of the underlying  
> partition.
> 
> If you’re using LVM,…
> 
> If…
> 
> …
> 
> We’d need more details to be specific.[/color]

Sorry, I was a bit vague. I’m still learning Linux, so please bear  
with me.

The ZCM appliance installation crated a 65 GB disk. I created a  
second virtual disk for it and rebooted so it was available. Then in  
Yast Expert Partitioner, I selected the newly created disk and on the  
partition tab, selected Add, Primary partition, used the entire disk  
and formated it with Ext3.

So if I expand the virtual disk, can I just expand that primary  
partition or what steps do I take?

Thanks for the help!  
Ken

---

<div class="post-metadata">

### Author: ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)
#### Post date: [October 25, 2012, 6:25pm UTC](https://forums.suse.com/t/increasing-disk-size-after-increasing-virtual-disk/23240/4 "2012-10-25T18:25:51Z")

</div>

Hi Ken,

yes, you’re basically right. Changing the size of a partition requires rereading the partition table by the kernel, which AFAIK can only be done when there are no mounted partitions etc on the disk.

So you’d basically stop all services using that file system (or go into single user mode, if that’s easier to handle), umount the file system, resize the partition, resize the file system, mount the partition, restart the services. Partition and file system modification can be done with YaST, AFAICT.

Regards,  
Jens

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)
#### Post date: [October 25, 2012, 10:27pm UTC](https://forums.suse.com/t/increasing-disk-size-after-increasing-virtual-disk/23240/5 "2012-10-25T22:27:00Z")

</div>

On Thu, 25 Oct 2012 15:34:01 GMT, jmozdzen  
[jmozdzen@no-mx.forums.suse.com](mailto:jmozdzen@no-mx.forums.suse.com) wrote:  
[color=blue]

> Hi Ken,
> 
> yes, you’re basically right. Changing the size of a partition requires  
> rereading the partition table by the kernel, which AFAIK can only be  
> done when there are no mounted partitions etc on the disk.
> 
> So you’d basically stop all services using that file system (or go into  
> single user mode, if that’s easier to handle), umount the file system,  
> resize the partition, resize the file system, mount the partition,  
> restart the services. Partition and file system modification can be done  
> with YaST, AFAICT.
> 
> Regards,  
> Jens[/color]

Thanks! I’ll give it a shot.

Regards,  
Ken

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)
#### Post date: [October 26, 2012, 3:34pm UTC](https://forums.suse.com/t/increasing-disk-size-after-increasing-virtual-disk/23240/6 "2012-10-26T15:34:21Z")

</div>

On Thu, 25 Oct 2012 15:34:01 GMT, jmozdzen  
[jmozdzen@no-mx.forums.suse.com](mailto:jmozdzen@no-mx.forums.suse.com) wrote:  
[color=blue]

> yes, you’re basically right. Changing the size of a partition requires  
> rereading the partition table by the kernel, which AFAIK can only be  
> done when there are no mounted partitions etc on the disk.[/color]

Jens,

Everything worked great. I shutdown the ZCM services, expanded the  
virtual disk from my vSphere client, and then expanded the drive in  
SLES. To do the steps in SLES, I used  
[http://www.howtoforge.com/linux\_resizing\_ext3\_partitions\_p2](http://www.howtoforge.com/linux_resizing_ext3_partitions_p2) with a few  
modifications.

Thanks for the pointers.

Regards,  
Ken

---

<div class="post-metadata">

### Author: ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)
#### Post date: [October 26, 2012, 9:47pm UTC](https://forums.suse.com/t/increasing-disk-size-after-increasing-virtual-disk/23240/7 "2012-10-26T21:47:21Z")

</div>

Hi Ken,

good to know it worked for you, and thanks for the feedback - that’s the kind of response we forumers feed on 😉

Regards,  
Jens
