Sharing SSA RAID array...

Sharing SSA RAID array...

Post by Eric D Panc » Tue, 03 Mar 1998 04:00:00



 Hello.

Ok, here is the situation. I need to know if there is any way to set up
2 machines (we'll say Ultra 2's for right now) with an SSA RAID array so
that if one machine goes down, the other will take over the processes.
However, we do not want to invest in HA software. Is there any way to do
this where one machine could possibly NFS mount say the /home dir if
the primary machine were to ever go down?? Can filesystems be shared when
using SSA??

 Any help would be appreciated.

 Eric

 
 
 

Sharing SSA RAID array...

Post by Thomas Na » Tue, 03 Mar 1998 04:00:00


Hi there,
yes, it's possible to do. You have to take care about the following:

1. you need to have disksets and the SSA attached to both hosts (of
course). They cannot share the disks at the same time!!!

2. you may have to mount the disks 'manually' since you need a running
network between the two hosts but disks from vfstab are mounted before
it gets configured

3. use a 'virtual' IP address for the NFS server which is configured
to both machines (one is down of course). Since NFS is stateless you
simply have to grab the disks from the second machine, do fsck, export
(DONT FORGET) and bring the interface up if you want to switch-over.

4. a hint: use logging filesystems if you can. This greatly reduces
fsck time

Hope this helps. If you need some scripts... let me know by EMail
Thomas


| Hello.
| Ok, here is the situation. I need to know if there is any way to set up
| 2 machines (we'll say Ultra 2's for right now) with an SSA RAID array so
| that if one machine goes down, the other will take over the processes.
| However, we do not want to invest in HA software. Is there any way to do
| this where one machine could possibly NFS mount say the /home dir if
| the primary machine were to ever go down?? Can filesystems be shared when
| using SSA??

====== PGP fingerprint B1 EE D2 39 2C 82 26 DA  A5 4D E0 50 35 75 9E ED ======
be afraid ...
        it is coming ...
                be very afraid ...
                        MS NT (NextTry) 5 will appear (someday)

 
 
 

Sharing SSA RAID array...

Post by Achim Grat » Tue, 03 Mar 1998 04:00:00



> 1. you need to have disksets and the SSA attached to both hosts (of
> course). They cannot share the disks at the same time!!!

That applies to SDS and the standard setup for VxVM only.

You can share physical disks with VxVM (i.e. you have more than one
diskgroup on a single physical disk) if you are willing to part with
the GUI and create the diskgroups yourself.  Don't put any of the
disks you want to share into the rootdg diskgroup.  My setup is as
follows: one VxVM disk in rootdg (simple, slice 7 on the internal
controller) for the vxconfigd to boot, all disks in the SSA have two
sliced VxVM disks that belong to diskgroups SSA-0 and SSA-1.


> | Ok, here is the situation. I need to know if there is any way to set up
> | 2 machines (we'll say Ultra 2's for right now) with an SSA RAID array so
> | that if one machine goes down, the other will take over the processes.
> | However, we do not want to invest in HA software. Is there any way to do
> | this where one machine could possibly NFS mount say the /home dir if
> | the primary machine were to ever go down?? Can filesystems be shared when
> | using SSA??

The SSA is a disk array, but not a RAID array per se.  That is done by
software, either SDS or VxVM in that case.  Automatic takeover is
possible, but rather inconvenient without the proper software.  The
problem is not the scripts per se, but rather that you need to test
them very thoroughly.  Failover is not good if it destroys data on the
way.  Alternate Pathing and NFS client failover should help you a bit.
I'm currently looking into the same issue as you.

For fun I tried if it works to mount a filesystem to both hosts at the
same time for load sharing and it does, sort of.  Firstly, let me make
it absolutely clear that if you write to the fs, your dead (on one
host or both, depending).  So it can only work with ro filesystems,
which rules out /home.  Secondly, neither SDS nor VxVM does support
that, so you're on your own if you fry something.  Ididn't look deeper
into SDS because it doesn't allow to partition a disk between hosts,
but I think from the manual that guerilla sharing might work along the
same lines.  For VxVM it works like this:

1. Import the diskgroup on the first host normally.
2. Import on the second host as temporary and forced.
3. Mount -ro on both hosts.
4. Umount.
5. Deport on second host and don't write back disk information.
6. Flush diskgroup information from first just in case.

