Solved

Using RAID on Solaris

Posted on 2001-06-11
8
620 Views
Last Modified: 2013-12-21
How does RAID function on a normal Solaris install. If I used hardware or software RAID on a Solaris box and I was installing from scratch, how would the mount points be created on a RAID 5 setup? Usually, I believe, the mount points are created on a seperate disk.

Also, what would be the best solution if the RAID array failed and I had to do a restore?

I have worked extensively with RAID on NetWare and Windows, but never Solaris.

Thanks in advance.
0
Comment
Question by:bugsuperstar37
  • 4
  • 4
8 Comments
 
LVL 1

Expert Comment

by:shanechambers
ID: 6177929
I believe what you are looking for is a meta-device.  You can setup, and administer a RAID configuration by running 'metatool,' found in the SUNWmd package (for Solaris 7, and I think 2.6 as well).

Basically, you would stripe you disks, creating a meta device.  That meta device is what you would then mount.
0
 
LVL 1

Author Comment

by:bugsuperstar37
ID: 6177988
Would I have to create multiple meta-devices to mount /usr /opt and of course / ?
0
 
LVL 1

Expert Comment

by:shanechambers
ID: 6178018
First off, I don't typically stripe the root filesystem.  You might want to mirror it, but striping root gets (in my opinion) a little hairy.

I believe what you're asking is "for each filesystem, would I have to create another meta-device?"  If that's the case, yes you would.  A meta-device is basically a big psydo-partition that is composed of several smaller physical partitions (slices), instead of just one.  

Just like a normal partition, once the meta-device is made, you would have to run 'newfs' on the meta-device to make a filesystem out of it.

Does that answer your question, or am I being too general?
0
 
LVL 1

Author Comment

by:bugsuperstar37
ID: 6178094
That helps, but how would this be done on a new install if it is software RAID?

Also, how would I restore if this system failed? UFSRESTORE if I backed up using UFSDUMP? Would I have to reinstall a system that resembled the one that failed and then restore?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 1

Accepted Solution

by:
shanechambers earned 100 total points
ID: 6180915
Typically how I due this;

Step 1: Build the root partition, and filesystem.  Like I said before I don't stripe root (mirror is available, afterwards).  Since I've got a whole disk for root, I go ahead and place other system dependent filesystems (var, usr, usr/openwin, opt, maybe home, or export) on that same disk.  Basically you have a full system on one disk.

Step 2: Build the meta-devices.  I presume you've got some specific data you want to use this machine for.  That data is probably pretty important, and might change allot, so therefor you want to stripe the disks, to protect that data.  In my setup, I would place all _that_ data on the  meta-device(s).  (You can play with metatool, and/or look over the Answerbook pages on meta-devices to see how to do that, also give serious consideration to adding a hot-swap drive to the configuration)

Step 3: Build a filesystem on each meta-device. (newfs)

Step 4: Copy the data in.


Backup:

You would do a backup of each filesystem, and meta-device the same way, ufsdump.  I.E.;

# Backup of a normal filesystem
ufsdump 0cfu /dev/rmt/0n /dev/dsk/c0t8d0s0
# Backup of a meta-device
ufsdump 0cfu /dev/rmt/0n /dev/md/dsk/d1

Restore:

In the event of a complete loss, you would boot from CDROM, repartition out the root drive, newfs the partitions, and restore the system directories from tape.  Once you had that, you would boot the system normal (making sure to comment out the meta-device from /etc/vfstab, so you don't have problems tying to mount filesystems that don't exists), and recreate the meta-devices.  Once they are layed out, and newfs'd, you can restore from tape again.

In the event of a loss of disk from the array, replace the disk, and use metatool to rebuild the lost information.

(by the way, you're getting a bargin for 50 pts :)
0
 
LVL 1

Author Comment

by:bugsuperstar37
ID: 6181632
You are right, this is great info. Point increased to 100.
0
 
LVL 1

Author Comment

by:bugsuperstar37
ID: 6181634
Thank you. I greatly appreciate your help.
0
 
LVL 1

Expert Comment

by:shanechambers
ID: 6181684
Hey, glad I could help.

Shane
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

910 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now