Operating System - Tru64 Unix
1748092 Members
5922 Online
108758 Solutions
New Discussion юеВ

Re: How do I restore to Raid5

 
meinnm
Occasional Contributor

How do I restore to Raid5



I lost three of my five disks on my raid5. I installed three new disks, created a hotspare, and initilized via swxmgr. Everything came out fine the systems shows my raid5 as online but when I try to mount it it says "device does not contain a valid ADVFS file system" Any ideas what may be wrong? All help is greatly appreciated! Thanks!
3 REPLIES 3
Ivan Ferreira
Honored Contributor

Re: How do I restore to Raid5

If you lost 3 of 5 disks on your raid, you must recreate the domain and the filesets on that raid device to be able to mount it, for example:

mkfdmn /dev/re1c raid5_domain
mkfset raid5_domain raid5_fset
mount raid5_domain#raid5_fset /raid5

Or, if 5.X:

mkfdmn /dev/disk/dskXc raid5_domain
mkfset raid5_domain raid5_fset
mount raid5_domain#raid5_fset /raid5
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
meinnm
Occasional Contributor

Re: How do I restore to Raid5

I tired this and it is telling me it does not have a disklabel or is corrupt. How do I put a disklabel on a raid set? Your help is greatly appreciated!! Thanks!
Mark Poeschl_2
Honored Contributor

Re: How do I restore to Raid5

The commands for that are:

v4.X

# disklabel -z /dev/rreXc
# disklabel -wr -t advfs /dev/rreXc

V5.X

# disklabel -z /dev/rdisk/dskNNc
# disklabel -wr /dev/rdisk/dskNNc

(Substituting as appropriate for "X" or "NN" of course.)

I can't recall what "" is for a SWXCR, but if you look in /etc/ddr.dbase for a match you should find something. Getting the right is much less important in v5.X