How to set up disk space on Sun Sparc machine correctly. Please help.

I am not very good at UNIX and seek help here. I tried to install

Oracle 10g on a 64 bit Sun sparc machine with solaris 10 as OS. After I installed solaris 10, the current file system on the machine looks like this:

/dev/dsk/c0t0d0s05104758 4854293 19941897%/

/devices0 000%/devices

ctfs0 000%/system/contract

proc0 000%/proc

mnttab 0 000%/etc/mnttab

swap9718561024 9708321%/etc/svc/volatile

objfs00 00%/system/object

fd 00 00%/dev/fd

swap971184 3529708321%/tmp

swap970896649708321%/var/run

/dev/dsk/c0t0d0s73285899732601 324978071%/export/home

Then, I created oracle directory as /u01/app/oracle. It automatically

mount from /dev/dsk/c0t0d0s0. Now disk space in that partition is almost full (97%). I need to use /dev/dsk/c0t0d0s7 because this partition got enough space. If I create /u01/app/oracle under /dev/dsk/c0t0d0s7, will the mount point

be under /export/home? From file system angle, it will show directory

like: /export/home/u01/app/oracle? Please help me to figure out this part correctly. Thanks for your help.

[1129 byte] By [duke0001a] at [2007-11-26 12:20:42]
# 1

Try to backup the data from /export/home to som safe place.

Unmount /export/home.

Resice slice 7.

Use format to create a slice 6 (for instance) with whats left.

Label the disk.

Do a newfs on slice 6 and slice 7

Remount /export/home on the original slice 7 and restore the data.

mkdir /u01

mount /dev/dsk/c0t0d0s6 /u01 (add it to the vfstab aswell)

HTH

Uffe_ba at 2007-7-7 15:11:14 > top of Java-index,Archived Forums,Socket Programming...
# 2
Uffe_b:Thanks so much for your advice. Your approach is good enough to solve the problem. I am not UNIX guy. So could you be specific to list the steps with commands? How about re-configuring the partition by re-installing solaris 10 on the box. Happy holiday to you.
duke0001a at 2007-7-7 15:11:14 > top of Java-index,Archived Forums,Socket Programming...
# 3

Hi,

If You have the posibility to reinstall the OS, this

will be the easiest way if You're unsure about

the utilities. Use manual layout from the installation.

Anyway, here is an example of the other way to do it.

1-Add a second disk. (ie.) c0t1d0

2-Modify the vtoc as required (format)

ie.

root on c0t1d0s0

swap on c0t1d0s1

/export/home on c0t1d0s5

/u01 on c0t1d0s6

leave 32MB on c0t1d0s7 for metadatabase (SVM) - optional

3-newfs on s0, s5, s6

# newfs /dev/rdsk/c0t1d0s0

etc.

4-copy contents of /export/home to the new slice

# mount /dev/dsk/c0t1d0s5 /mnt

# cd /export/home; tar cf - . |(cd /mnt;tar xf -)

# umount /mnt

5-copy root filesystem to new root

# mount /dev/dsk/c0t1d0s0 /mnt

# ufsdump 0f - / | (cd /mnt; ufsrestore -xf )

6- Modify /mnt/etc/vfstab so that it will mount correctly

slice 5 for /export/home

slice 6 for /u01

# umount /mnt

7-Create the bootblock

# cd /usr/platform/`uname -i`/lib/fs/ufs

# installboot bootblk /dev/rdsk/c0t1d0s0

Now You would be able to boot from the other disk.

(might be typos above so please verify from man pages)

Good Luck

Uffe_ba at 2007-7-7 15:11:14 > top of Java-index,Archived Forums,Socket Programming...
# 4
Uffe_b:Thanks for your prompt reply. I am going to read it carefully. If I am confident to do it. I will do it. Otherwise, I will start over for a new installation.
duke0001a at 2007-7-7 15:11:14 > top of Java-index,Archived Forums,Socket Programming...