Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Jun 2005 00:02:28 -0700
From:      "Darren Pilgrim" <dmp@bitfreak.org>
To:        =?iso-8859-1?Q?'=22Dag-Erling_Sm=F8rgrav=22'?= <des@des.no>
Cc:        freebsd-hackers@freebsd.org
Subject:   RE: Determining disk device and kicking GEOM when doing automatic mounting of umass devices
Message-ID:  <000001c56d8a$5ec04320$0a2a15ac@SMILEY>
In-Reply-To: <86ekba4uls.fsf@xps.des.no>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
This is a multi-part message in MIME format.

------=_NextPart_000_0001_01C56D4F.B2616B20
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

From: "Dag-Erling Sm=F8rgrav" [mailto:des@des.no]=20
> "Darren Pilgrim" <dmp@bitfreak.org> writes:
> > GEOM doesn't automatically read the partition table and create the
> > slice device [...]
>=20
> Yes, it does.  When the umassX provider shows up, GEOM immediately
> tastes it and creates geoms for the individual slices.
>=20
> If it really doesn't on your system, try the following:
>=20
> # /etc/rc.d/devd stop
> # logger START
> # sysctl debug.bootverbose=3D1
> # sysctl -b kern.geom.conftxt >geom-before
> [insert umass device, wait 10 secs]
> # sysctl -b kern.geom.conftxt >geom-after
> # sysctl debug.bootverbose=3D0
> # logger STOP
> # /etc/rc.d/devd start
> # awk '/START/{s=3D1}{if(s)print}/STOP/{s=3D0}' /var/log/messages=20
> >geom-logs
>=20
> then post the contents of geom-{before,after,logs}.

Attached as named above.  The logs show the da0 DISK class in the GEOM
config, but no MBR class entry.

This is on -current as of May 22.

------=_NextPart_000_0001_01C56D4F.B2616B20
Content-Type: application/octet-stream;
	name="geom-before"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="geom-before"

0 DISK cd0 0 2048 hd 0 sc 0=0A=
0 DISK ad0 80026361856 512 hd 16 sc 63=0A=
1 MBR ad0s4 25761576960 512 i 3 o 54262172160 ty 165=0A=
2 BSD ad0s4h 1073741824 512 i 7 o 9663676416 ty 7=0A=
2 BSD ad0s4g 3221225472 512 i 6 o 6442450944 ty 7=0A=
2 BSD ad0s4f 4831838208 512 i 5 o 1610612736 ty 7=0A=
2 BSD ad0s4e 805306368 512 i 4 o 805306368 ty 7=0A=
2 BSD ad0s4d 805306368 512 i 3 o 0 ty 7=0A=
2 BSD ad0s4c 25761576960 512 i 2 o 0 ty 0=0A=
2 BSD ad0s4b 13950416896 512 i 1 o 11811160064 ty 7=0A=
2 BSD ad0s4a 1073741824 512 i 0 o 10737418240 ty 7=0A=
1 MBR ad0s3 1077511680 512 i 2 o 53184660480 ty 165=0A=
2 BSD ad0s3d 217679360 512 i 3 o 859832320 ty 7=0A=
2 BSD ad0s3c 1077511680 512 i 2 o 0 ty 0=0A=
2 BSD ad0s3b 545259520 512 i 1 o 314572800 ty 1=0A=
2 BSD ad0s3a 314572800 512 i 0 o 0 ty 7=0A=
1 MBR ad0s2 53127083520 512 i 1 o 57576960 ty 7=0A=
1 MBR ad0s1 57544704 512 i 0 o 32256 ty 222=0A=
=00
------=_NextPart_000_0001_01C56D4F.B2616B20
Content-Type: application/octet-stream;
	name="geom-after"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="geom-after"

