size not increasing after increasing disk

Discussions about using Solaris guests in VirtualBox.
Post Reply
tony10111
Posts: 44
Joined: 2. Apr 2018, 07:22

size not increasing after increasing disk

Post by tony10111 »

hi i did this

Code: Select all

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe modifyhd E:\nato\Solaris18c\Solaris18c.vdi --resize 200000
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
my space not increasing

Code: Select all

 df -h
 df -h
Filesystem             Size   Used  Available Capacity  Mounted on
rpool/ROOT/solaris     120G   2.9G       278M    92%    /
/devices                 0K     0K         0K     0%    /devices
/dev                     0K     0K         0K     0%    /dev
ctfs                     0K     0K         0K     0%    /system/contract
proc                     0K     0K         0K     0%    /proc
mnttab                   0K     0K         0K     0%    /etc/mnttab
swap                   4.0G   1.6M       4.0G     1%    /system/volatile
objfs                    0K     0K         0K     0%    /system/object
sharefs                  0K     0K         0K     0%    /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
                       3.2G   2.9G       278M    92%    /lib/libc.so.1
fd                       0K     0K         0K     0%    /dev/fd
rpool/ROOT/solaris/var
                       120G   229M       278M    46%    /var
swap                   4.0G     8K       4.0G     1%    /tmp
rpool/VARSHARE         120G   2.6M       278M     1%    /var/share
rpool/export           120G    32K       278M     1%    /export
rpool/export/home      120G    32K       278M     1%    /export/home
rpool/export/home/username
                       120G    38K       278M     1%    /export/home/username
rpool                  120G   4.5M       278M     2%    /rpool
rpool/VARSHARE/zones   120G    31K       278M     1%    /system/zones
rpool/u01              120G   113G       278M   100%    /u01
rpool/VARSHARE/pkg     120G    32K       278M     1%    /var/share/pkg
rpool/VARSHARE/pkg/repositories
                       120G    31K       278M     1%    /var/share/pkg/repositories

					   
					    df -h
Filesystem             Size   Used  Available Capacity  Mounted on
rpool/ROOT/solaris     120G   2.9G       278M    92%    /
/devices                 0K     0K         0K     0%    /devices
/dev                     0K     0K         0K     0%    /dev
ctfs                     0K     0K         0K     0%    /system/contract
proc                     0K     0K         0K     0%    /proc
mnttab                   0K     0K         0K     0%    /etc/mnttab
swap                   4.0G   1.6M       4.0G     1%    /system/volatile
objfs                    0K     0K         0K     0%    /system/object
sharefs                  0K     0K         0K     0%    /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
                       3.2G   2.9G       278M    92%    /lib/libc.so.1
fd                       0K     0K         0K     0%    /dev/fd
rpool/ROOT/solaris/var
                       120G   229M       278M    46%    /var
swap                   4.0G     8K       4.0G     1%    /tmp
rpool/VARSHARE         120G   2.6M       278M     1%    /var/share
rpool/export           120G    32K       278M     1%    /export
rpool/export/home      120G    32K       278M     1%    /export/home
rpool/export/home/username
                       120G    38K       278M     1%    /export/home/username
rpool                  120G   4.5M       278M     2%    /rpool
rpool/VARSHARE/zones   120G    31K       278M     1%    /system/zones
rpool/u01              120G   113G       278M   100%    /u01
rpool/VARSHARE/pkg     120G    32K       278M     1%    /var/share/pkg
rpool/VARSHARE/pkg/repositories
                       120G    31K       278M     1%    /var/share/pkg/repositories
am my vm is solaris
Last edited by mpack on 7. Jan 2021, 17:36, edited 2 times in total.
Reason: Add code brackets for readability.
scottgus1
Site Moderator
Posts: 19783
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: size not increasing after increasing disk

Post by scottgus1 »

mpack
Site Moderator
Posts: 38804
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: size not increasing after increasing disk

Post by mpack »

Specifically, step 2.
tony10111
Posts: 44
Joined: 2. Apr 2018, 07:22

Re: size not increasing after increasing disk

Post by tony10111 »

hi it did not increase
df -h
Filesystem Size Used Available Capacity Mounted on
rpool/ROOT/solaris 120G 2.9G 602M 84% /
/devices 0K 0K 0K 0% /devices
/dev 0K 0K 0K 0% /dev
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 880M 1.6M 879M 1% /system/volatile
objfs 0K 0K 0K 0% /system/object
sharefs 0K 0K 0K 0% /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
3.5G 2.9G 602M 84% /lib/libc.so.1
fd 0K 0K 0K 0% /dev/fd
rpool/ROOT/solaris/var
120G 229M 602M 28% /var
swap 879M 12K 879M 1% /tmp
rpool/VARSHARE 120G 2.6M 602M 1% /var/share
rpool/export 120G 32K 602M 1% /export
rpool/export/home 120G 32K 602M 1% /export/home
rpool/export/home/tdmadima
120G 38K 602M 1% /export/home/tdmadima
rpool 120G 4.5M 602M 1% /rpool
rpool/VARSHARE/zones 120G 31K 602M 1% /system/zones
rpool/u01 120G 113G 602M 100% /u01
rpool/VARSHARE/pkg 120G 32K 602M 1% /var/share/pkg
rpool/VARSHARE/pkg/repositories
120G 31K 602M 1% /var/share/pkg/repositories
-bash-4.1$
Attachments
solgpa23.jpg
solgpa23.jpg (79.1 KiB) Viewed 31298 times
virtualsize.png
virtualsize.png (91.27 KiB) Viewed 31298 times
mpack
Site Moderator
Posts: 38804
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: size not increasing after increasing disk

Post by mpack »

