Date: Thu, 12 Jun 2008 10:22:25 +0200 From: "DA Forsyth" <iwrtech@iwr.ru.ac.za> To: freebsd-questions@freebsd.org Subject: Re: xRAID disks.... Message-ID: <4850F8E1.11972.4CF6D470@iwrtech.iwr.ru.ac.za> In-Reply-To: <4850EB8B.12487.4CC2C0F4@iwrtech.iwr.ru.ac.za> References: <484EACEB.7169.43FE1258@iwrtech.iwr.ru.ac.za>, <20080610145926.GA66984@owl.midgard.homeip.net>, <4850EB8B.12487.4CC2C0F4@iwrtech.iwr.ru.ac.za>
next in thread | previous in thread | raw e-mail | index | archive | help
On 12 Jun 2008 , DA Forsyth entreated about "Re: xRAID disks....": > hmmm, thinking now the gmirror create/remove route will probably > work. let me try it on a blankish disk and see.... this appears to be the answer to the question: how to stop ar recognizing a disk that used to be on a raid controller doing a 'gmirror label gm0 /dev/ad1' filled the last sector with data, and 'gmirror clear /dev/ad1' reset it all to zero now to try it on the big disk with data on it... YES: it works, and the data slice is still there, and the commands happen a lot faster than a dd with a skip parameter sidenote: to see the last sector use sysinstall's fdisk to see the data for the disk. you'll see something like Disk name: ad3 FDISK Geometry: 38913 cyls/255 heads/63 sectors = 625137345 sectors Offset Size(ST) End Name PType Desc Subtype 0 63 62 - 12 unused 0 63 625137282 625137344 ad3s1 8 freebsd 165 625137345 5103 625142447 - 12 unused 0 ^^^^^^^^^ you want that number in a dd commmand like this dd if=/dev/ad3 skip=625142447 | hd -v Thanks to all for the pointers -- DA Fo rsyth Network Supervisor Principal Technical Officer -- Institute for Water Research http://www.ru.ac.za/institutes/iwr/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4850F8E1.11972.4CF6D470>