0 DISK da0 0 0 hd 0 sc 0=0A=
0 DISK cd0 0 2048 hd 0 sc 0=0A=
0 DISK ad0 80026361856 512 hd 16 sc 63=0A=
1 MBR ad0s4 25761576960 512 i 3 o 54262172160 ty 165=0A=
2 BSD ad0s4h 1073741824 512 i 7 o 9663676416 ty 7=0A=
2 BSD ad0s4g 3221225472 512 i 6 o 6442450944 ty 7=0A=
2 BSD ad0s4f 4831838208 512 i 5 o 1610612736 ty 7=0A=
2 BSD ad0s4e 805306368 512 i 4 o 805306368 ty 7=0A=
2 BSD ad0s4d 805306368 512 i 3 o 0 ty 7=0A=
2 BSD ad0s4c 25761576960 512 i 2 o 0 ty 0=0A=
2 BSD ad0s4b 13950416896 512 i 1 o 11811160064 ty 7=0A=
2 BSD ad0s4a 1073741824 512 i 0 o 10737418240 ty 7=0A=
1 MBR ad0s3 1077511680 512 i 2 o 53184660480 ty 165=0A=
2 BSD ad0s3d 217679360 512 i 3 o 859832320 ty 7=0A=
2 BSD ad0s3c 1077511680 512 i 2 o 0 ty 0=0A=
2 BSD ad0s3b 545259520 512 i 1 o 314572800 ty 1=0A=
2 BSD ad0s3a 314572800 512 i 0 o 0 ty 7=0A=
1 MBR ad0s2 53127083520 512 i 1 o 57576960 ty 7=0A=
1 MBR ad0s1 57544704 512 i 0 o 32256 ty 222=0A=
=00
------=_NextPart_000_0001_01C56D4F.B2616B20
Content-Type: application/octet-stream;
	name="geom-logs"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="geom-logs"

