Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Dec 2011 12:04:44 +0100
From:      Polytropon <freebsd@edvax.de>
To:        CyberLeo Kitsana <cyberleo@cyberleo.net>
Cc:        Robert Huff <roberthuff@rcn.com>, questions@freebsd.org
Subject:   Re: problem formating disk with gpart
Message-ID:  <20111201120444.b4eb5ce1.freebsd@edvax.de>
In-Reply-To: <4ED735CD.7030505@cyberleo.net>
References:  <20182.39340.354254.608836@jerusalem.litteratus.org> <4ED735CD.7030505@cyberleo.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 01 Dec 2011 02:07:41 -0600, CyberLeo Kitsana wrote:
> On 11/30/2011 03:01 PM, Robert Huff wrote:
> > 
> > 	One of my systems has a hot-swap eSATA device, which reports as
> > "ad1".  I'm trying to use this to prepare a new disk using gpart and
> > something (possibly my understanding) is broken.
> > 	After removing another disk and inserting the new one, I do:
> > 
> >>> gpart show ad1
> > =>       34  976773101  ad1  GPT  (465G)
> >          34  976773101       - free -  (465G)
> > 
> > 	... which is the value for the disk just removed.
> > 	If I do (to start clean):
> > 
> >>> gpart destroy ad1
> > gpart destroy ad1
> > gpart: Input/output error
> > 
> > 	Huh?
> 
> If I remember correctly, the old ATA subsystem (ad*) does not support
> hotswap notification, so the kernel will not see a device change until
> reboot or reinit. You should probably be using AHCI (if the driver
> supports your chipset) or very careful use of atacontrol detach, attach,
> or reinit.

I'm not fully sure if this applies here, but there are
the following commands:

     atacontrol attach channel
     atacontrol detach channel
     atacontrol reinit channel
     atacontrol spindown device [seconds]
     atacontrol list

It seems as they are intended to support "manual hotswapping"
to be done with SATA. See "man atacontrol" for details.


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111201120444.b4eb5ce1.freebsd>