SUMMARY::terrible lsm problem (lost volume info)

From: Piotr Grzybowski (merlin@abakus.if.uj.edu.pl)
Date: Mon Sep 16 2002 - 13:52:19 EDT


 The problem was: after connecting extra hdd, which was not used,
the bootdisk, was unusable, usrvol, varvol and swapvol were lost.
when the extra drive was removed, /usr /var and swap was not mounted.
the volumes were lost.
 I recived two extra fast answers ([1],[2]), i would like to thank Arrigo
and Alan. They wanted to help. But the answer was somwhere else.
 I have found the solution today.
 As i mentioned in my orginal post, the rootdg was not initialized,
i was able to init and import it, to add disks, enable the vold
and bring the disks online. the problem was: the volumes.
 Today i have sat down, and decided to give one more chance
to this system, before i reinstall it. Suddenly, reading
the `man volintro` (from another machine, on some www site
thanks to that wonderfull man who put the whole manual online),
i noticed that i havent used the volassist utility.
 I have checked out the sizes of my partitions, i was able to
quess which one is /usr /var and swap, and i ran:
volassist -g rootdg usrvol ${SIZEusr}b
volassist -g rootdg varvol ${SIZEvar}b
volassist -g rootdg swapvol ${SIZEswap}b
where ${SIZE*} are the sizes of partitions, read from
disklabel -r ${diskname}
(in this case diskname=dsk0c)
one has to remember about 'b' because the sizes of
partitions read by disklabel are returned in sectors,
in this case the sector was 512 bytes, so the correct
suffix to the volassits size was 'b'.
 After recreating the volumes `mount /usr` `mount /var` and
`swapon -as` were succesfull!
 It was a long trip.

pg

[1] Arrigo Triulzi <arrigo@albourne.com
[2] "Davis, Alan" <Davis@tessco.com>



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:48:53 EDT