From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Sun, 10 Jul 2011 23:05:22 -0400 To: 9fans@9fans.net Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] fs(3) for pseudo partitions Topicbox-Message-UUID: fdc51cb4-ead6-11e9-9d60-3106f5b1d025 On Sun Jul 10 22:58:01 EDT 2011, akumar@mail.nanosouffle.net wrote: > For AoE reasons, I need to combine > a mirror (of a partition of a disk and > a whole disk) with another partition > of a disk, in a way that the combination > looks like a disk in itself. > > Has anyone tried such a thing with fs(3)? > I have a mirror: > > mirror m0 /dev/sdD1/data /dev/sdC0/worm > > at /dev/fs/m0, and what I would like is > a new pseudo device in fs(3) that joins > /dev/fs/m0 and /dev/sdC0/kcache. But > not simply as a `cat' of these two files, > rather so that the resulting data file > has the two as partitions. > > This way I don't need a ton of NICs and > `vblade' instances for each drive/partition > that I want to serve to my ken fs server. there are several simple options - write a little sd driver. see sdloop(3) for a prototype. - modify vblade to serve multiple luns. - erik