tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: ADVFS
@ 1995-12-05 10:46 Gerhard Nolte
  0 siblings, 0 replies; 3+ messages in thread
From: Gerhard Nolte @ 1995-12-05 10:46 UTC (permalink / raw)
  To: tru64-unix-managers


Hi,

My original problem was:

>>By accident, I created a filedomain over an existing one.  Beside
>>that, there were no other write operations. Is there any chance to
>>recover the data?

Jan Mark Holzer from DIgital responded:

	well unfortunately the mkfdmn command is a NON recoverable
	operation ... the only way to get your old data back
	is to restore them from tape .


Thanks

Gerhard

-- 
                                   \\|//
                                   (^ ^)
    /---------------------------ooO-( )-Ooo---------------------------\
    |   Gerhard Nolte, Max-Planck-Institut fuer Stroemungsforschung   |
    |         Bunsenstr. 10, D-37073 Goettingen, Germany              |
    |                  Phone : +49 551 709 2716                       |
    |                    Fax : +49 551 709 2704                       |
    |                    e-mail: gnolte@gwdg.de                       |
    \-----------------------------------------------------------------/
                                   || ||
                                  (_) (_)

^ permalink raw reply	[flat|nested] 3+ messages in thread
* SUMMARY: ADVFS
@ 2000-11-17 15:33 Zbigniew, Ignatowicz
  0 siblings, 0 replies; 3+ messages in thread
From: Zbigniew, Ignatowicz @ 2000-11-17 15:33 UTC (permalink / raw)
  To: tru64-unix-managers

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: multipart/mixed; boundary="------_=_NextPart_001_01C050AB.AF55F650", Size: 17997 bytes --]

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C050AB.AF55F650
Content-Type: text/plain;
	charset="iso-8859-1"

Hi all,


HI,

I would like to thank all for quick and prompt reply. Most of you mentioned,
that only backup or salvage would help.


First of all, I will summarize what has happened.

I wanted to upgrade to 4.0F to 5.1. 
So I started installupdate to 5.0A. I started OK, then it failed. The screen
was frozen. I waited about an hour. There was some messages about
"mntupdata/isl/.. could not find." I read in installation guide, that the
system could not find a cdrom. They said to fix it. But how, if everything
was frozen.

So I decided to reboot and the system bacame not usable at all.

I decided to install clean 5.1. And this went very well. Only I had
root_domain and usr_domain. I though that I can always recover data domains.
I always did that in the past.  But I guess I was wrong in version 5.1. I
got the impression from release notes that domains V3 and V4 can co-exist in
5.1.

I ran advscan -g and recreated domains with generic names. Did not compain
about missing volumes. At that point was optimistic, but not for very log.
If tried to mount domain, i got that error.

I managed to salvage one fileset. Others were partially recovered. 
Data-wise I was ok, got some backups. Only config files  I had to recreate
like APAche, SSL etc....

It was an experience. 


Thanks to all again for quick respone.

rbumpu - Robert Bumpus [rbumpu@acxiom.com]
Sjolshagen, Thomas [Thomas.Sjolshagen@compaq.com]
Robert Mulley [robert@gnsconsulting.com.au]
Steven Hancock [shancock@zk3.dec.com]
Nikola Milutinovic [Nikola.Milutinovic@ev.co.yu]
Johnson, Andrew A. [aajohnson@escocorp.com]
Dr. Tom Blinn, 603-884-0646 [tpb@doctor.zk3.dec.com]


I am also pasting received responses, because there are some good hints and
might be useful for others.


1.

Check /etc/fdmns/domain_dsk1g and see if there is a link in that directory.
The link should be "diskgroup.volume", which is a link to
/dev/vol/"diskgroup"/"volume".  Here's an example: We have the domain
u02_domain, so the directory /etc/fdmns/u02_domain contains a link to an LSM
volume.  The link is u02_dg.u02_volume --> /dev/vol/u02_dg/u02_volume.  This
may the link that the error mentions.  I hope this helps.
 
