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

How to backup machine for new OS?

26 views
Skip to first unread message

Bill Brown

unread,
May 16, 2013, 7:42:30 AM5/16/13
to
Hi guys I have a Solaris 10 development box and I can't install Solaris
Studio 12.3 because of missing patches. Looks like the latest Solaris has
the necessary patches already so maybe the easy way is to install that on
this box. What is the best way to backup my /export/home and other locally
built directories and zones so I can try to get things back to normal after
installing a newer Solaris? Worst case I can just copy a few directory trees
over NFS but I don't know how to backup zones. It took a long time to set
this up and I don't want to go through that again if possible.

Thanks,

Bill
--

John D Groenveld

unread,
May 16, 2013, 9:12:24 AM5/16/13
to
In article <kn2gn6$p4i$1...@speranza.aioe.org>,
Bill Brown <bbr...@bbrownit.com> wrote:
>over NFS but I don't know how to backup zones. It took a long time to set

shutdown the zones, detach them, and then back them up along with the export
of their zonecfgs.

John
groe...@acm.org

ITguy

unread,
May 16, 2013, 6:37:50 PM5/16/13
to
> Hi guys I have a Solaris 10 development box and I can't install Solaris
> Studio 12.3 because of missing patches.

Installing patches isn't hard...

> Looks like the latest Solaris has the necessary patches already so maybe
> the easy way is to install that on this box. What is the best way to backup my
> /export/home and other locally built directories and zones so I can try to get
> things back to normal after installing a newer Solaris?

Maybe not the easiest way. Just how old is this Solaris? Are you on ZFS root? Live Upgrade with ZFS is awesome.

> Worst case I can just copy a few directory trees
> over NFS but I don't know how to backup zones. It took a long time to set
> this up and I don't want to go through that again if possible.

Even if you use Live Upgrade, you obviously care about this data and should learn how to back it up. I suggest making ZFS snapshots and sending them either to another system or backup media.

Stefan Krueger

unread,
May 16, 2013, 6:53:10 PM5/16/13
to
Hi Bill,

are you sure there are missing patches? IIRC solaris studio ships with
all the necessary OS patches, see

http://docs.oracle.com/cd/E24457_01/html/E21988/gimhj.html#scrolltoc

"Several operating system patches are required for the proper
operation of the compilers and tools in the Oracle Solaris Studio 12.3
release on the Solaris OS (see Appendix D, Patch Identification
Numbers and Descriptions). To install the required Solaris OS patches,
you can run the install_patches.sh utility that is included in the
product download."

PS: Instead of installing from scratch you could also use liveupgrade…

Bill Brown

unread,
May 19, 2013, 6:25:48 AM5/19/13
to
Hi John,

I was looking over the man page but I get the impression detach is supposed
to be used when you are actually moving the zone from one system to
another. I still don't get why you would have to do that but ok. In this
case it's only I need to backup the zone and then reinstall it on the same
box after installing a later Solaris. Is there any place to find a writeup
on what detach does and why it might be used?

Thanks,

Bill

Bill Brown

unread,
May 19, 2013, 6:28:21 AM5/19/13
to
Hi Stefan,

There are some but not all patches in the tarball. Specifically for whatever
reason they decided not to include a kernel patch I think the number is
144500 but don't quote me on it.

I have not tried liveupgrade and I'm not sure how to do it. If I can safely
backup the zones it's probably easier for me to reinstall and hopefully not
have to do that again.

John D Groenveld

unread,
May 19, 2013, 6:08:03 PM5/19/13
to
In article <kna9g5$ftu$2...@speranza.aioe.org>,
Bill Brown <bbr...@bbrownit.com> wrote:
>There are some but not all patches in the tarball. Specifically for whatever
>reason they decided not to include a kernel patch I think the number is
>144500 but don't quote me on it.

Do you require the kernel patch?
<URL:http://docs.oracle.com/cd/E24457_01/html/E21988/gptch.html>

>I have not tried liveupgrade and I'm not sure how to do it. If I can safely
>backup the zones it's probably easier for me to reinstall and hopefully not
>have to do that again.

The LU docs:
<URL:http://docs.oracle.com/cd/E26505_01/html/E28038/index.html>
lu may not be easy depending on whether
you have a ZFS root or if not, unused Solaris slices for the
new boot environment.
How is your system currently configured?

If you're going to reinstall, you may be better off moving
to Solaris 11.1 and migrating your existing zones to Solaris 10
brand zones.
<URL:http://docs.oracle.com/cd/E26502_01/html/E36219/glhcg.html#zoneprep-1>

John
groe...@acm.org

Bill Brown

unread,
May 20, 2013, 5:03:04 AM5/20/13
to
Hi John,

That's the one. For whatever reason they decided not to include that patch
in the tarball and I can't install Solaris 11 on this box because it is not
supported. Everything is ZFS but it's an older Sparc box.

Thanks,

Bill

John D Groenveld

unread,
May 20, 2013, 5:32:06 AM5/20/13
to
In article <kncos8$qdp$1...@speranza.aioe.org>,
Bill Brown <bbr...@bbrownit.com> wrote:
>That's the one. For whatever reason they decided not to include that patch

You don't need it.

>in the tarball and I can't install Solaris 11 on this box because it is not
>supported. Everything is ZFS but it's an older Sparc box.

backup and then give liveupgrade to the latest Solaris 10 release
a try.

John
groe...@acm.org

Bill Brown

unread,
May 20, 2013, 7:27:44 AM5/20/13
to
Hi John,

I got a message from the installer saying 144500 was needed so I don't
understand why you are saying it's not needed unless you are saying if I
liveupgrade I don't need it. Which was sort of my question from the
beginning, what's the best way for me to back my zones up so I can
reinstall.

I'm still confused about what the point of detach is and can't get much info
from the man page on that.

I would like to backup and install but I don't know the best way to do
that. I guess if I make a tarball of everything under / I will lose all my
ZFS filesystems if I had to restore from that. So maybe the question now
becomes how to backup a whole system so I can either liveupgrade it however
that works or selectively restore zones etc.

Thanks,

Bill

John D Groenveld

unread,
May 20, 2013, 10:10:38 AM5/20/13
to
In article <knd1bg$oua$1...@speranza.aioe.org>,
Bill Brown <bbr...@bbrownit.com> wrote:
>I got a message from the installer saying 144500 was needed so I don't

The Solaris Studio docs say the kernel patch is only needed
for two Studio functions.

>I'm still confused about what the point of detach is and can't get much info
>from the man page on that.

It prepares a zone to be attached to a new or upgraded system.

>I would like to backup and install but I don't know the best way to do
>that. I guess if I make a tarball of everything under / I will lose all my
>ZFS filesystems if I had to restore from that. So maybe the question now
>becomes how to backup a whole system so I can either liveupgrade it however
>that works or selectively restore zones etc.

shutdown your zones, detach them, snapshot and send your filesystem snapshots
to your NFS server, live upgrade, boot your new BE, "attach -u" your zones and
boot your zones.

John
groe...@acm.org

Bill Brown

unread,
May 21, 2013, 7:04:45 AM5/21/13
to
Thanks John. The warnings from the installer about missing patches seemed
ominous. I'll try backing the system up as you wrote.

Bill
0 new messages