Thanks a lot for their replies to:
Alan Davis and Alan Nabeth
I were able to find the problem, I called these LSM low level commands from
prepared restore scripts, and I got an old version where the command
"voldisk -f init rz1 type=sliced" were missing. This is required if
restoring on an other system, in order to reinitialize host and devices
id's.
Original question:
I'm having a problem to mount a LSM disk. I'm doing the following:
# disklabel -rw -t advfs rz1 rz29b
# disklabel -R -t advfs rz1 /recovery/lsm.label
# hostname gdc200.post.ch
gdc200.post.ch
# vold -m disable
# voldg flush
# voldctl hostid gdc200.post.ch
# voldctl init
# voldg init rootdg
# voldisk define rz1 type=sliced
# voldisk clearimport rz1
# voldg -g rootdg adddisk rz1
# voliod set 2
# vold -k
# voldctl enable
# volrecover -sb
# volmake sd rz17-01 rz1,0,8379040
# volmake plex usrvol-01 sd=rz17-01
# volmake vol usrvol usetype=fsgen plex=usrvol-01
# voledit set mode=0644 usrvol
# volume set logtype="NONE" usrvol
# volume rdpol select usrvol
# volume start usrvol
# voldisk list
DEVICE TYPE DISK GROUP STATUS
rz1 sliced rz1 rootdg online
# voldg list
NAME STATE ID
rootdg enabled 921669214.1026.gdc200.post.ch
# voldctl list
Volboot file
version: 3/1
seqno: 0.37
hostid: gdc200.post.ch
entries:
disk rz1 type=sliced
# disklabel -r rz1
# /dev/rrz1a:
type: SCSI
disk: rz29b
label:
flags:
bytes/sector: 512
sectors/track: 113
tracks/cylinder: 20
sectors/cylinder: 2260
cylinders: 3708
sectors/unit: 8380080
rpm: 7200
interleave: 1
trackskew: 9
cylinderskew: 16
headswitch: 0 # milliseconds
track-to-track seek: 0 # milliseconds
drivedata: 0
8 partitions:
# size offset fstype [fsize bsize cpg]
a: 131072 0 unused 0 0 # (Cyl. 0 - 57*)
b: 401408 131072 unused 0 0 # (Cyl. 57*- 235*)
c: 8380080 0 unused 0 0 # (Cyl. 0 - 3707)
d: 2623488 532480 unused 0 0 # (Cyl. 235*-
1396*)
e: 2623488 3155968 unused 0 0 # (Cyl. 1396*-
2557*)
f: 2600624 5779456 unused 0 0 # (Cyl. 2557*- 3707)
g: 8379056 0 LSMpubl # (Cyl. 0 -
3707*)
h: 1024 8379056 LSMpriv # (Cyl. 3707*- 3707)
# mount -t advfs usr_domain#usr /usr
Cannot read last block (8380079) of virtual disk /dev/vol/rootdg/usrvol.
Mounting fileset in read-only mode.
#
Why do I have problems with the last block?
__________________________________________________
Felix Maurer
Die Schweizerische Post Tel: +41-31-338 98 49
Informatik POST Fax: +41-31-338 98 80
Messaging Management
Webergutstrasse 12 Mailto:maurerf_at_post.ch
CH-3030 Bern
http://www.post.ch
__________________________________________________
Received on Thu Mar 18 1999 - 11:50:28 NZDT