[xstreamos-discuss] Error updating XStreamOS
Kees Nuyt
k.nuyt at zonnet.nl
Sat May 6 13:48:13 CEST 2017
On Sat, 6 May 2017 09:17:23 +0200 (CEST), Gabriele wrote:
> Hi, the error at the end looks interesting....I will check it.
> I wouldn't recommend activating the BE.
> You may try a manual check of the update via "pkg update -nv" with privileges.
> If it doesn't show any inconsistency you may run "pkg update" and have it updated correctly.
> You shouldn't need a new iso installer, the update should work fine.
Thanks for the suggestion, it worked just fine.
I documented the proces for anyone interested:
$ pfexec pkg update -nv >updates2.txt 2>&1
===== updates2.txt :
Startup: Refreshing catalog 'sonicle.com' ... Done
Planning: Solver setup ... Done (1.582s)
Planning: Running solver ... Done (0.118s)
Planning: Finding local manifests ... Done (0.198s)
Planning: Package planning ... Done (2.625s)
Planning: Merging actions ... Done (0.016s)
Planning: Checking for conflicting actions ... Done (1.814s)
Planning: Consolidating action changes ... Done (2.899s)
Planning: Evaluating mediators ... Done (1.037s)
Planning: Planning completed in 11.05 seconds
Packages to remove: 1
Packages to install: 1
Packages to update: 372
Estimated space available: 4.40 GB
Estimated space to be consumed: 661.89 MB
Create boot environment: Yes
Activate boot environment: Yes
Create backup boot environment: No
Rebuild boot archive: Yes
Changed packages:
sonicle.com
storage/svm
0.5.11-1.154.1.0.0 -> None
library/libfilezilla
None -> 0.9.1-1.154.1.0.0
SUNWcs
0.5.11-1.154.1.0.0:20161124T171150Z -> 0.5.11-1.154.1.0.0:20170426T071138Z
SUNWcsd
0.5.11-1.154.1.0.0:20161124T171151Z -> 0.5.11-1.154.1.0.0:20170426T071138Z
consolidation/xstream/os
5.11-1.154.1.0.0:20161210T103521Z -> 5.11-1.154.1.0.0:20170426T081412Z
[...snipped...]
x11/library/libdrm
2.4.74-1.154.1.0.0 -> 2.4.75-1.154.1.0.0
Editable files to change:
Remove:
etc/lvm/devpath
etc/lvm/lock
etc/lvm/md.cf
etc/lvm/md.ctlrmap
etc/lvm/md.tab
etc/lvm/mddb.cf
etc/lvm/runtime.cf
etc/skel/local.cshrc
etc/skel/local.login
etc/skel/local.profile
kernel/drv/md.conf
Install:
etc/skel/.kshrc
Update:
etc/.login
etc/acct/holidays
etc/default/login
etc/motd
etc/profile
etc/skel/.profile
root/.bashrc
root/.profile
===== EOF
So, that looks ok, and I felt comfortable to bite the bullet:
pfexec pkg update 2>&1 | tee update3.txt
===== updates3.txt:
x25789 at xsos2:~$ pfexec pkg update 2>&1 | tee update3.txt
Startup: Refreshing catalog 'sonicle.com' ... Done
Planning: Solver setup ... Done
Planning: Running solver ... Done
Planning: Finding local manifests ... Done
Planning: Package planning ... Done
Planning: Merging actions ... Done
Planning: Checking for conflicting actions ... Done
Planning: Consolidating action changes ... Done
Planning: Evaluating mediators ... Done
Planning: Planning completed in 41.56 seconds
Packages to remove: 1
Packages to install: 1
Packages to update: 372
Create boot environment: Yes
Create backup boot environment: No
Download: 0/4293 items 0.0/135.8MB 0% complete
Download: 423/4293 items 5.0/135.8MB 3% complete
Download: 1151/4293 items 37.6/135.8MB 27% complete
Download: 3164/4293 items 98.0/135.8MB 72% complete
Download: 3932/4293 items 126.9/135.8MB 93% complete
Download: Completed 135.75 MB in 21.27 seconds (0B/s)
Actions: 1/5562 actions (Removing old actions)
Actions: 328/5562 actions (Installing new actions)
Actions: 678/5562 actions (Updating modified actions)
Actions: 1904/5562 actions (Updating modified actions)
Actions: 2398/5562 actions (Updating modified actions)
Actions: 2779/5562 actions (Updating modified actions)
Actions: 3637/5562 actions (Updating modified actions)
Actions: 4614/5562 actions (Updating modified actions)
Actions: 5559/5562 actions (Updating modified actions)
Actions: Completed 5562 actions in 37.26 seconds.
Done
Done
Done
Done
A clone of xsos-2 exists and has been updated and activated.
On the next boot the Boot Environment xsos-4 will be
mounted on '/'. Reboot when ready to switch to this updated BE.
[...snipped...]
===== EOF
That went fine, and a new BE is indeed created:
$ beadm list
BE Active Mountpoint Space Policy Created
xsos-2 N / 83.5K static 2017-04-10 15:49
xsos-2-backup-1 - - 64.0K static 2017-04-11 16:02
xsos-3 - - 541M static 2017-05-06 00:52
xsos-4 R - 20.1G static 2017-05-06 13:20
$ zfs list
NAME USED AVAIL REFER MOUNTPOINT
rpool 19.9G 3.81G 34K /rpool
rpool/ROOT 16.8G 3.81G 19K legacy
rpool/ROOT/xsos-2 83.5K 3.81G 11.8G /
rpool/ROOT/xsos-2-backup-1 64K 3.81G 11.7G /
rpool/ROOT/xsos-3 541M 3.81G 11.8G /tmp/tmpd7c8I0
rpool/ROOT/xsos-4 16.3G 3.81G 11.8G /
rpool/dump 1.50G 3.81G 1.50G -
rpool/export 15.0M 3.81G 19K /export
[...snipped...]
On reboot, grub correctly defaults to the new BE, xsos-4, and the
BE list looks good.
$ beadm list
BE Active Mountpoint Space Policy Created
xsos-2 - - 14.9M static 2017-04-10 15:49
xsos-2-backup-1 - - 64.0K static 2017-04-11 16:02
xsos-3 - - 541M static 2017-05-06 00:52
xsos-4 NR / 20.2G static 2017-05-06 13:20
$ zfs list
NAME USED AVAIL REFER MOUNTPOINT
rpool 20.0G 3.77G 34K /rpool
rpool/ROOT 16.8G 3.77G 19K legacy
rpool/ROOT/xsos-2 14.9M 3.77G 11.8G /
rpool/ROOT/xsos-2-backup-1 64K 3.77G 11.7G /
rpool/ROOT/xsos-3 541M 3.77G 11.8G /tmp/tmpd7c8I0
rpool/ROOT/xsos-4 16.3G 3.77G 11.8G /
rpool/dump 1.50G 3.77G 1.50G -
rpool/export 15.0M 3.77G 19K /export
[...snipped...]
Obviously, the xsos-3 BE is obsolete and probably not
healthy, so I destroyed it.
$ pfexec beadm destroy xsos-3
Are you sure you want to destroy xsos-3?
This action cannot be undone (y/[n]): y
Destroyed successfully
That succeeded and the system boots fine.
$ beadm list
BE Active Mountpoint Space Policy Created
xsos-2 - - 14.9M static 2017-04-10 15:49
xsos-2-backup-1 - - 64.0K static 2017-04-11 16:02
xsos-4 NR / 20.2G static 2017-05-06 13:20
$ zfs list
NAME USED AVAIL REFER MOUNTPOINT
rpool 19.4G 4.32G 33.5K /rpool
rpool/ROOT 16.3G 4.32G 19K legacy
rpool/ROOT/xsos-2 14.9M 4.32G 11.8G /
rpool/ROOT/xsos-2-backup-1 64K 4.32G 11.7G /
rpool/ROOT/xsos-4 16.3G 4.32G 11.8G /
rpool/dump 1.50G 4.32G 1.50G -
rpool/export 15.0M 4.32G 19K /export
[...snipped...]
Thanks for your support!
--
Best Regards,
Kees Nuyt
More information about the XStreamOS-discuss
mailing list