Autor Thema: Denksportaufgabe: Solaris Migration/Upgrade  (Gelesen 7333 mal)

Offline Ebbi

  • Sobl Administrator
  • Sobl Guru
  • *****
  • Beiträge: 1315
  • Minusgeek
Re: Denksportaufgabe: Solaris Migration/Upgrade
« Antwort #15 am: 12. August 2009, 09:48:12 »
Man braucht ein SMI label.
Danke, das habe ich gestern abend noch gefunden. :)
Aber warum steht sowas nicht im Live Upgrade Guide, wenn es so wichtig ist? ???
Im Guide steht
Zitat
Create a ZFS root pool on a slice.
# zpool create rpool c0t1d0s5
Also mache ich das so.
Dass man für eine Anleitung eine weitere Anleitung braucht, ist suboptimal.

Aber egal, ich bin weiter: :)
# lucreate -c c1t0d0s0 -n new-zfsBE -p rpool
Analyzing system configuration.
Comparing source boot environment <c1t0d0s0> file systems with the file
system(s) you specified for the new boot environment. Determining which
file systems should be in the new boot environment.
Updating boot environment description database on all BEs.
Updating system configuration files.
The device </dev/dsk/c1t1d0s0> is not a root device for any boot environment; cannot get BE ID.
Creating configuration for boot environment <new-zfsBE>.
Source boot environment is <c1t0d0s0>.
Creating boot environment <new-zfsBE>.
Creating file systems on boot environment <new-zfsBE>.
Creating <zfs> file system for </> in zone <global> on <rpool/ROOT/new-zfsBE>.
Populating file systems on boot environment <new-zfsBE>.
Checking selection integrity.
Integrity check OK.
Populating contents of mount point </>.
Copying.
Creating shared file system mount points.
Creating compare databases for boot environment <new-zfsBE>.
Creating compare database for file system </rpool/ROOT>.
Creating compare database for file system </>.
Updating compare databases on boot environment <new-zfsBE>.
Making boot environment <new-zfsBE> bootable.
Creating boot_archive for /.alt.tmp.b-aJb.mnt
updating /.alt.tmp.b-aJb.mnt/platform/sun4u/boot_archive
Population of boot environment <new-zfsBE> successful.
Creation of boot environment <new-zfsBE> successful.
# lustatus
Boot Environment           Is       Active Active    Can    Copy
Name                       Complete Now    On Reboot Delete Status
-------------------------- -------- ------ --------- ------ ----------
c1t0d0s0                   yes      yes    yes       no     -
new-zfsBE                  yes      no     no        yes    -


sonnenblen.de - Das unabhängige Sun User Forum

Re: Denksportaufgabe: Solaris Migration/Upgrade
« Antwort #15 am: 12. August 2009, 09:48:12 »

Offline Ebbi

  • Sobl Administrator
  • Sobl Guru
  • *****
  • Beiträge: 1315
  • Minusgeek
Re: Denksportaufgabe: Solaris Migration/Upgrade
« Antwort #16 am: 12. August 2009, 10:31:06 »
TA-DAA! :)
# lustatus
Boot Environment           Is       Active Active    Can    Copy
Name                       Complete Now    On Reboot Delete Status
-------------------------- -------- ------ --------- ------ ----------
c1t0d0s0                   yes      no     no        yes    -
new-zfsBE                  yes      yes    yes       no     -

Dann das alte BE löschen:
# ludelete c1t0d0s0
Determining the devices to be marked free.
Updating boot environment configuration database.
Updating boot environment description database on all BEs.
Updating all boot environment configuration databases.
Boot environment <c1t0d0s0> deleted.

TO DO:
- neue zweite Platte einbauen
- ZFS-Mirror erstellen

Offline DukeNuke2

  • Sobl Guru
  • *****
  • Beiträge: 571
  • Soulman
    • Wo die Sonne lacht
Re: Denksportaufgabe: Solaris Migration/Upgrade
« Antwort #17 am: 12. August 2009, 10:46:01 »
Na das sieht doch prima aus... Kannste bald bei uns anfangen ;).

Greets,
DN2

Offline Ebbi

  • Sobl Administrator
  • Sobl Guru
  • *****
  • Beiträge: 1315
  • Minusgeek
Re: Denksportaufgabe: Solaris Migration/Upgrade
« Antwort #18 am: 12. August 2009, 10:50:38 »
Ich glaub's einfach nicht: :o
# zpool attach -f rpool c1t1d0s0 c1t0d0s0
cannot attach c1t0d0s0 to c1t1d0s0: device is too small

c1t0d0 = 68.35GB (SUN72G)
c1t1d0 = 68.43GB (FUJITSU-MAW3073FC-0102)

Jetzt kann ich gleich ein Live Upgrade von ZFS auf ZFS auf die kleinere Platte üben.  ::)


Kannste bald bei uns anfangen ;)
Bei Oracle? ;)
Neulich habe ich durch Zufall entdeckt, dass es auch hier eine Geschäftsstelle gibt.


« Letzte Änderung: 12. August 2009, 11:04:39 von Ebbi »

Offline Drusus

  • Sobl Master
  • ****
  • Beiträge: 424
  • Intentionally left blank
Re: Denksportaufgabe: Solaris Migration/Upgrade
« Antwort #19 am: 12. August 2009, 12:45:05 »
Moin,

falls du die ganze Disk in den Zpool nehmen willst, dann nimm "zpool attach -f rpool c1t1d0 c1t0d0" (d.h. ohne das s0 am Ende). Die Fehlermeldung koennte daher kommen das auf Slice 0 hier in der Tat noch eine zu kleine Partiion liegt (laesst sich mit prtvtoc anzeigen).

Tschau,
  Drusus.

Offline Ebbi

  • Sobl Administrator
  • Sobl Guru
  • *****
  • Beiträge: 1315
  • Minusgeek
Re: Denksportaufgabe: Solaris Migration/Upgrade
« Antwort #20 am: 12. August 2009, 12:47:56 »
falls du die ganze Disk in den Zpool nehmen willst, dann nimm "zpool attach -f rpool c1t1d0 c1t0d0" (d.h. ohne das s0 am Ende). Die Fehlermeldung koennte daher kommen das auf Slice 0 hier in der Tat noch eine zu kleine Partiion liegt (laesst sich mit prtvtoc anzeigen).
Da ich von UFS komme, scheint das aber wegen des SMI-Labels nicht zu funktionieren.
Beim EFI-Label kann ich die ganze Disk nehmen, aber bei SMI brauche ich einen Slice.

Umgekehrt funktioniert es aber: :)
# zpool destroy -f rpool
# zpool attach -f rpool2 c1t0d0s0 c1t1d0s0
# zpool status
  pool: rpool2
 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.
 scrub: resilver in progress for 0h2m, 22.90% done, 0h8m to go
config:

        NAME          STATE     READ WRITE CKSUM
        rpool2        ONLINE       0     0     0
          mirror      ONLINE       0     0     0
            c1t0d0s0  ONLINE       0     0     0
            c1t1d0s0  ONLINE       0     0     0

errors: No known data errors

Hurra, fertig! ;D