Solved

Using RAID on Solaris

Posted on 2001-06-11
8
624 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
[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
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
 
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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

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…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

732 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