Unix Technical Forum

Removing an EFI disk label

This is a discussion on Removing an EFI disk label within the comp.unix.solaris forums, part of the Solaris Operating System category; --> I have removed a Sun-supplied 72GB SAS disk (c0t1d0) from our T2000's zpool, so I can use it as ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > comp.unix.solaris

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-20-2008, 03:40 AM
Chris Ridd
 
Posts: n/a
Default Removing an EFI disk label

I have removed a Sun-supplied 72GB SAS disk (c0t1d0) from our T2000's
zpool, so I can use it as a mirror for the Sun-supplied 72GB system
disk (c0t0d0).

However, somehow the now-spare disk seems to have got an EFI label and
not a VTOC one. This is causing the format program to report the slice
sizes quite differently (cylinders in VTOC, start+end sectors in EFI)
and now even though prtvtoc says the slices I'm trying to mirror are
the same size, metattach fails and metastat says they're different
sizes :-(

It seems like one way to resolve this would be to put a VTOC label on
the disk, but it isn't clear to me how, as I don't know the drive's
geometry or anything.

Does anyone have any suggestions?

Cheers,

Chris

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-20-2008, 03:40 AM
Chris Ridd
 
Posts: n/a
Default Re: Removing an EFI disk label

On 2008-06-19 18:37:27 +0100, Chris Ridd <chrisridd@mac.com> said:

> I have removed a Sun-supplied 72GB SAS disk (c0t1d0) from our T2000's
> zpool, so I can use it as a mirror for the Sun-supplied 72GB system
> disk (c0t0d0).
>
> However, somehow the now-spare disk seems to have got an EFI label and
> not a VTOC one. This is causing the format program to report the slice
> sizes quite differently (cylinders in VTOC, start+end sectors in EFI)
> and now even though prtvtoc says the slices I'm trying to mirror are
> the same size, metattach fails and metastat says they're different
> sizes :-(
>
> It seems like one way to resolve this would be to put a VTOC label on
> the disk, but it isn't clear to me how, as I don't know the drive's
> geometry or anything.


.... and I just figured it out. Typical! After using metaclear and
metadb -d to make volume manager forget about the drive, I used "format
-e" and then the label command let me choose what kind of label I
wanted.

Sorry for the noise.

Cheers,

Chris

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-20-2008, 03:40 AM
Andrew Gabriel
 
Posts: n/a
Default Re: Removing an EFI disk label

In article <6bvjqnF3ak0bhU1@mid.individual.net>,
Chris Ridd <chrisridd@mac.com> writes:
> I have removed a Sun-supplied 72GB SAS disk (c0t1d0) from our T2000's
> zpool, so I can use it as a mirror for the Sun-supplied 72GB system
> disk (c0t0d0).
>
> However, somehow the now-spare disk seems to have got an EFI label and


If the whole disk was given to ZFS, it will have put an EFI label onto it.

--
Andrew Gabriel
[email address is not usable -- followup in the newsgroup]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-23-2008, 10:46 AM
Chris Ridd
 
Posts: n/a
Default Re: Removing an EFI disk label

On 2008-06-20 00:49:35 +0100, andrew@cucumber.demon.co.uk (Andrew
Gabriel) said:

> In article <6bvjqnF3ak0bhU1@mid.individual.net>,
> Chris Ridd <chrisridd@mac.com> writes:
>> I have removed a Sun-supplied 72GB SAS disk (c0t1d0) from our T2000's
>> zpool, so I can use it as a mirror for the Sun-supplied 72GB system
>> disk (c0t0d0).
>>
>> However, somehow the now-spare disk seems to have got an EFI label and

>
> If the whole disk was given to ZFS, it will have put an EFI label onto it.


That is almost certainly how it got there.

Switching the label type really ought to be possible without using
format's -e option. I mean, "Enable SCSI expert menu" (from the
manpage) doesn't really hint at this functionality - and labelling
isn't part of any expert menu.

Still, problem solved...

Cheers,

Chris

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:39 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com