2.
 
Not sure what you're trying to do here.. What version of Tru64 UNIX are you
using? 
 
Remember that AdvFS V3 is Tru64 UNIX V4.0x and AdvFS V4 is Tru64 UNIX V5.x..
 
3.
Somebody must have answered by now but I'll give it a shot. The log
volume is the most important volume in a file domain. File domains can
be multi-volume, ie many disks. Therefore one of the disks is assigned
to deal with the journalling of the advfs file system.

I don't exactly know how you are trying to "recreate a file domain", but
I'm guessing you've moved a disk across. You have to move all disks
associated with the file domain and recreate the links under the
directory: /etc/fdmns/domain_dsk1g
ie if original machine had links such that:
rz8h -> /dev/rz8h
then you need the same thing in your directory on the new system.

Aside from this I don't think you've provided enough info for me to give
a more accurate explanation.

4.

First, I don't think we support multi-volume AdvFS domains
with mixed V3 and V4 on-disk structures. If we allow this
with addvol, it is a bug that needs to be fixed. I don't see
how this could have happend. Can you explain it?

AdvFS is a transaction-based file system, which utilizes a 
log to maintain consistent metadata in the event of a 
system failure. UFS, on the other hand, is not transaction
based and relies on the fsck tool and proper metadata update
order to correct problems later. The transaction log exists
in any AdvFS domain on a single volume in that domain. Clearly, 
the tool (verify in this case) is attempting to activate (mount)
the domain and annot becuse it canot identify the location of
this critical structure.

If the domain will not mount, then salvage may be your only 
option. It certainly is worth a try to see if salvage will 
get the data for you. Since salvage saves the data to another
location, you can use salvage without disturbing the original
data location. If your backups are good and up-to-date, I
would forgo using salvage and simply remake the domain (in
all the same on-disk structure, v4 preferably) and restore it.

Bottom-line, if the file system is not mountable, you only have
options to either restore or salvage it.

5.
V3 and V4 are incompatible. If you try to mount AdvFS-v3 on DU-v4 you'll
get system_panic.

6.
 
Recreating the link is actually easy as long as you know which device (
/dev/rzb29c for example) is the one with the log on it.  How did you lose
the device?  I'm thinking you might have added some hardware or did
something which caused the bus numbers to change (that's what's happened on
our system in cases like this).  The thing to do is identify the unit number
of the volume, then make sure the devices are made for that unit and then
create the soft link  to it in /etc/fdmns/domain_dsk1g.
 
For instance:
 
Say the volume is a raid set called unit D102 on bus 4.  The device will be
bus # (4) x 8 + target (1)  = 33 and the lun # (2) translates to "c" (a=0,
b=1, c=2, etc.)  So the device will be /dev/rzc33. We usually give the
volume the entire disk so it will be partition "c" as well.... /dev/rzc33c.

 
There should already be a link in  /etc/fdmns/domain_dsk1g if the domain
already existed.  The link shows where AdvFS expects to find the log but
perhaps the device numbers have changed.  
 
To find out what your system currently recognizes on the bus, scan and then
show the scu edt.
 
#scu scan edt
 
#scu show edt     (This will produce a list of the bus devices the system
"sees")  Do the conversion as above to get the device number and make sure
they exist in /dev  (for the example above, make sure you see /dev/rzc33c)
If not, create it using /dev/.MAKEDEV rzc33 and then create the link in
/etc/fdmns/domain_dsk1g  ( #ln -s /dev/rzc33c rzc33c )
 
I hope this helps.  If you need more help, I'll be in the office tomorrow.
Drop me a line and I'll see what I can do, eh?
 

7.

 
When you perform a #showfdmn, on a viable domain, you'll see a log (denoted
with an "L" ) on one of the volumes of the domain.   My guess is that it
can't find a log on the volume(s) specified for that domain in /etc/fdmns.
In your example for domain_dks1g, within /etc/fdmns/domain_dsk1g there will
be soft links to devices (volumes) of the domain_dsk1g.  Since it can't find
the log file on any volumes listed there, it's probably assuming the links
are not correct and is asking you to recreate the link to the correct volume
that contains the log.
 
