From: Dolphin on
Hi,

This is the 1st time I'm performing patch application by splitting the
SVM / mirror as I want to retain the old OS image in case I need it
back.

Please correct me if the following steps are wrong:

Assuming
d1 is /
d1: Mirror
Submirror 0: d21
Submirror 1: d11

1) Boot the server into single user mode
2) metadetach d1 d11 (do I have to perform a reboot before step 3?)
3) run the patch script
4) metattach d1 d11 (after application tested OK)
5) If application tested not OK, how to revert back to use the old OS
image?

Thanks in advance for any advice and pointer.

From: YTC#1 on
On Tue, 26 Jan 2010 04:11:29 -0800, Dolphin wrote:

> Hi,
>
> This is the 1st time I'm performing patch application by splitting the SVM
> / mirror as I want to retain the old OS image in case I need it back.
>
> Please correct me if the following steps are wrong:
>
> Assuming
> d1 is /
> d1: Mirror
> Submirror 0: d21
> Submirror 1: d11
>
> 1) Boot the server into single user mode 2) metadetach d1 d11 (do I have
> to perform a reboot before step 3?) 3) run the patch script
> 4) metattach d1 d11 (after application tested OK) 5) If application tested
> not OK, how to revert back to use the old OS image?
>
> Thanks in advance for any advice and pointer.

1) I'd always save your vfstab and system files before a split
2) use
lockfs -af
*before metadetach*
(or bad things can happen if you need to recover from the underlying devs)

Yes, I would boot before patching as a sanity check that

Personally, I prefer Live Upgrade these days.


--
Bruce Porter
XJR1300SP, XJ900F, GSX250, Pegaso 650 Trail
POTM#1(KoTL), WUSS#1 , YTC#1(bar), OSOS#2(KoTL) , DS#3 , IbW#18 ,Apostle#8
"The internet is a huge and diverse community and not every one is friendly"
http://www.ytc1.co.uk
There *is* an alternative! http://www.openoffice.org/

From: Tim Bradshaw on
On 2010-01-26 12:11:29 +0000, Dolphin said:

> This is the 1st time I'm performing patch application by splitting the
> SVM / mirror as I want to retain the old OS image in case I need it
> back.

A good approach to this is to use Live Upgrade:
- Split the mirrors
- build new one-sided-mirrors on the split-off-submirrors
- create a LU BE on the new one-sided mirrors
- patch with luupgrade -t
- Activate new BE and boot
- (back out if need be the way luactivate tells you)
- once you are sure you are OK, then:
- delete old BE
- take old mirrors to bits
- attach old submirrors to new mirrors

The advantage of doing this is that LU manages the fiddly bits such as
getting vfstab right, getting the OBP boot device right and so on.

Caveats:
- make sure you have the right LU packages (up-to-date ones)
- early Solaris 10 with zones is a serious pain

From: Dolphin on
On Jan 27, 6:31 am, Tim Bradshaw <t...(a)tfeb.org> wrote:
> On 2010-01-26 12:11:29 +0000, Dolphin said:
>
> > This is the 1st time I'm performing patch application by splitting the
> > SVM / mirror as I want to retain the old OS image in case I need it
> > back.
>
> A good approach to this is to use Live Upgrade:
> - Split the mirrors
> - build new one-sided-mirrors on the split-off-submirrors
> - create a LU BE on the new one-sided mirrors
> - patch with luupgrade -t
> - Activate new BE and boot
> - (back out if need be the way luactivate tells you)
> - once you are sure you are OK, then:
> - delete old BE
> - take old mirrors to bits
> - attach old submirrors to new mirrors
>
> The advantage of doing this is that LU manages the fiddly bits such as
> getting vfstab right, getting the OBP boot device right and so on.
>
> Caveats:
> - make sure you have the right LU packages (up-to-date ones)
> - early Solaris 10 with zones is a serious pain

I have no knowledge of live upgrade, where can I get the information?
From: Richard B. Gilbert on
Dolphin wrote:
> On Jan 27, 6:31 am, Tim Bradshaw <t...(a)tfeb.org> wrote:
>> On 2010-01-26 12:11:29 +0000, Dolphin said:
>>
>>> This is the 1st time I'm performing patch application by splitting the
>>> SVM / mirror as I want to retain the old OS image in case I need it
>>> back.
>> A good approach to this is to use Live Upgrade:
>> - Split the mirrors
>> - build new one-sided-mirrors on the split-off-submirrors
>> - create a LU BE on the new one-sided mirrors
>> - patch with luupgrade -t
>> - Activate new BE and boot
>> - (back out if need be the way luactivate tells you)
>> - once you are sure you are OK, then:
>> - delete old BE
>> - take old mirrors to bits
>> - attach old submirrors to new mirrors
>>
>> The advantage of doing this is that LU manages the fiddly bits such as
>> getting vfstab right, getting the OBP boot device right and so on.
>>
>> Caveats:
>> - make sure you have the right LU packages (up-to-date ones)
>> - early Solaris 10 with zones is a serious pain
>
> I have no knowledge of live upgrade, where can I get the information?

Google for: "Live Upgrade site:sun.com"