Unix Technical Forum

Format related

This is a discussion on Format related within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> Hi All, Anyone familiar with this: SRV#format Unknown controller 'MD21' - /etc/format.dat (15) Unknown controller 'MD21' - /etc/format.dat (20) ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > Sun Solaris Administration

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008, 10:46 AM
Joe
 
Posts: n/a
Default Format related

Hi All,

Anyone familiar with this:
SRV#format
Unknown controller 'MD21' - /etc/format.dat (15)
Unknown controller 'MD21' - /etc/format.dat (20)
Unknown controller 'MD21' - /etc/format.dat (25)
Unknown controller 'MD21' - /etc/format.dat (151)
Unknown controller 'MD21' - /etc/format.dat (155)
Unknown controller 'MD21' - /etc/format.dat (159)
Unknown controller 'MD21' - /etc/format.dat (163)
Unknown controller 'MD21' - /etc/format.dat (167)
Searching for disks...done


How do I fix this?

On my other servers I dont see this type of output.

Thanks
Joe

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-16-2008, 10:46 AM
Michael Vilain
 
Posts: n/a
Default Re: Format related

In article <1157134981.484707.160640@m79g2000cwm.googlegroups .com>,
"Joe" <spaceyjoe2020@yahoo.com> wrote:

> Hi All,
>
> Anyone familiar with this:
> SRV#format
> Unknown controller 'MD21' - /etc/format.dat (15)
> Unknown controller 'MD21' - /etc/format.dat (20)
> Unknown controller 'MD21' - /etc/format.dat (25)
> Unknown controller 'MD21' - /etc/format.dat (151)
> Unknown controller 'MD21' - /etc/format.dat (155)
> Unknown controller 'MD21' - /etc/format.dat (159)
> Unknown controller 'MD21' - /etc/format.dat (163)
> Unknown controller 'MD21' - /etc/format.dat (167)
> Searching for disks...done
>
>
> How do I fix this?
>
> On my other servers I dont see this type of output.
>
> Thanks
> Joe


What OS? What version? What hardware?

Default answer(tm): That depends...

--
DeeDee, don't press that button! DeeDee! NO! Dee...



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-16-2008, 10:46 AM
Joe
 
Posts: n/a
Default Re: Format related

Solaris 10 03/06? i think
V490


Michael Vilain wrote:

> What OS? What version? What hardware?
>
> Default answer(tm): That depends...
>
> --
> DeeDee, don't press that button! DeeDee! NO! Dee...


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-16-2008, 10:46 AM
gerryt
 
Posts: n/a
Default Re: Format related


"Joe" top posts:
> Solaris 10 03/06? i think


You THINK?

> V490
> Michael Vilain wrote:
> > What OS? What version? What hardware?
> > Default answer(tm): That depends...


This file (/etc/format.dat) belongs to SUNWcsr
Seems like its corrupt to me : <, no such string on my Solaris 10 6/06
man pkgchk

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-16-2008, 10:46 AM
Joe
 
Posts: n/a
Default Re: Format related

Gerry,
I'm not on the system to find out what version it is running.
I know it is the 2nd latest Sol10 release. Whatever was before 06/06

Thanks for the info I'll check on it.



gerryt wrote:
> "Joe" top posts:
> > Solaris 10 03/06? i think

>
> You THINK?
>
> > V490
> > Michael Vilain wrote:
> > > What OS? What version? What hardware?
> > > Default answer(tm): That depends...

>
> This file (/etc/format.dat) belongs to SUNWcsr
> Seems like its corrupt to me : <, no such string on my Solaris 10 6/06
> man pkgchk


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-16-2008, 10:46 AM
gerryt
 
Posts: n/a
Default Re: Format related


Joe top posts again:
> Gerry,
> I'm not on the system to find out what version it is running.


Fair enough

> I know it is the 2nd latest Sol10 release. Whatever was before 06/06
> Thanks for the info I'll check on it.


pkgchk can rebuild as well as check. Look into that but its a bit of a
sledge hammer
in this case. But its a very handy tool for "chk"ing things.
You could do a diff on /etc/format.dat and
/var/sadm/pkg/SUNWcsr/save/pspool/SUNWcsr/reloc/etc/format.dat
They should be the same - which they apparently arent.
If not:
cp -p /var/sadm/pkg/SUNWcsr/save/pspool/SUNWcsr/reloc/etc/format.dat
/etc/format.dat
should restore that part of the universe to a sane state...

