From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Paul Crittenden Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: /var question Date: Thu, 13 Jun 2002 10:30:17 -0500 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <5.1.0.14.0.20020613102529.00a1c030@storm.simpson.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Trace: main.gmane.org 1023982631 7643 127.0.0.1 (13 Jun 2002 15:37:11 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 13 Jun 2002 15:37:11 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.33 #1 (Debian)) id 17IWes-0001z0-00 for ; Thu, 13 Jun 2002 17:37:10 +0200 Original-Received: (qmail 6667 invoked by uid 5); 13 Jun 2002 15:30:25 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 6659 invoked from network); 13 Jun 2002 15:30:25 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (128.219.159.41) by 0 with SMTP; 13 Jun 2002 15:30:25 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0GXN007UKHQO6D@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 13 Jun 2002 11:30:25 -0400 (EDT) Original-Received: from storm.simpson.edu (storm.simpson.edu [198.206.243.1]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0GXN008GGHQC0C@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 13 Jun 2002 11:30:13 -0400 (EDT) Original-Received: from pc198a.storm.simpson.edu (pc198a.simpson.edu [198.206.243.198]) by storm.simpson.edu (8.11.4/8.11.4) with ESMTP id g5DFUIr411663 for ; Thu, 13 Jun 2002 10:30:18 -0500 (CDT) X-Sender: crittend@storm.simpson.edu Original-To: tru64-unix-managers@ornl.gov X-Mailer: QUALCOMM Windows Eudora Version 5.1 Xref: main.gmane.org gmane.os.tru64.managers:565 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:565 Thanks to: Dan Harrington, Bob Harris, alan@nabeth, Peter Gergen, Bluejay Adametz, Darryl Cook, Pat O'Brien. Bob Harris sent the best explanation and fix and here it is. Most likely, the /var was a 2nd fileset in the usr_domain domain. They show the same total size and free space information because they share the storage in the same domain. These are the commands (or something that looks sort-of like this) that should have been used _BEFORE_ you started the restore. mkfdmn /dev/disk/dskXX usr_domain mkfset usr_domain usr mkfset usr_domain var mount usr_domain#usr /usr mount usr_domain#var /var However, now that you have already restored /usr, you can create the /var by just doing the mkfset for var mkfset usr_domain var mount usr_domain#var /var Of course, before you do that you would need to remove the symbolic link you put in as /var that points to /usr, but that should not be a problem. Now you can either copy over the stuff from /var/usr to the newly mounted /var fileset, or you can do the restore again from your backup. Also typically in a situation like this, the /usr/var name is a symbolic link of the form: lrwxrwxrwx 1 root system 6 Sep 15 2000 /usr/var -> ../var/ So you might also want to recreate that as well. Original Question: >I have a test system on which I am running Tru64-Unix v5.1, patch kit 3. I was >testing some stuff on it and got it screwed up and decided to restore from a >clean back up I did about a month ago, which I made for just such a purpose. >The restore went fine until I got to var. var is part of /usr but not a separate file >system even though there is a mount command in my /etc/fstab file. There is >no corresponding fdmns files in /etc/fdmns for it however so I don't know how it >was setup when I installed the operating system from scratch. > >When you did a df prior to my restore I got a listing for /var with the same file >system size as /usr. When I did the restore this stuff didn't seem to get >resetup even though I would have thought the restore should have. In order to >restore /var I have to make a var directory in /usr and make a link to it in /. That >seemed to have worked and the system is up and running and appears to be >fine. > >I would like to know how to get the /var mount back and why it didn't come >back when I did the restore. Paul Crittenden Computer System Manager Simpson College email: crittend@simpson.edu Phone: (515)961-1680 "You don't have to attend every argument you're invited to."