From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fa528,f8c5dd11f980bdea X-Google-Attributes: gidfa528,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!news.germany.com!goblin2!goblin.stu.neva.ru!fi.sn.net!newsfeed1.fi.sn.net!news.song.fi!not-for-mail Date: Tue, 23 Oct 2007 08:36:05 +0300 From: =?ISO-8859-1?Q?Uusim=E4ki?= User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 Newsgroups: comp.unix.tru64 Subject: Re: disklabel fails with "Bad file number" References: <1192783042.567073.44370@v29g2000prd.googlegroups.com> In-Reply-To: <1192783042.567073.44370@v29g2000prd.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <471d87bb$0$3520$9b536df3@news.fv.fi> Organization: FINNET customers NNTP-Posting-Host: 62-197-174-5.ktab.customers.dnainternet.fi X-Trace: 1193117628 news.fv.fi 3520 62.197.174.5:2068 X-Complaints-To: abuse@news.fv.fi Xref: g2news2.google.com comp.unix.tru64:112 Mpatt@bigfoot.com wrote: > Hi Group, > We recently had a disk go awol from a single disk Tru64 V5.1B > box. In order to recover the system I did a fresh install to another > disk, installed Netbackup and then and then used Netbackup to restore > everything from the tape backup over the top of the new disk, choosing > to overwrite existing files. The system boots OK and looks fine except > it won't let me label a new disk (I want to make a copy of the current > disk in case this happens again). > > This is what I see: > > > root@D:/> hwmgr -view devices > HWID: Device Name Mfg Model Location > > ------------------------------------------------------------------------------ > ... > 97: dsk9 DEC HSG80 > IDENTIFIER=1002 #this is the current boot device > 98: dsk10 DEC HSG80 > IDENTIFIER=1001 #this is the new device I want to label > root@D:/> ls -l /dev/disk/dsk10* > brw------- 1 root system 19,195 Oct 18 11:28 /dev/disk/dsk10a > brw------- 1 root system 19,197 Oct 18 11:28 /dev/disk/dsk10b > brw------- 1 root system 19,199 Oct 18 11:28 /dev/disk/dsk10c > brw------- 1 root system 19,201 Oct 18 11:28 /dev/disk/dsk10d > brw------- 1 root system 19,203 Oct 18 11:28 /dev/disk/dsk10e > brw------- 1 root system 19,205 Oct 18 11:28 /dev/disk/dsk10f > brw------- 1 root system 19,207 Oct 18 11:28 /dev/disk/dsk10g > brw------- 1 root system 19,209 Oct 18 11:28 /dev/disk/dsk10h > root@D:/> disklabel -p dsk10 > disklabel: dsk10: Bad file number > root@D:/> disklabel -rw dsk10 > disklabel: dsk10: Bad file number > root@D:/> > > Can anyone tell me why this is happening, and what can be done about > it? > > > TIA for any help. > Have you done the disklabel -z first before trying to write the new label?