I can't go back and start again as this is the same machine as the one with the now infamous problem trying to register (that you so bravely have been trying to resolve) and as things there are almost working I don't want to jeopardise that. Unless there is a way to extend the size of the existing disk without having to reinstall Solaris?
Anyway, I have managed to add a new disk in to Solaris and the table now looks like this:
# df -k
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0d0s0 4856422 4709039 98819 98% /
/devices 0 0 0 0% /devices
ctfs 0 0 0 0% /system/contract
proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
swap 765108 880 764228 1% /etc/svc/volatile
objfs 0 0 0 0% /system/object
/usr/lib/lib
4856422 4709039 98819 98% /lib/libc.so.1
fd 0 0 0 0% /dev/fd
swap 764304 76 764228 1% /tmp
swap 764264 36 764228 1% /var/run
/dev/dsk/c0d0s7 2859343 2873 2799284 1% /export/home
/hgfs 16777215 4096 16772864 1% /hgfs
/tmp/VMwareDnD 0 0 0 0% /var/run/vmblock
/dev/dsk/c
I notice that I have space on /dev/dsk/c0d0s7 so perhaps it would be easier to somehow give / access to that additional space? All I am trying to do is to extend the / file system which is 98% full.





by: bluPosted on 2009-04-03 at 05:46:49ID: 24059230
I think you might find it simpler just to start over, setting the main disk to the total size of both disks together. That will be much easier than trying to move things around.
y/entry/ so laris_x86_ vmware_add ing_a solaris_ne w_disk.sht ml Mailing-Li sts/SunMan agers/2003 -06/ 0118.h tml
I imagine that it is pretty much the same as it would be under a regular Solaris. You said that you already added the disk in VMware, so it should be visible to the OS. Run the "format" command to get a list
of disks that the OS sees. One will already be your currently installed disk. The will show you the
device name (something like c1t0d1, like that). Write down the device that you want to add. If you want
to use this disk in its entirety, then you will specify slice 2, otherwise you will need to use the
format command to partition the disk the way you want it, into smaller slices.
Once you get it partitioned the way you want, you need to create a file system on the slices. You can
use the mkfs command for that. You then mount the slice on /mnt using the mount command, and
copy the files over. You best bet is probably to use ufsdump and ufsrestore. Once you have done that,
you will need to reboot into single user, mv the existing /usr file to a new name and mkdir a new
/usr and add the slice to /etc/vfstab. At that point you should be able to reboot.
I suggest that you backup the original disk image befor you start this, because it will be easier to
recover if you have trouble. Are you sure you don't want to start over with a single disk?
see:
http://blogs.sun.com/harce
http://argray.com/unixfaq/
http://unix.derkeiler.com/