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.
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
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
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