dvhtool and prtvtoc weirdness
s.desmarais
sdesmara at sobeco.com
Tue Jun 18 02:52:41 AEST 1991
In <34144 at shamash.cdc.com> jeff at u02.svl.cdc.com (Jeff Needham) writes:
>Mips 6280/VME/Interphase controllers/Wren VI half-heights
>Small incongruity: I use dvhtool to read in the volume header,
>repartition the thang and rewrite the whole mess back onto the
>disk. It told me it wrote the header onto 15 tracks.
>When I read it back it looks like what I wrote. prtvtoc on the
>other hand reads a partition table that looks like what was there
>before, even with -l. Since -l asks the driver, it would appear
>that I need to re-acquaint the driver with the drive.
First, be sure to use the character device (/dev/rdsk/...) and not the
block device (/dev/dsk/...). Second, at least on our 6280 with 4.51,
one time out of 2 dvhtool complains about not being able to read the
volume header:
/etc/dvhtool
Command? (read, vd, pt, dp, write, bootfile, or quit): read
Volume? /dev/rdsk/ipc0d0vh
Invalid volume header checksum.
Command? (read, vd, pt, dp, write, bootfile, or quit): read
Volume? /dev/rdsk/ipc0d0vh
Command? (read, vd, pt, dp, write, bootfile, or quit):
As you see, just try more than one time, and it will work.
If you don't use the raw device, it seems that modification are never
written to disk. Even with a reboot.
Second, we've also noticed that prtvtoc doesn't seem to read from the
device, but from the OS cache.
>Is boot the only way?
We haven't find another way. We dvhtool all the disks that we need,
and reboot. Sign.
By the way, I don't recall exactly, but I think that at one point we
tried to newfs.ffs one freshly repartitioned disk without reboot, and
it didn't like it. Unfortunately, I don't have a spare disk rigth now
to retest that. Feel free...
>jeff
>| Jeffrey Needham
>| Control Data - Santa Clara, CA - INTERNET jeff at hawk.svl.cdc.com
--
Stephane M. Desmarais sdesmara at sobeco.com ou sdesmara at sobeco.ca
Division STS - Groupe Sobeco Inc. {uunet | mcgill-vision}!sobeco.com!sdesmara
505 boul Rene-Levesque Ouest bur: (514) 878-9090 poste 297
Montreal, Quebec CANADA H2Z 1Y7 fax: (514) 875-2673 dom: (514) 733-3245
More information about the Comp.unix.wizards
mailing list