v_vfs_done error = 1 on gconcat device

Pawel Jakub Dawidek pjd at FreeBSD.org
Sat Apr 29 07:16:40 UTC 2006


On Fri, Apr 28, 2006 at 08:34:03PM -0400, Rong-En Fan wrote:
+> Hi Pawel,
+> 
+> I'm running RELENG_6 around Apr 6. Sometimes, I saw lots of
+> 
+> g_vfs_done():concat/tmp[WRITE(offset=25658605568, length=114688)]error = 1
+> g_vfs_done():concat/tmp[WRITE(offset=25658605568, length=114688)]error = 1
+> g_vfs_done():concat/tmp[WRITE(offset=25658605568, length=114688)]error = 1
+> g_vfs_done():concat/tmp[WRITE(offset=25658605568, length=114688)]error = 1
+> g_vfs_done():concat/tmp[WRITE(offset=25658605568, length=114688)]error = 1
+> 
+> in my console. The concat/tmp is consist of two disk:
+> 
+> Geom name: tmp
+> State: UP
+> Status: Total=2, Online=2
+> Type: AUTOMATIC
+> ID: 2047271624
+> Providers:
+> 1. Name: concat/tmp
+>   Mediasize: 62055485440 (58G)
+>   Sectorsize: 512
+>   Mode: r1w1e1
+> Consumers:
+> 1. Name: da0s1d
+>   Mediasize: 25658654720 (24G)
+>   Sectorsize: 512
+>   Mode: r1w1e2
+>   Start: 0
+>   End: 25658654208
+> 2. Name: da1s1e
+>   Mediasize: 36396831744 (34G)
+>   Sectorsize: 512
+>   Mode: r1w1e2
+>   Start: 25658654208
+>   End: 62055485440
+> 
+> If the offset in the console is in the same unit as "Mediasize" in gconcat list,
+> then, it looks like it tries to write something that crossing two
+> physical disks.
+> IIRC, everytime I see those messages, the offset is really close to the
+> end of the first disk.
+> 
+> Any ideas?

It works here:

	# mdconfig -a -t malloc -s 25658654720b -u 0
	# mdconfig -a -t malloc -s 36396831744b -u 1
	# gconcat label foo md0 md1
	# sysctl kern.geom.concat.debug=2
	# ./dwrite /dev/concat/foo 25658605568 114688

The console output:

	GEOM_CONCAT[2]: Request received. concat/foo[WRITE(offset=25658605568, length=114688)]
	GEOM_CONCAT[2]: Sending request. md0[WRITE(offset=25658605568, length=48640)]
	GEOM_CONCAT[2]: Sending request. md1[WRITE(offset=0, length=66048)]

I'd more expect that your partitions are not properly configured. Can
you show me the output of "bsdlabel /dev/da1s1"?

PS. # gconcat list
Geom name: foo
State: UP
Status: Total=2, Online=2
Type: AUTOMATIC
ID: 2742083475
Providers:
1. Name: concat/foo
   Mediasize: 62055485440 (58G)
   Sectorsize: 512
   Mode: r0w0e0
Consumers:
1. Name: md0
   Mediasize: 25658654720 (24G)
   Sectorsize: 512
   Mode: r0w0e0
   Start: 0
   End: 25658654208
2. Name: md1
   Mediasize: 36396831744 (34G)
   Sectorsize: 512
   Mode: r0w0e0
   Start: 25658654208
   End: 62055485440

-- 
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd at FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-geom/attachments/20060429/901f98d4/attachment.pgp


More information about the freebsd-geom mailing list