Add a swap to Solaris11

Source: Internet
Author: User
View the current swap size, which is 2Groot @ vzwc1 :~ # Renewal

View the current swap size, which is 2G root @ vzwc1 :~ # Zfs listNAME used avail refer MOUNTPOINTrpool 8.68G 40.0G 4.90 M/rpoolrpool/ROOT 4.03G 40.0G 31 K legacyrpool/ROOT/solaris 4.03G 40.0G 3.72G/rpool/ROOT/solaris /var 265 M 40.0G 202 M/varrpool/VARSHARE 43 K

View the current swap size, which is 2 GB

root@vzwc1:~# zfs listNAME                        USED  AVAIL  REFER  MOUNTPOINTrpool                      8.68G  40.0G  4.90M  /rpoolrpool/ROOT                 4.03G  40.0G    31K  legacyrpool/ROOT/solaris         4.03G  40.0G  3.72G  /rpool/ROOT/solaris/var      265M  40.0G   202M  /varrpool/VARSHARE               43K  40.0G    43K  /var/sharerpool/dump                 2.58G  40.1G  2.50G  -rpool/export                900K  40.0G    32K  /exportrpool/export/home           868K  40.0G    34K  /export/homerpool/export/home/grid     36.5K  40.0G  36.5K  /export/home/gridrpool/export/home/oracle     45K  40.0G    45K  /export/home/oraclerpool/export/home/zhongwc   752K  40.0G   752K  /export/home/zhongwcrpool/swap                 2.06G  40.1G  2.00G  -root@vzwc1:~# swap -l -hswapfile             dev    swaplo   blocks     free/dev/zvol/dsk/rpool/swap 285,2        4K     2.0G     2.0G
ZFS does not support adding swap using mkfile.
root@vzwc1:~# mkfile 5g /var/swapfileroot@vzwc1:~# swap -a /var/swapfile /var/swapfile: Invalid operation for this filesystem type
You can use zfs set to add swap
root@vzwc1:~# zfs set volsize=5G rpool/swap
View swap again
root@vzwc1:~# zfs listNAME                        USED  AVAIL  REFER  MOUNTPOINTrpool                      11.8G  36.9G  4.90M  /rpoolrpool/ROOT                 4.03G  36.9G    31K  legacyrpool/ROOT/solaris         4.03G  36.9G  3.72G  /rpool/ROOT/solaris/var      265M  36.9G   202M  /varrpool/VARSHARE               43K  36.9G    43K  /var/sharerpool/dump                 2.58G  37.0G  2.50G  -rpool/export                900K  36.9G    32K  /exportrpool/export/home           868K  36.9G    34K  /export/homerpool/export/home/grid     36.5K  36.9G  36.5K  /export/home/gridrpool/export/home/oracle     45K  36.9G    45K  /export/home/oraclerpool/export/home/zhongwc   752K  36.9G   752K  /export/home/zhongwcrpool/swap                 5.16G  37.1G  5.00G  -root@vzwc1:~# swap -l -hswapfile             dev    swaplo   blocks     free/dev/zvol/dsk/rpool/swap 285,2        4K     2.0G     2.0G/dev/zvol/dsk/rpool/swap 285,2      2.0G     3.0G     3.0G
The GUI for disabling and starting has also changed.

Disable graphical interface

Svcadm disable svc:/application/graphical-login/TPD: default

Start graphical interface
Svcadm enable svc:/application/graphical-login/TPD: default

