Solved

Partitioning Hard Disk

Posted on 2001-08-25
4
244 Views
Last Modified: 2013-12-27
How do you partition two hard disk with the following requirements.

disk 1 --> / (root) file system
disk 2 --> /Orcale  

I would like to partition the drive so that only these two filesystems are on each disk.

I attempted to do this already however other filesystems where mounted.  (file systems that I didn't specify)

When I do a df -k I would just like to see:

/          etc...   98%
/Orcale    etc...   90%


Not:
/var/etc...
/var/etc...
/var/etc...

0
Comment
Question by:jonnyblaze
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 50 total points
ID: 6426381
Well, this can be done, but you should seriously consider having /var a separate file system. The reason being that /var is being written to constantly while the system runs. If if crashes or goes down from a power fail there is a small but real chance of corruption of the file system. When /var is on the root there is a chance that the system won't be bootable if it suffers significant damage. I'd suggest partitioning the two drives like:

Disk 1  slice 0 /
           slice 1 swap
           slice 3 /var

Disk 2  slice 0 /Oracle

You can do this when installing Solaris by chosing to "manually partition" the drives. Doing so after Installation is possible, but you'll have to use a second disk drive or tapes to move things around. In brief, using tapes the process looks like:

1) backup up all of the exiting file systems on the boot drive
2) boot single user from the OS cd
3) use format to re-partition the boot drive
4) use newfs to make file systems on the new partition(s)
5) restore the system from the backup tape(s)
6) make the disk bootable.

I presume that you don't have a problem with the second disk, but if you haven't already done so and there is nothing on disk 2 you can:

1) run format and make slice 0 cover the whole disk. It's best to zero out all other slices except slice 2.
2) use newfs to create a file system on slice 0.
3) modify vfstab to mount the slice on /Oracle.
0
 
LVL 5

Expert Comment

by:Nisus091197
ID: 6510133
Hi,

I would recommend that you spread Oracle over the two disks as it is quite IO intensive.  Keep the transaction logging on a different disk to the swap partition.

How big are the disks?
What platform are you running (Intel/SPARC)?

Regards, Nisus
http://www.omnimodo.com
0
 
LVL 21

Expert Comment

by:tfewster
ID: 8051573
No comment has been added lately, so it's time to clean up this Topic Area.
I will leave a recommendation for this question in the Cleanup topic area as follows:

- Answered by jlevie

Please leave any comments here within the next 7 days

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

tfewster
Cleanup Volunteer
0
 

Expert Comment

by:SpideyMod
ID: 8100133
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question