You should have replicated disk information on _all_ disks in disk
groups that you want to share.  That needs to be done manually when
creating the disk group, so the GUI is useless here.  Otherwise the
two hosts may decide to put their information on different disks,
which makes for really interesting effects and consequently hosed file
systems.

I'm not certain what needs to be done if one or both hosts crash
during the dual-head mount.  I believe that nothing needs to be done
if the second host or both crash, if the first one crashes I think it
would be wise to reimport without the temporary option.  At least
you'd have to prevent the first host from mounting automatically.

BTW, has anyone tried to use SDS ufs logging on VxVM filesystems?

Achim Gratz.

--+<[ It's the small pleasures that make life so miserable. ]>+--
WWW:    http://www.inf.tu-dresden.de/~ag7/{english/}

Phone:  +49 351 463 - 8325

 
 
 

Sharing SSA RAID array...

Post by Andy Isaacs » Tue, 03 Mar 1998 04:00:00



spake unto us:

Quote:>Ok, here is the situation. I need to know if there is any way to set up
>2 machines (we'll say Ultra 2's for right now) with an SSA RAID array so
>that if one machine goes down, the other will take over the processes.
>However, we do not want to invest in HA software. Is there any way to do
>this where one machine could possibly NFS mount say the /home dir if
>the primary machine were to ever go down?? Can filesystems be shared when
>using SSA??

Take a look at some work Michael Barber presented at LISA XI: "Increased
Server Availability and Flexibility through Failover Capability".  Might
do just what you want.

Paper available at
http://dilbert.dcs.it.mtu.edu/failover/

-andy
--

Fight Spam, join CAUCE: http://www.cauce.org  / Ultimate Frisbee, Footbag
http://www.csl.mtu.edu/~adisaacs/            / I speak for noone but myself

 
 
 

Sharing SSA RAID array...

Post by Karl A. Anderso » Tue, 03 Mar 1998 04:00:00



Quote:> Ok, here is the situation. I need to know if there is any way to set up
> 2 machines (we'll say Ultra 2's for right now) with an SSA RAID array so
> that if one machine goes down, the other will take over the processes.
> However, we do not want to invest in HA software. Is there any way to do
> this where one machine could possibly NFS mount say the /home dir if
> the primary machine were to ever go down?? Can filesystems be shared when
> using SSA??

We've got two SSA 200's, each with two fiber-channel connections to the
same two Ultra 2's. We use Veritas Storage Manager to manage the arrays.
Under normal operation, each host reserves its own disks on each of the
two arrays, i.e. they don't share filesystems. If one hosts fails,
however, the other can take over the failed host's reserved disks.  It's
not automatic, but our fail-over procedure is designed to minimize
downtime.

--
Karl A. Anderson
EMSL Computer and Network Support
Battelle Pacific Northwest Laboratory

 
 
 

Sharing SSA RAID array...

Post by kim v » Sat, 14 Mar 1998 04:00:00


Yes,  Solflower sharefs does it. Sharefs allows two hosts  mount (read and write)
on the same SSA partition. You can down load  sharefs demo software from the web
Take  a look at www.solflower.com.

Kim.




> : > Ok, here is the situation. I need to know if there is any way to set up
> : > 2 machines (we'll say Ultra 2's for right now) with an SSA RAID array so
> : > that if one machine goes down, the other will take over the processes.
> : > However, we do not want to invest in HA software. Is there any way to do
> : > this where one machine could possibly NFS mount say the /home dir if
> : > the primary machine were to ever go down?? Can filesystems be shared when
> : > using SSA??
> : >
> :

 
 
 

1. Re-using SSA disks previously members of a SSA RAID array

On Tue, 16 Mar 1999 20:12:12 -0500 a carbon-based biped by the name of Lekic

Somewhere under the SSA Raid menu entry in the smit|Devices menu,
there is a point that will let you change the usage of a SSA disk.
If a disk has been a member of an array, it is probably listed as
'Array candidate disk' or 'Hot Spare'.
Change that to 'AIX system disk' for all the disks, and you should
be able to re-use the units as normal SSA disks.

Regards

Peter

2. Beginner: How to show commands in a shell script?

3. Reusing SSA disks used as RAID array members

4. Unix network administrator vacancy

5. SSA Disk and RAID Array

6. Disk Upgrade

7. Expanding an SSA RAID 5 Array?

8. How to insert command in crontab using shell

9. SSA Raid Array and AIX Upgrading

10. Moving an SSA RAID array

11. Problem with SSA-Raid-5-Array offline

12. SSA RAID Array problem

13. Move SSA RAID array to different server