8.


The message is telling you that you have a MULTI-VOLUME (more than
one disk) file domain, and that so far you've only provided one of
the volumes (and not the one with the AdvFS log file, which MUST
be present to mount the volume).

You need to go back to the system from which this disk was taken
and figure out the real domain layout. 

------_=_NextPart_001_01C050AB.AF55F650
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2651.67">
<TITLE>SUMMARY: ADVFS</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Hi all,</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>HI,</FONT>
</P>

<P><FONT SIZE=3D2>I would like to thank all for quick and prompt reply. =
Most of you mentioned, that only backup or salvage would help.</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>First of all, I will summarize what has =
happened.</FONT>
</P>

<P><FONT SIZE=3D2>I wanted to upgrade to 4.0F to 5.1. </FONT>
<BR><FONT SIZE=3D2>So I started installupdate to 5.0A. I started OK, =
then it failed. The screen was frozen. I waited about an hour. There =
was some messages about &quot;mntupdata/isl/.. could not find.&quot; I =
read in installation guide, that the system could not find a cdrom. =
They said to fix it. But how, if everything was frozen.</FONT></P>

<P><FONT SIZE=3D2>So I decided to reboot and the system bacame not =
usable at all.</FONT>
</P>

<P><FONT SIZE=3D2>I decided to install clean 5.1. And this went very =
well. Only I had root_domain and usr_domain. I though that I can always =
recover data domains. I always did that in the past.&nbsp; But I guess =
I was wrong in version 5.1. I got the impression from release notes =
that domains V3 and V4 can co-exist in 5.1.</FONT></P>

<P><FONT SIZE=3D2>I ran advscan -g and recreated domains with generic =
names. Did not compain about missing volumes. At that point was =
optimistic, but not for very log. If tried to mount domain, i got that =
error.</FONT></P>

<P><FONT SIZE=3D2>I managed to salvage one fileset. Others were =
partially recovered. </FONT>
<BR><FONT SIZE=3D2>Data-wise I was ok, got some backups. Only config =
files&nbsp; I had to recreate like APAche, SSL etc....</FONT>
</P>

<P><FONT SIZE=3D2>It was an experience. </FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Thanks to all again for quick respone.</FONT>
</P>

<P><FONT SIZE=3D2>rbumpu - Robert Bumpus [rbumpu@acxiom.com]</FONT>
<BR><FONT SIZE=3D2>Sjolshagen, Thomas =
[Thomas.Sjolshagen@compaq.com]</FONT>
<BR><FONT SIZE=3D2>Robert Mulley [robert@gnsconsulting.com.au]</FONT>
<BR><FONT SIZE=3D2>Steven Hancock [shancock@zk3.dec.com]</FONT>
<BR><FONT SIZE=3D2>Nikola Milutinovic =
[Nikola.Milutinovic@ev.co.yu]</FONT>
<BR><FONT SIZE=3D2>Johnson, Andrew A. [aajohnson@escocorp.com]</FONT>
<BR><FONT SIZE=3D2>Dr. Tom Blinn, 603-884-0646 =
[tpb@doctor.zk3.dec.com]</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>I am also pasting received responses, because there =
are some good hints and might be useful for others.</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>1.</FONT>
</P>

