Question:
I want to migrate Sunfire v240 server with sun4u architecture and Solaris 10 update 6 OS to LDOM server (virtual) with sun4v architecture. According to the instructions http://docs.oracle.com/cd/E19253-01/821-0436/samekernel/index.html I add the line PLATFORM_GROUP = sun4v to the file /var/sadm/system/admin/.platform.
# cat /var/sadm/system/admin/.platform
PLATFORM_GROUP=sun4u
INST_ARCH=sparc
PLATFORM_NAME=SUNW,SPARCstation-fusion
PLATFORM_ID=SUNW,SPARCstation-fusion
IN_PLATFORM_GROUP=sun4u
PLATFORM_NAME=FJSV,GP
PLATFORM_ID=FJSV,GP
IN_PLATFORM_GROUP=sun4u
PLATFORM_NAME=FJSV,GPUU
PLATFORM_ID=FJSV,GPUU
IN_PLATFORM_GROUP=sun4u
PLATFORM_NAME=SUNW,Ultra-Enterprise-10000
PLATFORM_ID=SUNW,Ultra-Enterprise-10000
IN_PLATFORM_GROUP=sun4u
PLATFORM_NAME=SUNW,Ultra-1
PLATFORM_ID=SUNW,Ultra-1
IN_PLATFORM_GROUP=sun4u
PLATFORM_GROUP=sun4v
I start creating an image on an NFS mounted directory
flarcreate -n S10U6hybrid -U "content_architectures = sun4u, sun4v" \ -c -x / oracle /mnt/S10U6hybrid.flar
# ls -lh /mnt/S10U5hybrid.flar
-rw-r--r-- 1 nobody nobody 36G Jun 20 15:44 /mnt/S10U5hybrid.flar
# flar -i /mnt/S10U5hybrid.flar
archive_id=dc099d1c8d058f90b6c1bc9f0157a86e
files_archived_method=cpio
creation_date=20160620081531
creation_master=tjk-moz
content_name=S10U6hybrid
creation_node=hostname
creation_hardware_class=sun4u
creation_platform=SUNW,Sun-Fire-V240
creation_processor=sparc
creation_release=5.10
creation_os_name=SunOS
creation_os_version=Generic_150400-24
files_compressed_method=none
files_archived_size=38710129967
files_unarchived_size=38710129967
content_architectures=sun4v
type=FULL
content_architectures=sun4u,sun4v
/usr/sbin/flar[40]: print: bad option(s)
the presence of this line / usr / sbin / flar [40]: print: bad option (s) is alarming, but I got images without it, since I repeatedly tried to recreate images and even created an image of another server with the same end result, about which below
On the virtual server I'm loaded with the Jumpstart version of Solaris 10 update 7 (one update higher than the original server, alas, the original one cannot be downloaded somewhere)
ok> boot net - w
I tried to boot with the option – install, the result is the same
I select the Flash install option, enter the address of the path to NFS and get ERROR: Could not find archive go into single user mode, copy the image to the local disk, specify the path to it and again ERROR: Could not find archive Display with Jumpstart single user
# df -h
Filesystem size used avail capacity Mounted on
/ramdisk-root:a 170M 165M 0K 100% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 30G 352K 30G 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
sharefs 0K 0K 0K 0% /etc/dfs/sharetab
swap 30G 99M 30G 1% /tmp
/tmp/dev 30G 99M 30G 1% /dev
fd 0K 0K 0K 0% /dev/fd
192.168.0.30:/sol10u7_install
300G 239G 58G 81% /cdrom
df: cannot statvfs /platform/sun4v/lib/libc_psr.so.1: Operation not applicable
df: cannot statvfs /platform/sun4v/lib/sparcv9/libc_psr.so.1: Operation not applicable
swap 30G 8K 30G 1% /tmp/root/var/run
/usr/sbin/install.d/install_config
170M 165M 0K 100% /tmp/_install_config
192.168.0.29:/opt/moz/
404G 61G 339G 16% /mnt
# ls -l /mnt
total 126132592
-rw-r--r-- 1 nobody nobody 38586476847 Jun 20 15:44 S10U5hybrid.flar
Tried booting from Solaris 10u11 jumpstart, tried to find the image via FTP, every time the file was found error. How to solve it?
Answer:
The root of the problem is that the source system does not have the platform-specific sun4v files that it needs to work. Actually, they are only on the source iso with the distribution kit and cannot get into the flash archive because they simply are not on the source system.
The instructions to which you indicate this also says:
At this point, the Sun4V machine may not boot.
To solve the problem, the document suggests
Upgrade the Sun4V machine using either a network image or a DVD image.
During this upgrade (you need to use Jumpstart in install_type upgrade mode, or as advised by the instruction you specified boot the Sun4V image from that network image, selecting the upgrade option ), the missing platform-dependent sun4v files should be automatically installed on the system. Thus, the idea you have conceived turns out to be quite labor-intensive.
The easiest way to quickly drag and drop a lot of old sun4u systems onto sun4v is not to spawn domains, but drag and drop them into Branded zones. To do this, you first need to create a configuration for the zone
zonecfg -z zonename
create -t SUNWsolaris10
set zonepath=/zones/zonename
set ip-type=exclusive
add net
set physical=s10zone0
end
verify
commit
exit
, then load its contents from the archive.
zoneadm -z zonename install -a /path/to/achhive.flar -u