Posts

Showing posts from 2015

HPVM creation

1> Install the HPVM package -- VMMGR_A.6.3.0.91593_HP-UX_B.11.31_IA.depot 2> Create VM # hpvmcreate -P hpux11v1 -c2 -r16G # # ioscan -kfnNC disk Class     I  H/W Path  Driver S/W State   H/W Type     Description =================================================================== disk      3  64000/0xfa00/0x1  esdisk   CLAIMED     DEVICE       HP      LOGICAL VOLUME                       /dev/disk/disk3      /dev/disk/disk3_p2   /dev/rdisk/disk3     /dev/rdisk/disk3_p2                       /dev/disk/disk3_p1   /dev/disk/disk3...

Build new Solaris 11

root@edus005v1:~# svccfg -s name-service/switch svc:/system/name-service/switch> listprop config config                      application        config/value_authorization astring     solaris.smf.value.name-service.switch config/default             astring     files config/host                astring     "files dns" config/printer             astring     "user files" svc:/system/name-service/switch> setprop config/group = astring: "files nis" svc:/system/name-service/switch> setprop config/automount= astring: "files nis" svc:/system/name-service/switch> exit ...

Create/install Solaris 10 zone (share IP) in Solaris 11 global zone

root@edus006:/etc/zones # zonecfg -z sol10t2000 zonecfg:sol10t2000> create -b zonecfg:sol10t2000> set brand=solaris10 zonecfg:sol10t2000> set zonepath=/sol10t2000 zonecfg:sol10t2000> set hostid=842d66c8 zonecfg:sol10t2000> set autoboot=true zonecfg:sol10t2000> set ip-type=shared zonecfg:sol10t2000> add net zonecfg:sol10t2000:net> set address=9.55.36.57 zonecfg:sol10t2000:net> set physical=net3 zonecfg:sol10t2000:net> set defrouter=9.55.36.1 zonecfg:sol10t2000:net> end zonecfg:sol10t2000> verify zonecfg:sol10t2000> commit zonecfg:sol10t2000> exit root@edus006:/etc/zones # zfs create -o mountpoint=/sol10t2000 -o quota=100g ldom/sol10t2000 root@edus006:/etc/zones # zoneadm -z sol10t2000 install -u -a /mnt/ZONE/sol10t2000.flar /sol10t2000 must not be group readable. /sol10t2000 must not be group executable. /sol10t2000 must not be world readable. /sol10t2000 must not be world executable. changing zonepath permissions to 0700. Progress being log...

Create Solaris 11 LDOM

root@edus005 :~# ldm add-vcc port-range=5000-5100 primary-vcc0 primary root@edus005 :~# ldm add-vsw net-dev=net0 primary-vsw0 primary root@edus005 :~# ldm add-vds primary-vds0 primary root@edus005 :~# ldm add-vsw net-dev=net3 primary-vsw3 primary root@edus005 :~# ldm list-services primary VCC     NAME             LDOM             PORT-RANGE     primary-console  primary          5000-5100 VSW     NAME             LDOM             MAC               NET-DEV   ID   DEVICE     LINKPROP   DEFAULT-VLAN-ID PVID VID    ...

VIOS TIPs

HMC image locates: /extra/viosimages/2.2.3.4 To install VIO server from HMC: installios To erase the previous setting: installios -u hscroot@P7504HMC:~> cat /etc/nimol.conf # nimol.conf file NIMOL_SERVER 9.22.217.30 ORIGINAL_FILES_DIR /var/tmp/nimol_original RPCBIND_STARTED yes NFS_STARTED yes REMOTE_ACCESS_METHOD /usr/bin/rsh NIMOL_TFTPBOOT /tftpboot TFTP_ENABLED yes REMOTE_SYSLOG_ENABLED yes HMC_SYSLOG_CONF_MODIFIED yes NIMOL_SYSLOG_FACILITY local2 NIMOL_SUBNET 9.22.217.0 NIMOL_BOOTREPLYD yes LABEL default1 /extra/default1 processing hscroot@P7504HMC:~>  installios -F -e -R default1 Logging session output to /tmp/installios.24173.log. nimol_config WARNING: error from command /bin/awk nimol_config MESSAGE: Executed /usr/sbin/exportfs -ua. nimol_config MESSAGE: Executed /usr/sbin/exportfs -a. nimol_config MESSAGE: Removed /tftpboot/default1.chrp.mp.ent. nimol_config MESSAGE: Removed /extra/default1. nimol_config MESSAGE: Removed "LABEL def...

Prepare VIOS for the LPAR

Total 6 internal disks. not SAN/storage. So I prefer mirror the rootvg as well as VIOS. Here are the steps: # lsvg rootvg VIOS # lspv hdisk0          none                                None           hdisk1          00f92e0cb02e0057                    VIOS            active hdisk2          00f92e0c5334bc72                    rootvg          active hdisk3          none                                None           hdisk4          none                 ...

HPUX VM boot from select disk

# hpvmconsole qaitan01    vMP MAIN MENU          CO: Console          CM: Command Menu          CL: Console Log          SL: Show Event Logs          VM: Virtual Machine Menu          HE: Main Help Menu           X: Exit Connection [qaitan01] vMP> CO         (Use Ctrl-B to return to vMP main menu.) Shell> help                                                          ...

Solaris LDOM

root@edus005:~# ldm list NAME             STATE      FLAGS   CONS    VCPU  MEMORY   UTIL  UPTIME primary          active     -n-c--  UART    64    65024M   0.1%  10m root@edus005:~# ldm add-vconscon port-range=5000-5100 primary-console primary root@edus005:~# svcadm enable vntsd root@edus005:~# svcs vntsd STATE          STIME    FMRI online          9:10:00 svc:/ldoms/vntsd:default root@edus005:~# ldm set-vcpu 4 primary root@edus005:~# ldm start-reconf primary Initiating a delayed reconfiguration operation on the primary domain. All configuration changes for other domains are disabled until the primary domain reboots, at which tim...