I've looked at
http://docs.sun.com/app/docs/doc/819-5461/ggrkz?a=view
The example uses the syntax:
# lucreate -c ufs509BE -n zfs509BE -p mpool
done what it said and created a ZFS storage pool with a a slice.
But any attempt to use the above example fails, as lucreate does not
appear to support the -p option on Solaris 10 update 4.
root@t2 # zpool list
NAME SIZE USED AVAIL CAP HEALTH ALTROOT
rootpool 100G 88K 100G 0% ONLINE -
tmppool 24.6G 89K 24.6G 0% ONLINE -
root@t2 # lucreate -A "100 GB root on second disk in T2" -n kirkby1 -p
rootpool
ERROR: unknown option -- p
Usage: lucreate -n BE_name [ -A BE_description ] [ -c BE_name ]
[ -C ( boot_device | - ) ] [ -f exclude_list-file [ -f ... ] ]
[ -I ]
[ -l error_log-file ] [ -M slice_list-file [ -M ... ] ]
[ -m mountPoint:devicePath:fsOptions [ -m ... ] ] [ -o out_file ]
[ -s ( - | source_BE_name ) ] [ -x exclude_dir/file [ -x ... ]
] [ -X ]
[ -y include_dir/file [ -y ... ] ] [ -Y include_list-file [ -Y
... ] ]
[ -z filter_list-file ]
In fact, in the lucreate web page, there is not a single reference to
work word 'zfs'. Any ideas of the syntax to upgrade this? The pool is
created on a single slice
root@t2 # zpool status rootpool
pool: rootpool
state: ONLINE
scrub: none requested
config:
NAME STATE READ WRITE CKSUM
rootpool ONLINE 0 0 0
c1t1d0s0 ONLINE 0 0 0
errors: No known data errors
root@t2 #
Any thoughts appreciated.
--
I respectfully request that this message is not archived by companies as
unscrupulous as 'Experts Exchange' . In case you are unaware,
'Experts Exchange' take questions posted on the web and try to find
idiots stupid enough to pay for the answers, which were posted freely
by others. They are leeches.
I mean I can find no reference in the man-page, not the web-page.
On option is probably to upgrade this using a UFS file system to Solaris
10 update 7, then create a boot environment with a ZFS file system. But
I'm not sure if that is best (or even a suitable) way to accomplish this.
>I'm trying to update a machine running Solaris 10 update 4 with a UFS
>root file system to one running Solaris 10 update 7 with a ZFS boot file
>system.
Did you begin by installing the Live Upgrade packages and patches
from S10 update 7? Typically, you cd to this directory on the
update 7 install image:
Solaris_10/Tools/Installers
and then run this command:
# ./liveupgrade20 -nodisplay -noconsole
--
-Gary Mills- -Unix Support- -U of M Academic Computing and Networking-
> I'm trying to update a machine running Solaris 10 update 4 with a UFS
> root file system to one running Solaris 10 update 7 with a ZFS boot file
> system.
[...]
> In fact, in the lucreate web page, there is not a single reference to
> work word 'zfs'. Any ideas of the syntax to upgrade this? The pool is
> created on a single slice
Hi,
the upgrade to ZFS root requires support in the tools (live upgrade
tools, package tools etc. and in ZFS). This feature was introduced in S10U6
so you need to be running S10U6 or higher (or equiv. patches)
to upgrade to a ZFS root. If you run older code the upgrade needs to
be done in two steps:
1. upgrade to S10U6 (or S10U7) with UFS root
2. create the root pool and use "lucreate -n <name> -p <pool>" to
actually move to ZFS root
Ronald
--
* The whole problem with the world is that fools and fanatics are always
* so certain of themselves, but wiser people so full of doubts.
* --Bertrand Russell
No, I did not. Is this method documented anywhere you know of?
However, i think I'll use the method suggested by Ronald Knuth to do
this in two stages - part of the reason for using the live upgrade is it
avoids possible issues with installing patches. Though slower, it is
probably the less risky.
It is the *only* way you should attempt the UFS->ZFS migration!
Create the pool after you upgrade and make sure you use a mirror!
Recovering a damaged single volume ZFS pool is much harder than
recovering a single volume UFS filesystem.
--
Ian Collins
OK, thanks for that. It seemed the least risky. way.
> Create the pool after you upgrade and make sure you use a mirror!
Unfortunately, I can't use a mirror until I am able to delete the
original boot environment. I don't have another disk. At the minute, the
machine has a 15 GB root file system on one disk, and nothing else. A
second disk has is not used at all.
My plan it to do a live upgrade to 7 onto a clean disk, and give that a
try to see if there are any major issues. Once I'm happy with the new
boot environment (S10u7 ZFS), I'll delete the original boot environment
(S10u4 UFS) and use the disk as a mirror.
This should be a lot better than the current setup, which is one UFS
root file system with no mirror and a second disk unused. 15 GB is used
out of a total of almost 300 GB (a pair of 147 GB disks).
I've moved things like /usr/local into remote file systems. Some other
stuff people have stuff in /opt I am not going to bother restoring, as
I'm not convinced any of it is very useful.
> Recovering a damaged single volume ZFS pool is much harder than
> recovering a single volume UFS filesystem.
>
Yes, I'm aware of that. Especially since you can't read a newer version
of ZFS on a machine not supporting that newer version. At least with
UFS, you can read it on just about any Solaris box.
This has always been the recommended practice.
"The release of the Solaris Live Upgrade packages must match the
release of the OS you are upgrading to. For example, if your current
OS is the Solaris 9 release and you want to upgrade to the Solaris 10
6/06 release, you need to install the Solaris Live Upgrade packages
from the Solaris 10 6/06 release." - http://docs.sun.com/app/docs/doc/819-5777/6n7raicl3
> No, I did not. Is this method documented anywhere you know of?
When using LU you must always use the LU packages from the OS you are
upgrading *to*. So, for instance, if you are migrating from 8 to 10,
the first thing you should do is remove any LU packages on the system,
and install those that came with the 10 release you are upgrading to
(and any patches for them).
This sounds weird until you think about what LU does. And yes, it is
the documented, official way to do this.
Thank you. That document looks quite old (Solaris 10 6/06 Installation
Guide) so I assume I need to remove than the two packages mentioned
there (SUNWlur SUNWluu)
I decided to try this on one of my own machines, which happens to have
the same release of Solaris 10 (update 4) of the one I really want to
update. Doing a grep of 'live'
# pkginfo | grep -i live
system SUNWfrlu French Live Upgrade
application SUNWlucfg Live Upgrade Configuration
application SUNWlur Live Upgrade (root)
application SUNWluu Live Upgrade (usr)
application SUNWluzone Live Upgrade (zones support)
So I assume I need those 5 packages removed, and installed from the
Solaris 10 DVD. (In actual fact, there are no zones, and I don't speak
French, but in theory it's those 5).
I removed those 5 from my own machine, and added them back from the
Solaris 10 DVD. But I get the warning about applying the patches. From
what I can make out, I need at a least 121430 which i can't get, as I
don't have a contract.
I'd be most surprised if the University of Washington, whose machine is
being updated does not have a contract, but I have no idea of who to
contact. If anyone from Sun reading this knows a contact name of who
might have access to patches at the University of Washington, perhaps
they can drop me an email:
Dr. David Kirkby
david....@onetel.net
>I wrote:
>>>> Did you begin by installing the Live Upgrade packages and patches
>>>> from S10 update 7? Typically, you cd to this directory on the
>>>> update 7 install image:
>>>> Solaris_10/Tools/Installers
>>>> and then run this command:
>>>> # ./liveupgrade20 -nodisplay -noconsole
>>> No, I did not. Is this method documented anywhere you know of?
>>
>> This has always been the recommended practice.
>Thank you. That document looks quite old (Solaris 10 6/06 Installation
>Guide) so I assume I need to remove than the two packages mentioned
>there (SUNWlur SUNWluu)
>So I assume I need those 5 packages removed, and installed from the
>Solaris 10 DVD. (In actual fact, there are no zones, and I don't speak
>French, but in theory it's those 5).
>I removed those 5 from my own machine, and added them back from the
>Solaris 10 DVD. But I get the warning about applying the patches. From
>what I can make out, I need at a least 121430 which i can't get, as I
>don't have a contract.
The Live Upgrade patches and packages should all be included on
the Solaris 10 DVD. They're installed by the liveupgrade20 script.
It adds missing packages as well.
Thank you.
Some of this Sun documentation gets a bit confusing, as you read one
thing in one place, and another elsewhere. It's difficult to know what
to believe some times. What's current when it is written, is often not
current a year later, but it does not get removed.
I looked in a 'Patches' directory which was empty.
http://www.sun.com/bigadmin/sundocs/articles/lu-patch.jsp
mentions 3 live upgrade patches.
I actually patched one of my own machine from 4 to 7 earlier today as a
test run, without installing the patches. I removed the following from
the update 4 version
system SUNWfrlu French Live Upgrade
application SUNWlucfg Live Upgrade Configuration
application SUNWlur Live Upgrade (root)
application SUNWluu Live Upgrade (usr)
application SUNWluzone Live Upgrade (zones support)
system SUNWbzip The bzip compression utility
then adding them back from the update 10 DVD.
It appears to have gone fine, with no problems.
$ cat /etc/release
Solaris 10 5/09 s10s_u7wos_08 SPARC
Copyright 2009 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 30 March 2009
But I'm not going to take unnecessary risks on the other machine.
I just run the liveupgrade20 script on another machine (Solaris 10
update 4). It appears to run ok, but I don't intending updating that
machine in the near future at least.
I should be able to get access to the latest patches somehow - I noticed
that the patch cluster '121430' was updated to 121430-37 on the 2nd of July,
so I assume that is more recent than what's on the Solaris 10u7 DVD.
>I removed those 5 from my own machine, and added them back from the
>Solaris 10 DVD. But I get the warning about applying the patches. From
>what I can make out, I need at a least 121430 which i can't get, as I
>don't have a contract.
No, just run this from the DVD:
# ./liveupgrade20 -nodisplay -noconsole
You only need to change SUNWlur and SUNWluu not the rest.
Casper
--
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
Thank you.
>I respectfully request that this message is not archived by companies >as
>unscrupulous as 'Experts Exchange' . In case you are unaware,
>'Experts Exchange' take questions posted on the web and try to find
>idiots stupid enough to pay for the answers, which were posted freely
>by others. They are leeches.
All you really need is your copyright notice!
Copyright 2009
Richard B. Gilbert
All rights reserved.
No, since that does not have a dig at Experts Exchange, which is my main
aim in that flippant signature.
In any case, under English law, you get copyright automatically I
believe (I'm not a lawyer I admit). So you don't need to actually claim
copyright on anything you write.
--