[OmniOS-discuss] beadm activate issue (and pkg update fails to install boot files)
Tom Robinson
tom.robinson at motec.com.au
Mon Sep 29 04:26:52 UTC 2014
After a lot of reading I decided to break the mirror:
# zpool detach rpool c4t3d0s0
Now the issue was how to format that device to match up with the remaining mirror disk. I'm using an
x86 architecture so I need to use fdisk first. I also found I need to use a different device that
fdisk will understand: c4t3d0p0
# fdisk -B /dev/rdsk/c4t3d0p0
(-B defaults to one Solaris partition that uses the whole disk).
# prtvtoc /dev/rdsk/c4t3d0s0
* /dev/rdsk/c4t3d0s0 partition map
*
* Dimensions:
* 512 bytes/sector
* 56 sectors/track
* 224 tracks/cylinder
* 12544 sectors/cylinder
* 18688 cylinders
* 18686 accessible cylinders
*
* Flags:
* 1: unmountable
* 10: read-only
*
* Unallocated space:
* First Sector Last
* Sector Count Sector
* 12544 234384640 234397183
*
* First Sector Last
* Partition Tag Flags Sector Count Sector Mount Directory
2 5 01 0 234397184 234397183
8 1 01 0 12544 12543
Woohoo! That's looking better. It matches the remaining mirror disk (c4t2d0p0).
So now I do this:
# prtvtoc /dev/rdsk/c4t2d0s0 | fmthard -s - /dev/rdsk/c4t3d0s0
fmthard: Partition 2 specifies the full disk and is not equal
full size of disk. The full disk capacity is 234397184 sectors.
fmthard: Partition 2 specified as 234422272 sectors starting at 0
does not fit. The full disk contains 234397184 sectors.
fmthard: New volume table of contents now in place.
Which worries me slightly but 'diffing' the prtvtoc outputs shows the two disks now share the same
layout:
# prtvtoc /dev/rdsk/c4t2d0s0 > /tmp/c4t2d0s0
# prtvtoc /dev/rdsk/c4t3d0s0 > /tmp/c4t3d0s0
# diff /tmp/c4t2d0s0 /tmp/c4t3d0s0
1c1
< * /dev/rdsk/c4t2d0s0 partition map
---
> * /dev/rdsk/c4t3d0s0 partition map
So I decide to attach the disk to the mirror again:
# zpool attach -f rpool c4t2d0s0 c4t3d0s0
Make sure to wait until resilver is done before rebooting.
# zpool status rpool
pool: rpool
state: ONLINE
status: One or more devices is currently being resilvered. The pool will
continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
scan: resilver in progress since Mon Sep 29 14:02:05 2014
818M scanned out of 71.4G at 68.1M/s, 0h17m to go
814M resilvered, 1.12% done
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
c4t2d0s0 ONLINE 0 0 0
c4t3d0s0 ONLINE 0 0 0 (resilvering)
errors: No known data errors
# beadm activate r151010
Activated successfully
# beadm list r151010
BE Active Mountpoint Space Policy Created
r151010 NR / 7.34G static 2014-09-24 07:47
Do I still need to run installgrub?
Thanks to all those who contributed
Regards,
Tom
--
Tom Robinson
IT Manager/System Administrator
MoTeC Pty Ltd
121 Merrindale Drive
Croydon South
3136 Victoria
Australia
T: +61 3 9761 5050
F: +61 3 9761 5051
E: tom.robinson at motec.com.au
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <https://omniosce.org/ml-archive/attachments/20140929/84fd6fe8/attachment.bin>
More information about the OmniOS-discuss
mailing list