Hi,
An OpenBSD 4.3 GENERIC Virtual Machine I have on VMware ESXi 3.5 crashed
and after rebooting it complains that one of the disks is not configured:
Can't open /dev/rsd2a: Device not configured
CAN'T CHECK FILE SYSTEM
/dev/rsd2a: UNEXPECTED INCONSISTENCY; RUN fsck_ffs MANUALLY.
THE FOLLOWING FILE SYSTEM HAD AN UNEXPECTED INCONSISTENCY:
ffs: /dev/rsd2a (bumpho.com/fuentes)
Automatic file system check failed; help!
Enter pathname of shell or RETURN for sh:
The disklabel of the offending slice is:
:/$ disklabel sd2
# /dev/rsd2c
type: SCSI
disk: SCSI disk
label: Virtual disk
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 261
total sectors: 4194304
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg]
c: 4194304 0 unused 0 0
No traces of the a partition in the disklabel!
I accessed the hypervisor via ssh and can see that the datafile for that
disk is still there. Checked the VMware configuration to see the name of
the file containing the slice:
$ ls stor01_7*
-rw------- 1 root root 2147483648 Jun 1 2011 stor01_7-flat.vmdk
-rw------- 1 root root 396 May 20 17:06 stor01_7.vmdk
$ cat stor01_7.vmdk
# Disk DescriptorFile
version=1
CID=df00c34c
parentCID=ffffffff
createType="vmfs"
# Extent description
RW 4194304 VMFS "stor01_7-flat.vmdk"
# The Disk Data Base
#DDB
ddb.virtualHWVersion = "4"
ddb.uuid = "60 00 C2 9a 70 85 f9 fa-7c cf 3f 5c 6a be 5e e2"
ddb.geometry.cylinders = "261"
ddb.geometry.heads = "255"
ddb.geometry.sectors = "63"
ddb.adapterType = "lsilogic"
ddb.toolsVersion = "0"
How can I recreate the "a" partition so that I can access the data again?
Thanks a lot for your help.
--
Joaquin Herrero, @joakinen
perl -le '$_="=6<678428378>12376=2>:02;:19<5>:4"; tr[0->][DREAM.IT KOWSVC];
print'