Jun  9 23:44:54 Smiley root: START=0A=
Jun  9 23:46:31 Smiley kernel: umass0: M-SysT5 Dell Memory Key, rev =
2.00/2.00, addr 2=0A=
Jun  9 23:46:31 Smiley kernel: umass0:3:0:-1: Attached to scbus3=0A=
Jun  9 23:46:32 Smiley kernel: pass1 at umass-sim0 bus 0 target 0 lun 0=0A=
Jun  9 23:46:32 Smiley kernel: pass1: <M-SysT5 Dell Memory Key 5.00> =
Removable Direct Access SCSI-0 device =0A=
Jun  9 23:46:32 Smiley kernel: pass1: Serial Number u=0A=
Jun  9 23:46:32 Smiley kernel: pass1: 40.000MB/s transfers=0A=
Jun  9 23:46:32 Smiley kernel: GEOM: new disk da0=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): Retrying Command=0A=
Jun  9 23:46:32 Smiley last message repeated 3 times=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): error 6=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): Unretryable Error=0A=
Jun  9 23:46:32 Smiley kernel: da0 at umass-sim0 bus 0 target 0 lun 0=0A=
Jun  9 23:46:32 Smiley kernel: da0: <M-SysT5 Dell Memory Key 5.00> =
Removable Direct Access SCSI-0 device =0A=
Jun  9 23:46:32 Smiley kernel: da0: Serial Number u=0A=
Jun  9 23:46:32 Smiley kernel: da0: 40.000MB/s transfers=0A=
Jun  9 23:46:32 Smiley kernel: da0: Attempt to query device size failed: =
UNIT ATTENTION, Medium not present=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): READ CAPACITY. =
CDB: 25 0 0 0 0 0 0 0 0 0 =0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): CAM Status: SCSI =
Status Error=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): SCSI Status: =
Check Condition=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): UNIT ATTENTION =
asc:3a,0=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): Medium not present=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): =
(da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 =0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): UNIT ATTENTION =
asc:3a,0=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): Medium not present=0A=
Jun  9 23:46:32 Smiley kernel: Retrying Command (per Sense Data)=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): Retrying Command=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): READ CAPACITY. =
CDB: 25 0 0 0 0 0 0 0 0 0 =0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): CAM Status: SCSI =
Status Error=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): SCSI Status: =
Check Condition=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): UNIT ATTENTION =
asc:3a,0=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): Medium not present=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): =
(da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 =0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): UNIT ATTENTION =
asc:3a,0=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): Medium not present=0A=
Jun  9 23:46:32 Smiley kernel: Retrying Command (per Sense Data)=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): Retrying Command=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): READ CAPACITY. =
CDB: 25 0 0 0 0 0 0 0 0 0 =0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): CAM Status: SCSI =
Status Error=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): SCSI Status: =
Check Condition=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): UNIT ATTENTION =
asc:3a,0=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): Medium not present=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): =
(da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 =0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): UNIT ATTENTION =
asc:3a,0=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): Medium not present=0A=
Jun  9 23:46:32 Smiley kernel: Retrying Command (per Sense Data)=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): Retrying Command=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): READ CAPACITY. =
CDB: 25 0 0 0 0 0 0 0 0 0 =0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): CAM Status: SCSI =
Status Error=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): SCSI Status: =
Check Condition=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): UNIT ATTENTION =
asc:3a,0=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): Medium not present=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): =
(da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 =0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): UNIT ATTENTION =
asc:3a,0=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): Medium not present=0A=
Jun  9 23:46:32 Smiley kernel: Retrying Command (per Sense Data)=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): Retrying Command=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): READ CAPACITY. =
CDB: 25 0 0 0 0 0 0 0 0 0 =0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): CAM Status: SCSI =
Status Error=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): SCSI Status: =
Check Condition=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): UNIT ATTENTION =
asc:3a,0=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): Medium not present=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): =
(da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 =0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): UNIT ATTENTION =
asc:3a,0=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): Medium not present=0A=
Jun  9 23:46:32 Smiley kernel: Retries Exhausted=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): error 6=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): Unretryable Error=0A=
Jun  9 23:46:32 Smiley kernel: Opened disk da0 -> 6=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): READ CAPACITY. =
CDB: 25 0 0 0 0 0 0 0 0 0 =0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): CAM Status: SCSI =
Status Error=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): SCSI Status: =
Check Condition=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): UNIT ATTENTION =
asc:3a,0=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): Medium not present=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): =
(da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 =0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): UNIT ATTENTION =
asc:3a,0=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): Medium not present=0A=
Jun  9 23:46:32 Smiley kernel: Retrying Command (per Sense Data)=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): Retrying Command=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): READ CAPACITY. =
CDB: 25 0 0 0 0 0 0 0 0 0 =0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): CAM Status: SCSI =
Status Error=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): SCSI Status: =
Check Condition=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): UNIT ATTENTION =
asc:3a,0=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): Medium not present=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): =
(da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 =0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): UNIT ATTENTION =
asc:3a,0=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): Medium not present=0A=
Jun  9 23:46:32 Smiley kernel: Retrying Command (per Sense Data)=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): Retrying Command=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): READ CAPACITY. =
CDB: 25 0 0 0 0 0 0 0 0 0 =0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): CAM Status: SCSI =
Status Error=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): SCSI Status: =
Check Condition=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): UNIT ATTENTION =
asc:3a,0=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): Medium not present=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): =
(da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 =0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): UNIT ATTENTION =
asc:3a,0=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): Medium not present=0A=
Jun  9 23:46:32 Smiley kernel: Retrying Command (per Sense Data)=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): Retrying Command=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): READ CAPACITY. =
CDB: 25 0 0 0 0 0 0 0 0 0 =0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): CAM Status: SCSI =
Status Error=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): SCSI Status: =
Check Condition=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): UNIT ATTENTION =
asc:3a,0=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): Medium not present=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): =
(da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 =0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): UNIT ATTENTION =
asc:3a,0=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): Medium not present=0A=
Jun  9 23:46:32 Smiley kernel: Retrying Command (per Sense Data)=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): Retrying Command=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): READ CAPACITY. =
CDB: 25 0 0 0 0 0 0 0 0 0 =0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): CAM Status: SCSI =
Status Error=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): SCSI Status: =
Check Condition=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): UNIT ATTENTION =
asc:3a,0=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): Medium not present=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): =
(da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 =0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): UNIT ATTENTION =
asc:3a,0=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): Medium not present=0A=
Jun  9 23:46:32 Smiley kernel: Retries Exhausted=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): error 6=0A=
Jun  9 23:46:32 Smiley kernel: (da0:umass-sim0:0:0:0): Unretryable Error=0A=
Jun  9 23:46:32 Smiley kernel: Opened disk da0 -> 6=0A=
Jun  9 23:47:05 Smiley root: STOP=0A=

------=_NextPart_000_0001_01C56D4F.B2616B20--





Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?000001c56d8a$5ec04320$0a2a15ac>