- 3,707,910 Users
- 2,240,909 Discussions
- 7,839,920 Comments
Forum Stats
Discussions
Categories
- 17 Industry Applications
- 3.2K Intelligent Advisor
- 3 Insurance
- 689 On-Premises Infrastructure
- 230 Analytics Software
- 19 Application Development Software
- 1.7K Cloud Platform
- 700.4K Database Software
- 17.4K Enterprise Manager
- 4 Hardware
- 96 Infrastructure Software
- 62 Integration
- 44 Security Software
size not increasing after increasing disk

hi am in solaris
SunOS Ncsmaint 5.11 11.3 i86pc i386 i86pc
i did this
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%
but my disk not change
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/tdmadima
120G 38K 278M 1% /export/home/tdmadima
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
Best Answer
-
Nik Posts: 2,691 Bronze Crown
Hi.
Login to system as root.
run: format -e select disk
Type: p (for select partition mode) ;
Type: p ( for print current partitions);
Check "Total disk sector available" and disk size for VM.
Check "Last Sector" for partition 1 and "Total disk sector available" ( Partition last sector should small less then Total disk sector available). In case You see big difference - try expand Partition:
Type: expand (This command will available only in case expand is possible)
Resize partition 1: Type 1 Leave all fields as defaults exclude size. Type $ when system will ask partition size.
Type: label for write changes on disk. Do not change label type.
Check pool status and size:
zpool status rpool
zpool list rpool
In case size not increased:
zpool set autoexpand=off rpool
zpool set autoexpand=on rpool
Check pool size again.
Regards,
Nik
5
Answers
Hi.
Show output of commands:
Regards,
Nik
am geting
-bash-4.1$ echo|format
-bash: format: command not found
-bash-4.1$ zpool get all rpool
-bash: zpool: command not found
Hi Tony.
This commands should be run as root user.
su - (enter root password).
In case error again - try use full path:
echo |/usr/sbin/format
/usr/sbin/zpool get all rpool
Regards,
Nik
i got
echo|format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1t0d0 <ATA-VBOX HARDDISK-1.0-122.79GB>
/[email protected],0/pci8086,[email protected]/[email protected],0
Specify disk (enter its number): Specify disk (enter its number):
zpool get all rpool
NAME PROPERTY VALUE SOURCE
rpool allocated 119G -
rpool altroot - default
rpool autoexpand off default
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.93G -
rpool guid 17515571430430538092 -
rpool health ONLINE -
rpool listshares off default
rpool listsnapshots off default
rpool readonly off -
rpool size 122G -
rpool version 37 default
Hi,
Try run command:
zpool set autoexpand=on rpool
and check df -h again.
For more detail - read:
https://www.thegeekdiary.com/solaris-11-increasing-the-size-of-a-vdisk-in-ldom-with-backend-device-as-zfs-volume/
Regards,
Nik
i got
zpool set autoexpand=on rpool
# df -h
Filesystem Size Used Available Capacity Mounted on
rpool/ROOT/solaris 120G 2.9G 792M 79% /
/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 649M 1.6M 647M 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.7G 2.9G 792M 79% /lib/libc.so.1
fd 0K 0K 0K 0% /dev/fd
rpool/ROOT/solaris/var
120G 229M 792M 23% /var
swap 647M 24K 647M 1% /tmp
rpool/VARSHARE 120G 2.6M 792M 1% /var/share
rpool/export 120G 32K 792M 1% /export
rpool/export/home 120G 32K 792M 1% /export/home
rpool/export/home/tdmadima
120G 38K 792M 1% /export/home/tdmadima
rpool 120G 4.5M 792M 1% /rpool
rpool/VARSHARE/zones 120G 31K 792M 1% /system/zones
rpool/u01 120G 113G 792M 100% /u01
rpool/VARSHARE/pkg 120G 32K 792M 1% /var/share/pkg
rpool/VARSHARE/pkg/repositories
120G 31K 792M 1% /var/share/pkg/repositories
#
Filesystem 1024-blocks Used Available Capacity Mounted on
rpool/u01 125927424 118383679 809647 100% /u01
Hi.
I already provide link with some recommendation. What are You read and try?
Are You restart Solaris after VBoxManage was executed ?
VBOXManage was executed on running or stopped VM ?
Regards,
Nik
i did this
C:\Program Files\Oracle\VirtualBox>VBoxManage.exe modifyhd E:\username\Solaris18c\Solaris18c.vdi --resize 2004982
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Hi.
You are already post this command, but not answered on questions:
Hi.
Login to system as root.
run: format -e select disk
Type: p (for select partition mode) ;
Type: p ( for print current partitions);
Check "Total disk sector available" and disk size for VM.
Check "Last Sector" for partition 1 and "Total disk sector available" ( Partition last sector should small less then Total disk sector available). In case You see big difference - try expand Partition:
Type: expand (This command will available only in case expand is possible)
Resize partition 1: Type 1 Leave all fields as defaults exclude size. Type $ when system will ask partition size.
Type: label for write changes on disk. Do not change label type.
Check pool status and size:
zpool status rpool
zpool list rpool
In case size not increased:
zpool set autoexpand=off rpool
zpool set autoexpand=on rpool
Check pool size again.
Regards,
Nik
am geting
# format -e
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1t0d0 <ATA-VBOX HARDDISK-1.0-122.79GB>
/[email protected],0/pci8086,[email protected]/[email protected],0
Specify disk (enter its number): p
`p' is not an integer.
Specify disk (enter its number):
Hi Tony.
Please, not just type but try understand...
run: format -e select disk
You should select disk.
System say - that You should enter number of required disk.
You should enter 0 at this point.
ok am geting this
Specify disk (enter its number): 0
selecting c1t0d0
[disk formatted]
/dev/dsk/c1t0d0s1 is part of active ZFS pool rpool. Please see zpool(1M).
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
fdisk - run the fdisk program
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
inquiry - show disk ID
scsi - independent SCSI mode selects
cache - enable, disable or query SCSI disk cache
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
You have instruction how expand disk...
At this moment go to partition menu...
so i must type 1
format> partition
PARTITION MENU:
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
7 - change `7' partition
8 - change '8' partition
9 - change `9' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
!<cmd> - execute <cmd>, then return
quit
Show current head of print command.
Are You already execute expand command ?
I expect that:
partition 0 - have tag BIOS_BOOT ( ~260MB)
partition 1 have tag usr (~ size of disk)
partition 8 have tag reseverd (~8MB)
In case you have same, expand partition 1.
no i did this
[disk formatted]
/dev/dsk/c1t0d0s1 is part of active ZFS pool rpool. Please see zpool(1M).
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
fdisk - run the fdisk program
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
inquiry - show disk ID
scsi - independent SCSI mode selects
cache - enable, disable or query SCSI disk cache
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> partition
PARTITION MENU:
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
7 - change `7' partition
8 - change '8' partition
9 - change `9' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
!<cmd> - execute <cmd>, then return
quit
partition> print
Current partition table (original):
Total disk sectors available: 257482685 + 16384 (reserved sectors)
Part Tag Flag First Sector Size Last Sector
0 BIOS_boot wm 256 256.00MB 524543
1 usr wm 524544 122.53GB 257482718
2 unassigned wm 0 0 0
3 unassigned wm 0 0 0
4 unassigned wm 0 0 0
5 unassigned wm 0 0 0
6 unassigned wm 0 0 0
7 unassigned wm 0 0 0
8 reserved wm 257482719 8.00MB 257499102
9 unassigned wm 0 0 0
10 unassigned wm 0 0 0
11 unassigned wm 0 0 0
12 unassigned wm 0 0 0
13 unassigned wm 0 0 0
14 unassigned wm 0 0 0
15 unassigned wm 0 0 0
16 unassigned wm 0 0 0
17 unassigned wm 0 0 0
18 unassigned wm 0 0 0
19 unassigned wm 0 0 0
20 unassigned wm 0 0 0
21 unassigned wm 0 0 0
22 unassigned wm 0 0 0
- hit space for more or s to select -
Hi.
At this moment Solaris do not see that disk was expanded.
Try this:
press q for return previous menu
type: type
select 0 autoconfigure ( show result)
type p for return partition menu
type p for show partition ( show head of result)
type q for exit previous menu, type q for exit from format.
Do not label at this test. Command type build new partition table and you can lost data in case write it.
am geting
partition> type
`type' is not expected.
partition> 0
Part Tag Flag First Sector Size Last Sector
0 BIOS_boot wm 256 256.00MB 524543
You are not execute 1 step:
press q for return previous menu
partition> 0
Part Tag Flag First Sector Size Last Sector
0 BIOS_boot wm 256 256.00MB 524543
Enter partition id tag[BIOS_boot]: q
`q' not expected.
Enter partition id tag[BIOS_boot]: q
`q' not expected.
Enter partition id tag[BIOS_boot]:
Where in my last post I ask press zero?
You should return on previous menu level, for this You should use command "quit". You can not type full command, q will enought.
For exit from current step - press enter until not got "partition>" prompt
ok am in partition what must i enter
partition> p
Current partition table (unnamed):
Total disk sectors available: 257482685 + 16384 (reserved sectors)
Part Tag Flag First Sector Size Last Sector
0 BIOS_boot wm 256 256.00MB 524543
1 usr wm 524544 122.53GB 257482718
2 unassigned wm 0 0 0
3 unassigned wm 0 0 0
4 unassigned wm 0 0 0
5 unassigned wm 0 0 0
6 unassigned wm 0 0 0
7 unassigned wm 0 0 0
8 reserved wm 257482719 8.00MB 257499102
9 unassigned wm 0 0 0
10 unassigned wm 0 0 0
11 unassigned wm 0 0 0
12 unassigned wm 0 0 0
13 unassigned wm 0 0 0
14 unassigned wm 0 0 0
15 unassigned wm 0 0 0
16 unassigned wm 0 0 0
17 unassigned wm 0 0 0
18 unassigned wm 0 0 0
19 unassigned wm 0 0 0
20 unassigned wm 0 0 0
21 unassigned wm 0 0 0
22 unassigned wm 0 0 0
- hit space for more or
press q for return previous menu
type: type
select 0 autoconfigure ( show result)
type p for return partition menu
type p for show partition ( show head of result)
type q for exit previous menu, type q for exit from format.
`0' is not expected.
format> type
AVAILABLE DRIVE TYPES:
0. Auto configure
1. other
Specify disk type (enter its number)[1]: 0
c1t0d0: configured with capacity of 122.79GB
<ATA-VBOX HARDDISK-1.0-122.79GB>
selecting c1t0d0
[disk formatted]
format> q
# df -h
Filesystem Size Used Available Capacity Mounted on
rpool/ROOT/solaris 120G 2.9G 485M 86% /
/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 655M 1.6M 654M 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.4G 2.9G 485M 86% /lib/libc.so.1
fd 0K 0K 0K 0% /dev/fd
rpool/ROOT/solaris/var
120G 230M 485M 33% /var
swap 654M 24K 654M 1% /tmp
rpool/VARSHARE 120G 2.6M 485M 1% /var/share
rpool/export 120G 32K 485M 1% /export
rpool/export/home 120G 32K 485M 1% /export/home
rpool/export/home/useername
120G 38K 485M 1% /export/home/username
rpool 120G 4.5M 485M 1% /rpool
rpool/VARSHARE/zones 120G 31K 485M 1% /system/zones
rpool/u01 120G 113G 485M 100% /u01
rpool/VARSHARE/pkg 120G 32K 485M 1% /var/share/pkg
rpool/VARSHARE/pkg/repositories
120G 31K 485M 1% /var/share/pkg/repositories
#
zpool status rpool
pool: rpool
state: ONLINE
status: One or more devices has experienced an error resulting in data
corruption. Applications may be affected.
action: Restore the file in question if possible. Otherwise restore the
entire pool from backup.
Run 'zpool status -v' to see device specific details.
see: http://support.oracle.com/msg/ZFS-8000-8A
scan: none requested
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
c1t0d0 ONLINE 0 0 0
errors: 1 data errors, use '-v' for a list
zpool list rpool
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
rpool 122G 120G 2.47G 97% 1.00x ONLINE -
It's look like You expand other disk that used by this VM or this VM have some snapshots.
At this case it's look more easy create new VM with required disk size and reinstall system.
what about my data
hi i delete the snapshot and recreate the vm and did this again
C:\Program Files\Oracle\VirtualBox>VBoxManage.exe modifyhd E:\username\maint\Solaris18c.vdi --resize 2004982
am now geting this
-bash-4.1$ 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/username
120G 38K 90G 1% /export/home/username
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
zpool status rpool
pool: rpool
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
c1t0d0 ONLINE 0 0 0
errors: No known data errors
# zpool list rpool
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
rpool 122G 29.7G 92.3G 24% 1.00x ONLINE -
# echo |/usr/sbin/format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1t0d0 <ATA-VBOX HARDDISK-1.0-2.39TB>
/[email protected],0/pci8086,[email protected]/[email protected],0
Specify disk (enter its number): Specify disk (enter its number):
# /usr/sbin/zpool get all rpool
NAME PROPERTY VALUE SOURCE
rpool allocated 29.7G -
rpool altroot - default
rpool autoexpand off default
rpool autoreplace off default
rpool bootfs rpool/ROOT/solaris local
rpool cachefile - default
rpool capacity 24% -
rpool dedupditto 0 default
rpool dedupratio 1.00x -
rpool delegation on default
rpool failmode wait default
rpool free 92.3G -
rpool guid 17515571430430538092 -
rpool health ONLINE -
rpool listshares off default
rpool listsnapshots off default
rpool readonly off -
rpool size 122G -
rpool version 37 default
#
Hi.
It's look more better.
0. c1t0d0 <ATA-VBOX HARDDISK-1.0-2.39TB>
format detect that disk was expanded.
Try switch-on autexpand for rpool
zpool set autoexpand=on rpool
And check pool size again.
For previous questions about data:
$ su root
Password:
# zpool set autoexpand=on rpool
# zpool status rpool
pool: rpool
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
c1t0d0 ONLINE 0 0 0
errors: No known data errors
# zpool list rpool
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
rpool 2.39T 29.8G 2.36T 1% 1.00x ONLINE -
i think is to much
Filesystem Size Used Available Capacity Mounted on
rpool/ROOT/solaris 2.4T 2.9G 2.3T 1% /
/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
2.3T 2.9G 2.3T 1% /lib/libc.so.1
fd 0K 0K 0K 0% /dev/fd
rpool/ROOT/solaris/var
2.4T 220M 2.3T 1% /var
swap 4.4G 12K 4.4G 1% /tmp
rpool/VARSHARE 2.4T 2.5M 2.3T 1% /var/share
rpool/export 2.4T 32K 2.3T 1% /export
rpool/export/home 2.4T 32K 2.3T 1% /export/home
rpool/export/home/tdmadima
2.4T 38K 2.3T 1% /export/home/tdmadima
rpool 2.4T 4.5M 2.3T 1% /rpool
rpool/VARSHARE/zones 2.4T 31K 2.3T 1% /system/zones
rpool/u01 2.4T 24G 2.3T 1% /u01
rpool/VARSHARE/pkg 2.4T 32K 2.3T 1% /var/share/pkg
rpool/VARSHARE/pkg/repositories
2.4T 31K 2.3T 1% /var/share/pkg/repositories
-bash-4.1$
Hi.
It's look like OK. Pool size is increased.
You can switch-off autoexpand property (zpool set autoexpand=on rpool).