grid@vzwc1:~/grid$ ./runcluvfy.sh stage -pre crsinst -n vzwc1,vzwc2 -fixup -verbose                                                                                                                                                 Performing pre-checks for cluster services setup Checking node reachability...Check: Node reachability from node "vzwc1"  Destination Node                      Reachable?                ------------------------------------  ------------------------  vzwc1                                 yes                       vzwc2                                 yes                     Result: Node reachability check passed from node "vzwc1"Checking user equivalence...Check: User equivalence for user "grid"  Node Name                             Status                    ------------------------------------  ------------------------  vzwc2                                 passed                    vzwc1                                 passed                  Result: User equivalence check passed for user "grid"Checking node connectivity...Checking hosts config file...  Node Name                             Status                    ------------------------------------  ------------------------  vzwc2                                 passed                    vzwc1                                 passed                  Verification of the hosts config file successfulInterface information for node "vzwc2" Name   IP Address      Subnet          Gateway         Def. Gateway    HW Address        MTU    ------ --------------- --------------- --------------- --------------- ----------------- ------ net0   192.168.1.62    192.168.1.0     192.168.1.62    192.168.1.1     08:00:27:FB:18:44 1500   net1   172.168.1.62    172.168.1.0     172.168.1.62    192.168.1.1     08:00:27:AE:EC:AC 1500  Interface information for node "vzwc1" Name   IP Address      Subnet          Gateway         Def. Gateway    HW Address        MTU    ------ --------------- --------------- --------------- --------------- ----------------- ------ net0   192.168.1.61    192.168.1.0     192.168.1.61    192.168.1.1     08:00:27:43:92:4C 1500   net1   172.168.1.61    172.168.1.0     172.168.1.61    192.168.1.1     08:00:27:DC:D1:AE 1500  Check: Node connectivity of subnet "192.168.1.0"  Source                          Destination                     Connected?        ------------------------------  ------------------------------  ----------------  vzwc2[192.168.1.62]             vzwc1[192.168.1.61]             yes             Result: Node connectivity passed for subnet "192.168.1.0" with node(s) vzwc2,vzwc1Check: TCP connectivity of subnet "192.168.1.0"  Source                          Destination                     Connected?        ------------------------------  ------------------------------  ----------------  vzwc1:192.168.1.61              vzwc2:192.168.1.62              passed          Result: TCP connectivity check passed for subnet "192.168.1.0"Check: Node connectivity of subnet "172.168.1.0"  Source                          Destination                     Connected?        ------------------------------  ------------------------------  ----------------  vzwc2[172.168.1.62]             vzwc1[172.168.1.61]             yes             Result: Node connectivity passed for subnet "172.168.1.0" with node(s) vzwc2,vzwc1Check: TCP connectivity of subnet "172.168.1.0"  Source                          Destination                     Connected?        ------------------------------  ------------------------------  ----------------  vzwc1:172.168.1.61              vzwc2:172.168.1.62              passed          Result: TCP connectivity check passed for subnet "172.168.1.0"Interfaces found on subnet "192.168.1.0" that are likely candidates for VIP are:vzwc2 net0:192.168.1.62vzwc1 net0:192.168.1.61Interfaces found on subnet "172.168.1.0" that are likely candidates for VIP are:vzwc2 net1:172.168.1.62vzwc1 net1:172.168.1.61WARNING: Could not find a suitable set of interfaces for the private interconnectChecking subnet mask consistency...Subnet mask consistency check passed for subnet "192.168.1.0".Subnet mask consistency check passed for subnet "172.168.1.0".Subnet mask consistency check passed.Result: Node connectivity check passedChecking multicast communication...Checking subnet "192.168.1.0" for multicast communication with multicast group "230.0.1.0"...Check of subnet "192.168.1.0" for multicast communication with multicast group "230.0.1.0" passed.Checking subnet "172.168.1.0" for multicast communication with multicast group "230.0.1.0"...Check of subnet "172.168.1.0" for multicast communication with multicast group "230.0.1.0" passed.Check of multicast communication passed.Check: Total memory   Node Name     Available                 Required                  Status      ------------  ------------------------  ------------------------  ----------  vzwc2         5GB (5242880.0KB)         2GB (2097152.0KB)         passed      vzwc1         5GB (5242880.0KB)         2GB (2097152.0KB)         passed    Result: Total memory check passedCheck: Available memory   Node Name     Available                 Required                  Status      ------------  ------------------------  ------------------------  ----------  vzwc2         4.0248GB (4220352.0KB)    50MB (51200.0KB)          passed      vzwc1         3.5546GB (3727320.0KB)    50MB (51200.0KB)          passed    Result: Available memory check passedCheck: Swap space   Node Name     Available                 Required                  Status      ------------  ------------------------  ------------------------  ----------  vzwc2         6GB (6291452.0KB)         5GB (5242880.0KB)         passed      vzwc1         6GB (6291452.0KB)         5GB (5242880.0KB)         passed    Result: Swap space check passedCheck: Free disk space for "vzwc2:/var/tmp/"   Path              Node Name     Mount point   Available     Required      Status        ----------------  ------------  ------------  ------------  ------------  ------------  /var/tmp/         vzwc2         /var          35.8776GB     1GB           passed      Result: Free disk space check passed for "vzwc2:/var/tmp/"Check: Free disk space for "vzwc1:/var/tmp/"   Path              Node Name     Mount point   Available     Required      Status        ----------------  ------------  ------------  ------------  ------------  ------------  /var/tmp/         vzwc1         /var          32.7638GB     1GB           passed      Result: Free disk space check passed for "vzwc1:/var/tmp/"Check: User existence for "grid"   Node Name     Status                    Comment                   ------------  ------------------------  ------------------------  vzwc2         passed                    exists(1100)              vzwc1         passed                    exists(1100)            Checking for multiple users with UID value 1100Result: Check for multiple users with UID value 1100 passed Result: User existence check passed for "grid"Check: Group existence for "oinstall"   Node Name     Status                    Comment                   ------------  ------------------------  ------------------------  vzwc2         passed                    exists                    vzwc1         passed                    exists                  Result: Group existence check passed for "oinstall"Check: Group existence for "dba"   Node Name     Status                    Comment                   ------------  ------------------------  ------------------------  vzwc2         passed                    exists                    vzwc1         passed                    exists                  Result: Group existence check passed for "dba"Check: Membership of user "grid" in group "oinstall" [as Primary]  Node Name         User Exists   Group Exists  User in Group  Primary       Status        ----------------  ------------  ------------  ------------  ------------  ------------  vzwc2             yes           yes           yes           yes           passed        vzwc1             yes           yes           yes           yes           passed      Result: Membership check for user "grid" in group "oinstall" [as Primary] passedCheck: Membership of user "grid" in group "dba"   Node Name         User Exists   Group Exists  User in Group  Status            ----------------  ------------  ------------  ------------  ----------------  vzwc2             yes           yes           yes           passed            vzwc1             yes           yes           yes           passed          Result: Membership check for user "grid" in group "dba" passedCheck: Run level   Node Name     run level                 Required                  Status      ------------  ------------------------  ------------------------  ----------  vzwc2         3                         3                         passed      vzwc1         3                         3                         passed    Result: Run level check passedCheck: Hard limits for "maximum open file descriptors"   Node Name         Type          Available     Required      Status            ----------------  ------------  ------------  ------------  ----------------  vzwc2             hard          65536         65536         passed            vzwc1             hard          65536         65536         passed          Result: Hard limits check passed for "maximum open file descriptors"Check: Soft limits for "maximum open file descriptors"   Node Name         Type          Available     Required      Status            ----------------  ------------  ------------  ------------  ----------------  vzwc2             soft          65536         1024          passed            vzwc1             soft          65536         1024          passed          Result: Soft limits check passed for "maximum open file descriptors"Check: Hard limits for "maximum user processes"   Node Name         Type          Available     Required      Status            ----------------  ------------  ------------  ------------  ----------------  vzwc2             hard          29995         16384         passed            vzwc1             hard          29995         16384         passed          Result: Hard limits check passed for "maximum user processes"Check: Soft limits for "maximum user processes"   Node Name         Type          Available     Required      Status            ----------------  ------------  ------------  ------------  ----------------  vzwc2             soft          29995         2047          passed            vzwc1             soft          29995         2047          passed          Result: Soft limits check passed for "maximum user processes"Check: System architecture   Node Name     Available                 Required                  Status      ------------  ------------------------  ------------------------  ----------  vzwc2         64-bit amd64 kernel modules  64-bit amd64 kernel modules  passed      vzwc1         64-bit amd64 kernel modules  64-bit amd64 kernel modules  passed    Result: System architecture check passedCheck: Kernel version   Node Name     Available                 Required                  Status      ------------  ------------------------  ------------------------  ----------  vzwc2         5.11                      5.11                      passed      vzwc1         5.11                      5.11                      passed    Result: Kernel version check passedChecking for multiple users with UID value 0Result: Check for multiple users with UID value 0 passed Check: Current group ID Result: Current group ID check passedStarting check for consistency of primary group of root user  Node Name                             Status                    ------------------------------------  ------------------------  vzwc2                                 passed                    vzwc1                                 passed                  Check for consistency of root user's primary group passedStarting Clock synchronization checks using Network Time Protocol(NTP)...NTP Configuration file check started...Network Time Protocol(NTP) configuration file not found on any of the nodes. Oracle Cluster Time Synchronization Service(CTSS) can be used instead of NTP for time synchronization on the cluster nodesNo NTP Daemons or Services were found to be runningResult: Clock synchronization check using Network Time Protocol(NTP) passedChecking Core file name pattern consistency...Core file name pattern consistency check passed.Checking to make sure user "grid" is not in "root" group  Node Name     Status                    Comment                   ------------  ------------------------  ------------------------  vzwc2         passed                    does not exist            vzwc1         passed                    does not exist          Result: User "grid" is not part of "root" group. Check passedCheck default user file creation mask  Node Name     Available                 Required                  Comment     ------------  ------------------------  ------------------------  ----------  vzwc2         0022                      0022                      passed      vzwc1         0022                      0022                      passed    Result: Default user file creation mask check passedChecking consistency of file "/etc/resolv.conf" across nodesChecking the file "/etc/resolv.conf" to make sure only one of domain and search entries is definedFile "/etc/resolv.conf" does not have both domain and search entries definedChecking if domain entry in file "/etc/resolv.conf" is consistent across the nodes...domain entry in file "/etc/resolv.conf" is consistent across nodesChecking if search entry in file "/etc/resolv.conf" is consistent across the nodes...search entry in file "/etc/resolv.conf" is consistent across nodesChecking DNS response time for an unreachable node  Node Name                             Status                    ------------------------------------  ------------------------  vzwc2                                 passed                    vzwc1                                 passed                  The DNS response time for an unreachable node is within acceptable limit on all nodesFile "/etc/resolv.conf" is consistent across nodesCheck: Time zone consistency Result: Time zone consistency check passedPre-check for cluster services setup was successful. grid@vzwc1:~/grid$     

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.