"rpool"? What filesystem are we talking about here?
tony10111
Posts: 44
Joined: 2. Apr 2018, 07:22

Re: size not increasing after increasing disk

Post by tony10111 »

/u01
rpool/ROOT/solaris
rpool/u01

echo |/usr/sbin/format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
0. c1t0d0 <ATA-VBOX HARDDISK-1.0-122.79GB>
/pci@0,0/pci8086,2829@d/disk@0,0
Specify disk (enter its number): Specify disk (enter its number):

# /usr/sbin/zpool get all rpool
NAME PROPERTY VALUE SOURCE
rpool allocated 119G -
rpool altroot - default
rpool autoexpand on local
rpool autoreplace off default
rpool bootfs rpool/ROOT/solaris local
rpool cachefile - default
rpool capacity 97% -
rpool dedupditto 0 default
rpool dedupratio 1.00x -
rpool delegation on default
rpool failmode wait default
rpool free 2.59G -
rpool guid 17515571430430538092 -
rpool health ONLINE -
rpool listshares off default
rpool listsnapshots off default
rpool readonly off -
rpool size 122G -
rpool version 37 default
mpack
Site Moderator
Posts: 38804
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: size not increasing after increasing disk

Post by mpack »

I don't see how that answers my question.

I also notice that your question has nothing whatever to do with Windows hosts and therefore does not belong in the "Windows Hosts" forum. I will move the topic to the "Solaris Guests" forum.

I'm going to guess that the filesystem is ZFS, and since I know nothing about how to enlarge a ZFS filesystem on Solaris, I'm going to have to leave that question to others. I'll only say that I have a vague recollection (and I could be quite wrong) that ZFS is somewhat like LVM, i.e. you don't enlarge drives, you add additional drives to the pool, and then use specialist guest tools to incorporate new drives into existing pools. A Solaris specialist forum should be able to provide details.
tony10111
Posts: 44
Joined: 2. Apr 2018, 07:22

Re: size not increasing after increasing disk

Post by tony10111 »

resize disabled
Attachments
gpa55.JPG
gpa55.JPG (47.59 KiB) Viewed 31277 times
resizee33re.JPG
resizee33re.JPG (52.93 KiB) Viewed 31277 times
mpack
Site Moderator
Posts: 38804
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: size not increasing after increasing disk

Post by mpack »

This "conversation" doesn't work if you don't acknowledge responses.
fth0
Volunteer
Posts: 5111
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: size not increasing after increasing disk

Post by fth0 »

Just a hint: The problem here is trying to enlarge a base disk that has snapshots ...
tony10111
Posts: 44
Joined: 2. Apr 2018, 07:22

Re: size not increasing after increasing disk

Post by tony10111 »

yes i have snapshoot
mpack
Site Moderator
Posts: 38804
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: size not increasing after increasing disk

Post by mpack »

Then you had better read the FAQ that you were directed towards in the first response from Scottgus1.
tony10111
Posts: 44
Joined: 2. Apr 2018, 07:22

Re: size not increasing after increasing disk

Post by tony10111 »

hi i did the following i remove the vm and delete snapshort i run again
C:\Program Files\Oracle\VirtualBox>VBoxManage.exe modifyhd E:\username\maint\Solaris18c.vdi --resize 2504982

not am geting this disk space
df -h
Filesystem Size Used Available Capacity Mounted on
rpool/ROOT/solaris 120G 2.9G 90G 4% /
/devices 0K 0K 0K 0% /devices
/dev 0K 0K 0K 0% /dev
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 4.4G 1.6M 4.4G 1% /system/volatile
objfs 0K 0K 0K 0% /system/object
sharefs 0K 0K 0K 0% /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
93G 2.9G 90G 4% /lib/libc.so.1
fd 0K 0K 0K 0% /dev/fd
rpool/ROOT/solaris/var
120G 220M 90G 1% /var
swap 4.4G 8K 4.4G 1% /tmp
rpool/VARSHARE 120G 2.5M 90G 1% /var/share
rpool/export 120G 32K 90G 1% /export
rpool/export/home 120G 32K 90G 1% /export/home
rpool/export/home/tdmadima
120G 38K 90G 1% /export/home/tdmadima
rpool 120G 4.5M 90G 1% /rpool
rpool/VARSHARE/zones 120G 31K 90G 1% /system/zones
rpool/u01 120G 23G 90G 21% /u01
rpool/VARSHARE/pkg 120G 32K 90G 1% /var/share/pkg
rpool/VARSHARE/pkg/repositories
120G 31K 90G 1% /var/share/pkg/repositories
-bash-4.1$
Attachments
snapshoot4.PNG
snapshoot4.PNG (62.14 KiB) Viewed 31200 times
scottgus1
Site Moderator
Posts: 19783
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: size not increasing after increasing disk

Post by scottgus1 »

You apparently ran the resize command on "Solaris18c.vdi", but your last screenshot shows data for the Mcor.vdi

Regrettably I don't grok ZFS well yet, only that it exists. Haven't played with it.

The "How to Resize a Disk" tutorial covers the usual disk setups, not ZFS pools. If you read the tutorial, (no confirmation on this question yet btw, have you actually read it?) you'll see there's two steps:
1. resize the virtual disk file
2. resize the partition inside the disk file's OS.

You can check if Virtualbox resized the file with the Media Manager or the command:
vboxmanage showmediuminfo "drive:\path\to\diskfilename.ext"
The "Capacity" output will show the maximum size of the disk.
Either of these should cover step 1.

You handle step 2 inside the VM's OS. How do you resize a ZFS pool? Web-search on that using ZFS help pages.

We can check if the virtual disk file is the correct size.
Post the command you use to resize the disk and the 'vboxmanage showmediuminfo' on the disk file after you resize it.
Post Reply