Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Change from EFI to SMI label

2,602 views
Skip to first unread message

Michael

unread,
Jul 25, 2011, 10:51:25 AM7/25/11
to
Hi,

I can not change from EFI to SMI label, or atleast zpool replace
complains on my attempts to replace a mirrored root drive.

root@giulia:~# zpool replace -f rpool c8d1 c2d1
cannot label 'c2d1': EFI labeled devices are not supported on root pools.


/michael

cindy

unread,
Jul 25, 2011, 11:30:48 AM7/25/11
to

Hi Michael,

I'm hoping that c8d1 is actually c8d1s0 in your zpool status rpool
output.

If that is correct, then relabel c2d1 with a VTOC label, like this:

# format -e c2d1
.
.
.
format> label
[0] SMI Label
[1] EFI Label
Specify Label type[1]: 0
Auto configuration via format.dat[no]?
Auto configuration via generic SCSI-2[no]?

Then, check the default partition table to see if s0 is large enough.
If not, resize it.
format> partition
.
.
.


You can follow the steps here:

http://www.solarisinternals.com/wiki/index.php/ZFS_Troubleshooting_Guide

# 9.5.2 Replacing/Relabeling the Root Pool Disk

Then, retry the zpool attach operation.

Thanks,

Cindy

Michael

unread,
Jul 26, 2011, 4:27:40 AM7/26/11
to
Hi,

On 07/25/11 05:30 PM, cindy wrote:
> On Jul 25, 8:51 am, Michael<michael_laaja...@yahoo.com> wrote:
>> Hi,
>>
>> I can not change from EFI to SMI label, or atleast zpool replace
>> complains on my attempts to replace a mirrored root drive.
>>
>> root@giulia:~# zpool replace -f rpool c8d1 c2d1
>> cannot label 'c2d1': EFI labeled devices are not supported on root pools.
>>
>> /michael
>
> Hi Michael,
>
> I'm hoping that c8d1 is actually c8d1s0 in your zpool status rpool
> output.
>

yes

> If that is correct, then relabel c2d1 with a VTOC label, like this:
>
> # format -e c2d1
> .
> .
> .
> format> label
> [0] SMI Label
> [1] EFI Label
> Specify Label type[1]: 0
> Auto configuration via format.dat[no]?
> Auto configuration via generic SCSI-2[no]?
>
> Then, check the default partition table to see if s0 is large enough.
> If not, resize it.
> format> partition
> .
> .
> .
>

I did prtvtoc /dev/rdsk/c8d1s0| fmthard -s - /dev/rdsk/c2d1s0

>
> You can follow the steps here:
>
> http://www.solarisinternals.com/wiki/index.php/ZFS_Troubleshooting_Guide
>
> # 9.5.2 Replacing/Relabeling the Root Pool Disk
>
> Then, retry the zpool attach operation.
>
> Thanks,
>
> Cindy
>

Right I have done so a few times but I did actually miss the s0 when
doing the replace (: thats why the complaint of EFI label.

But I have to ask why does not c8d1 go offline after resilvered?

# zpool replace -f rpool c8d1 c2d1

root@giulia:~# zpool status -v rpool
pool: rpool
state: ONLINE
status: One or more devices has experienced an error resulting in data
corruption. Applications may be affected.
action: Restore the file in question if possible. Otherwise restore the
entire pool from backup.
see: http://www.sun.com/msg/ZFS-8000-8A
scan: resilvered 42.7G in 0h30m with 2 errors on Tue Jul 26 10:15:26 2011
config:

NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
replacing-0 ONLINE 0 0 0
c8d1s0 ONLINE 0 0 0
c2d1s0 ONLINE 0 0 0
c0d0s0 ONLINE 0 0 0

errors: Permanent errors have been detected in the following files:


rpool/ROOT/solaris@install:/platform/i86pc/archive_cache/kernel/drv/myri10ge

rpool/ROOT/solaris@install:/platform/i86pc/archive_cache/kernel/drv/zfs
root@giulia:~#

/michael

cindy

unread,
Jul 26, 2011, 11:41:15 AM7/26/11
to

Michael,

Which Solaris release is this?

Was this your actual syntax:

# zpool replace -f rpool c8d1s0 c2d1s0

If your original syntax was used, you can't attach a d0 disk to a root
pool
in current Solaris releases, it should fail like this:

# zpool replace -f rpool c0t1d0s0 c0t2d0
cannot label 'c0t2d0': EFI labeled devices are not supported on root
pools.

See if zpool clear will resolve the detach issue.

Thanks,

Cindy

gp09...@gmail.com

unread,
Jan 24, 2018, 11:55:08 AM1/24/18
to
i have trouble try to use zpool from my solaris 10 and doesnt proses resilvering and i reboot the c0d0 with the system solaris 10 cant run and stuck in dmi pool data and change the type partition to efi

i just wanna clone or miroring to another harddrive but still error with zpool any body help

cindy.sw...@gmail.com

unread,
Jan 25, 2018, 10:58:34 AM1/25/18
to
You'll need to provide more details, such as the zpool status output for the root pool. Solaris 10 doesn't support booting from an EFI labelled disk, so the root pool disks need SMI (VTOC) labels. The device names should look like this: cN[tN]dnsN - you need the sN identifier.

See the examples here:

https://docs.oracle.com/cd/E26505_01/html/E37385/disksprep-34.html#scrolltoc

Thanks, Cindy

Chris

unread,
Jan 26, 2018, 8:26:04 AM1/26/18
to
Have seen this problem before. Don't remember all the details, but
you will need to reformat the drive to remove all the partition
table and id info from the first few blocks.

You could try using dd to zero this, or put the drive in a pc or
Linux box and reformat with no partition table.

ie: dd if=/dev/zero of= <path to drive> bs=16384

Will clear the first 32 512 byte blocks, though not sure if this
includes disk label and partition info. Failing that, try a pc or
linux box to get the job done...

Regards,

Chris
0 new messages