> gerryt wrote:
> > "Joe" top posts:
> > > Solaris 10 03/06? i think

> > You THINK?
> > > V490
> > > Michael Vilain wrote:
> > > > What OS? What version? What hardware?
> > > > Default answer(tm): That depends...

> > This file (/etc/format.dat) belongs to SUNWcsr
> > Seems like its corrupt to me : <, no such string on my Solaris 10 6/06
> > man pkgchk


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-16-2008, 10:47 AM
Joe
 
Posts: n/a
Default Re: Format related


gerryt wrote:
> Joe top posts again:
> > Gerry,
> > I'm not on the system to find out what version it is running.

>
> Fair enough
>
> > I know it is the 2nd latest Sol10 release. Whatever was before 06/06
> > Thanks for the info I'll check on it.

>
> pkgchk can rebuild as well as check. Look into that but its a bit of a
> sledge hammer
> in this case. But its a very handy tool for "chk"ing things.
> You could do a diff on /etc/format.dat and
> /var/sadm/pkg/SUNWcsr/save/pspool/SUNWcsr/reloc/etc/format.dat
> They should be the same - which they apparently arent.
> If not:
> cp -p /var/sadm/pkg/SUNWcsr/save/pspool/SUNWcsr/reloc/etc/format.dat
> /etc/format.dat
> should restore that part of the universe to a sane state...
>
> > gerryt wrote:
> > > "Joe" top posts:
> > > > Solaris 10 03/06? i think
> > > You THINK?
> > > > V490
> > > > Michael Vilain wrote:
> > > > > What OS? What version? What hardware?
> > > > > Default answer(tm): That depends...
> > > This file (/etc/format.dat) belongs to SUNWcsr
> > > Seems like its corrupt to me : <, no such string on my Solaris 10 6/06
> > > man pkgchk


Gerryt,

Thanks for the help.
The /etc/format.dat and
/var/sadm/pkg/SUNWcsr/save/pspool/SUNWcsr/reloc/etc/format.dat were not
identical. > cp -p
/var/sadm/pkg/SUNWcsr/save/pspool/SUNWcsr/reloc/etc/format.dat
> /etc/format.dat resolved the problem.

answer to earlier question:
Solaris 10 3/05 s10_74L2a SPARC
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 22 January 2005
Thanks
Joe

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-16-2008, 10:47 AM
gerryt
 
Posts: n/a
Default Re: Format related


Joe wrote:
> gerryt wrote:
> > Joe top posts again:
> > > Gerry,
> > > I'm not on the system to find out what version it is running.

> > Fair enough
> > > I know it is the 2nd latest Sol10 release. Whatever was before 06/06
> > > Thanks for the info I'll check on it.

> > pkgchk can rebuild as well as check. Look into that but its a bit of a
> > sledge hammer
> > in this case. But its a very handy tool for "chk"ing things.
> > You could do a diff on /etc/format.dat and
> > /var/sadm/pkg/SUNWcsr/save/pspool/SUNWcsr/reloc/etc/format.dat
> > They should be the same - which they apparently arent.
> > If not:
> > cp -p /var/sadm/pkg/SUNWcsr/save/pspool/SUNWcsr/reloc/etc/format.dat
> > /etc/format.dat
> > should restore that part of the universe to a sane state...


> Gerryt,
> Thanks for the help.
> The /etc/format.dat and
> /var/sadm/pkg/SUNWcsr/save/pspool/SUNWcsr/reloc/etc/format.dat were not
> identical. > cp -p
> /var/sadm/pkg/SUNWcsr/save/pspool/SUNWcsr/reloc/etc/format.dat
> > /etc/format.dat resolved the problem.


Good. Now how is it the file got corrupt in the first place..
pkgchk can audit a system. Dump the results into a file in /tmp
You will likely see a lot of noise but some lines may indicate other
stuff
has been broken. pkgchk -n is sufficient.

For example - on my system I see that inetd.conf was altered on July
27.
The symlink in /etc was replaced with a file. The original symlink
was mv'd to inetd.conf.O. I certainly did not do this, I suspect
Blastwave did
when installing "sgifam" but anyway, heres what pkgchk says about it:
ERROR: /etc/inetd.conf
file type <s> expected <f> actual
Point is pkgchk made me aware of this.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:03 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com