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_p3   /dev/rdisk/disk3_p1  /dev/rdisk/disk3_p3 disk      4  64000/0xfa00/0x3  esdisk   CLAIMED     DEVICE       IBM     2810XIV                       /dev/disk/disk4   /dev/rdisk/disk4 disk     11  64000/0xfa00/0x4  esdisk   CLAIMED     DEVICE       IBM     2810XIV                       /dev/disk/disk11   /dev/rdisk/disk11 disk     12  64000/0xfa00/0x8  esdisk   CLAIMED     DEVICE       IBM     2810XIV                       /dev/disk/disk12   /

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 root@edus005v1:~# svcadm refresh name-service/switch root@edus005v1:~# svcadm refresh svc:/network/nis/client:default root@edus005v1:~#  svcadm refresh svc:/system/filesystem/autofs:default 1. edit the file  /etc/ssh/sshd_config PermitRootLogin yes  with  PermitRootLogin no  and save file.      vi /etc/ssh/sshd_config     PermitRootLogin yes 2. Comment out the  “CONS

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                  MTU   MODE   INTER-VNET-LINK     primary-vsw0     primary          00:14:4f:fa:2d:de net0      0    switch@0               1               1                         1500         on             primary-vsw3     primary          00:14:4f:fa:6a:64 net3      1    switch@1               1               1                         1500         on         VDS     NAME             LDOM             VOLUME         OPTIONS          MPGROUP        DEVICE     primary

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 default

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                                None           hdisk5          none                                None           # extendvg rootvg hdisk0 0516-1254 extendvg: Changing the PVID in the ODM. # extendvg VIOS hdisk3 0516-1254 extendvg: Changing the PVID in the ODM. # extendvg VIOS hdisk4 0516-1254 extendvg: Changing the PVID in the ODM. # extendvg VIOS hdisk5 0516-1254 extendvg: Changing the PVID in the ODM. # lspv hdisk0          00f92e0cb03016a3                    rootvg          active hdisk1          00f92e0cb02e0057              

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                                                                 alias      - Displays, creates, or deletes aliases in the EFI shell attrib     - Displays or changes the attributes of files or directories bcfg       - Displays/modifies the driver/boot configuration break      - Executes a break point cd         - Displays or changes the current directory cls        - Clears the standard output with an optional background color comp       - Compares the contents of two files connect    - Binds an EFI driver to a device and starts the driver cp         - Copies one or more files/directories to another location date       - Displays the current date or sets the date in the

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 time the new configuration for the primary domain will also take effect. root@edus005:~# ldm set-memory 8192m primary ------------------------------------------------------------------------------ Notice: The primary domain is in the process of a delayed reconfiguration. Any changes made to the primary domain will only take effect after it reboo