<P><FONT SIZE=3D2>Check /etc/fdmns/domain_dsk1g and see if there is a =
link in that directory.</FONT>
<BR><FONT SIZE=3D2>The link should be &quot;diskgroup.volume&quot;, =
which is a link to</FONT>
<BR><FONT =
SIZE=3D2>/dev/vol/&quot;diskgroup&quot;/&quot;volume&quot;.&nbsp; =
Here's an example: We have the domain</FONT>
<BR><FONT SIZE=3D2>u02_domain, so the directory /etc/fdmns/u02_domain =
contains a link to an LSM</FONT>
<BR><FONT SIZE=3D2>volume.&nbsp; The link is u02_dg.u02_volume --&gt; =
/dev/vol/u02_dg/u02_volume.&nbsp; This</FONT>
<BR><FONT SIZE=3D2>may the link that the error mentions.&nbsp; I hope =
this helps.</FONT>
<BR><FONT SIZE=3D2>&nbsp;</FONT>
<BR><FONT SIZE=3D2>2.</FONT>
<BR><FONT SIZE=3D2>&nbsp;</FONT>
<BR><FONT SIZE=3D2>Not sure what you're trying to do here.. What =
version of Tru64 UNIX are you using? </FONT>
<BR><FONT SIZE=3D2>&nbsp;</FONT>
<BR><FONT SIZE=3D2>Remember that AdvFS V3 is Tru64 UNIX V4.0x and AdvFS =
V4 is Tru64 UNIX V5.x..</FONT>
<BR><FONT SIZE=3D2>&nbsp;</FONT>
<BR><FONT SIZE=3D2>3.</FONT>
<BR><FONT SIZE=3D2>Somebody must have answered by now but I'll give it =
a shot. The log</FONT>
<BR><FONT SIZE=3D2>volume is the most important volume in a file =
domain. File domains can</FONT>
<BR><FONT SIZE=3D2>be multi-volume, ie many disks. Therefore one of the =
disks is assigned</FONT>
<BR><FONT SIZE=3D2>to deal with the journalling of the advfs file =
system.</FONT>
</P>

<P><FONT SIZE=3D2>I don't exactly know how you are trying to =
&quot;recreate a file domain&quot;, but</FONT>
<BR><FONT SIZE=3D2>I'm guessing you've moved a disk across. You have to =
move all disks</FONT>
<BR><FONT SIZE=3D2>associated with the file domain and recreate the =
links under the</FONT>
<BR><FONT SIZE=3D2>directory: /etc/fdmns/domain_dsk1g</FONT>
<BR><FONT SIZE=3D2>ie if original machine had links such that:</FONT>
<BR><FONT SIZE=3D2>rz8h -&gt; /dev/rz8h</FONT>
<BR><FONT SIZE=3D2>then you need the same thing in your directory on =
the new system.</FONT>
</P>

<P><FONT SIZE=3D2>Aside from this I don't think you've provided enough =
info for me to give</FONT>
<BR><FONT SIZE=3D2>a more accurate explanation.</FONT>
</P>

<P><FONT SIZE=3D2>4.</FONT>
</P>

<P><FONT SIZE=3D2>First, I don't think we support multi-volume AdvFS =
domains</FONT>
<BR><FONT SIZE=3D2>with mixed V3 and V4 on-disk structures. If we allow =
this</FONT>
<BR><FONT SIZE=3D2>with addvol, it is a bug that needs to be fixed. I =
don't see</FONT>
<BR><FONT SIZE=3D2>how this could have happend. Can you explain =
it?</FONT>
</P>

<P><FONT SIZE=3D2>AdvFS is a transaction-based file system, which =
utilizes a </FONT>
<BR><FONT SIZE=3D2>log to maintain consistent metadata in the event of =
a </FONT>
<BR><FONT SIZE=3D2>system failure. UFS, on the other hand, is not =
transaction</FONT>
<BR><FONT SIZE=3D2>based and relies on the fsck tool and proper =
metadata update</FONT>
<BR><FONT SIZE=3D2>order to correct problems later. The transaction log =
exists</FONT>
<BR><FONT SIZE=3D2>in any AdvFS domain on a single volume in that =
domain. Clearly, </FONT>
<BR><FONT SIZE=3D2>the tool (verify in this case) is attempting to =
activate (mount)</FONT>
<BR><FONT SIZE=3D2>the domain and annot becuse it canot identify the =
location of</FONT>
<BR><FONT SIZE=3D2>this critical structure.</FONT>
</P>

<P><FONT SIZE=3D2>If the domain will not mount, then salvage may be =
your only </FONT>
<BR><FONT SIZE=3D2>option. It certainly is worth a try to see if =
salvage will </FONT>
<BR><FONT SIZE=3D2>get the data for you. Since salvage saves the data =
to another</FONT>
<BR><FONT SIZE=3D2>location, you can use salvage without disturbing the =
original</FONT>
<BR><FONT SIZE=3D2>data location. If your backups are good and =
up-to-date, I</FONT>
<BR><FONT SIZE=3D2>would forgo using salvage and simply remake the =
domain (in</FONT>
<BR><FONT SIZE=3D2>all the same on-disk structure, v4 preferably) and =
restore it.</FONT>
</P>

<P><FONT SIZE=3D2>Bottom-line, if the file system is not mountable, you =
only have</FONT>
<BR><FONT SIZE=3D2>options to either restore or salvage it.</FONT>
</P>

<P><FONT SIZE=3D2>5.</FONT>
<BR><FONT SIZE=3D2>V3 and V4 are incompatible. If you try to mount =
AdvFS-v3 on DU-v4 you'll</FONT>
<BR><FONT SIZE=3D2>get system_panic.</FONT>
</P>

<P><FONT SIZE=3D2>6.</FONT>
<BR><FONT SIZE=3D2>&nbsp;</FONT>
<BR><FONT SIZE=3D2>Recreating the link is actually easy as long as you =
know which device ( /dev/rzb29c for example) is the one with the log on =
it.&nbsp; How did you lose the device?&nbsp; I'm thinking you might =
have added some hardware or did something which caused the bus numbers =
to change (that's what's happened on our system in cases like =
this).&nbsp; The thing to do is identify the unit number of the volume, =
then make sure the devices are made for that unit and then create the =
soft link&nbsp; to it in /etc/fdmns/domain_dsk1g.</FONT></P>

<P><FONT SIZE=3D2>&nbsp;</FONT>
<BR><FONT SIZE=3D2>For instance:</FONT>
<BR><FONT SIZE=3D2>&nbsp;</FONT>
<BR><FONT SIZE=3D2>Say the volume is a raid set called unit D102 on bus =
4.&nbsp; The device will be bus # (4) x 8 + target (1)&nbsp; =3D 33 and =
the lun # (2) translates to &quot;c&quot; (a=3D0, b=3D1, c=3D2, =
etc.)&nbsp; So the device will be /dev/rzc33. We usually give the =
volume the entire disk so it will be partition &quot;c&quot; as =
well.... /dev/rzc33c.&nbsp; </FONT></P>

<P><FONT SIZE=3D2>&nbsp;</FONT>
<BR><FONT SIZE=3D2>There should already be a link in&nbsp; =
/etc/fdmns/domain_dsk1g if the domain already existed.&nbsp; The link =
shows where AdvFS expects to find the log but perhaps the device =
numbers have changed.&nbsp; </FONT></P>

<P><FONT SIZE=3D2>&nbsp;</FONT>
<BR><FONT SIZE=3D2>To find out what your system currently recognizes on =
the bus, scan and then show the scu edt.</FONT>
<BR><FONT SIZE=3D2>&nbsp;</FONT>
<BR><FONT SIZE=3D2>#scu scan edt</FONT>
<BR><FONT SIZE=3D2>&nbsp;</FONT>
<BR><FONT SIZE=3D2>#scu show edt&nbsp;&nbsp;&nbsp;&nbsp; (This will =
produce a list of the bus devices the system &quot;sees&quot;)&nbsp; Do =
the conversion as above to get the device number and make sure they =
exist in /dev&nbsp; (for the example above, make sure you see =
/dev/rzc33c) If not, create it using /dev/.MAKEDEV rzc33 and then =
create the link in /etc/fdmns/domain_dsk1g&nbsp; ( #ln -s /dev/rzc33c =
rzc33c )</FONT></P>

<P><FONT SIZE=3D2>&nbsp;</FONT>
<BR><FONT SIZE=3D2>I hope this helps.&nbsp; If you need more help, I'll =
be in the office tomorrow.&nbsp; Drop me a line and I'll see what I can =
do, eh?</FONT></P>

<P><FONT SIZE=3D2>&nbsp;</FONT>
</P>

<P><FONT SIZE=3D2>7.</FONT>
</P>

<P><FONT SIZE=3D2>&nbsp;</FONT>
<BR><FONT SIZE=3D2>When you perform a #showfdmn, on a viable domain, =
you'll see a log (denoted with an &quot;L&quot; ) on one of the volumes =
of the domain.&nbsp;&nbsp; My guess is that it can't find a log on the =
volume(s) specified for that domain in /etc/fdmns.&nbsp; In your =
example for domain_dks1g, within /etc/fdmns/domain_dsk1g there will be =
soft links to devices (volumes) of the domain_dsk1g.&nbsp; Since it =
can't find the log file on any volumes listed there, it's probably =
assuming the links are not correct and is asking you to recreate the =
link to the correct volume that contains the log.</FONT></P>

<P><FONT SIZE=3D2>&nbsp;</FONT>
<BR><FONT SIZE=3D2>8.</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>The message is telling you that you have a =
MULTI-VOLUME (more than</FONT>
<BR><FONT SIZE=3D2>one disk) file domain, and that so far you've only =
provided one of</FONT>
<BR><FONT SIZE=3D2>the volumes (and not the one with the AdvFS log =
file, which MUST</FONT>
<BR><FONT SIZE=3D2>be present to mount the volume).</FONT>
</P>

<P><FONT SIZE=3D2>You need to go back to the system from which this =
disk was taken</FONT>
<BR><FONT SIZE=3D2>and figure out the real domain layout. </FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C050AB.AF55F650--

^ permalink raw reply	[flat|nested] 3+ messages in thread
* SUMMARY: ADVFS
@ 2001-08-22 12:26 Edward D. Silver
  0 siblings, 0 replies; 3+ messages in thread
From: Edward D. Silver @ 2001-08-22 12:26 UTC (permalink / raw)
  To: tru64-unix-managers


A: The answers varied, but generally the only thing that costs money is
the addition license to add the GUI tools and the advanced feature set
which gives you access to many of the real advantages of ADVFS.  ADVFS is
at its core is included in the OS, but the bells and whistles are not.

We are going to go ahead and get the tools.  I've included my favorite
response below along with the original question.  Thanks to all who
responded!

-Ed Silver

===================================
On 8/13/2001 at 7:41 AM Edward D. Silver wrote:

>We've been using Compaq Alphaservers for almost 7 years now and have
>always run UFS on them.
>
>I have a 4100 machine that I am considering installing ADVFS on.  I got a
>quote for the license of it and was surprised by how much it was to add to
>the machine.  Could it really be worth that much (near 7K).
>
>I understand its better and allows for more flexibility than UFS but do
>other folks really find its performance that much better that it is worth
>biting the bullet and getting it for some of my machines?

You don't mention whether you're on Tru64 4.x or 5.x, but if you are on
5.0a or 5.1 now, you should go with AdvFS.  You don't need the license for
ADVFS-UTILITIES to implement AdvFS in its basic form (one partition, one
domain), but you do need the license to expand domains and use the GUI and
other utility programs.

Is the license worth it?  In your 7 years with UFS, have you ever had a
situation where you had to back up a drive, replace it with a larger
drive, then restore the original data to the new file system?  Then you
had to decide what to do with the old drive.  Have you ever had to back up
a UFS disk and then newfs and restore to eliminate fragmentation?  If the
answer is yes to these, then the utilities pack starts looking good.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-08-22 12:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-12-05 10:46 SUMMARY: ADVFS Gerhard Nolte
  -- strict thread matches above, loose matches on Subject: below --
2000-11-17 15:33 Zbigniew, Ignatowicz
2001-08-22 12:26 Edward D. Silver

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox