search
HomeDatabaseMysql TutorialSolaris11添加swap方法

查看当前swap大小,是2G 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

查看当前swap大小,是2G

root@vzwc1:~# zfs list
NAME                        USED  AVAIL  REFER  MOUNTPOINT
rpool                      8.68G  40.0G  4.90M  /rpool
rpool/ROOT                 4.03G  40.0G    31K  legacy
rpool/ROOT/solaris         4.03G  40.0G  3.72G  /
rpool/ROOT/solaris/var      265M  40.0G   202M  /var
rpool/VARSHARE               43K  40.0G    43K  /var/share
rpool/dump                 2.58G  40.1G  2.50G  -
rpool/export                900K  40.0G    32K  /export
rpool/export/home           868K  40.0G    34K  /export/home
rpool/export/home/grid     36.5K  40.0G  36.5K  /export/home/grid
rpool/export/home/oracle     45K  40.0G    45K  /export/home/oracle
rpool/export/home/zhongwc   752K  40.0G   752K  /export/home/zhongwc
rpool/swap                 2.06G  40.1G  2.00G  -
root@vzwc1:~# swap -l -h
swapfile             dev    swaplo   blocks     free
/dev/zvol/dsk/rpool/swap 285,2        4K     2.0G     2.0G
ZFS不支持mkfile的方式添加swap
root@vzwc1:~# mkfile 5g /var/swapfile
root@vzwc1:~# swap -a /var/swapfile 
/var/swapfile: Invalid operation for this filesystem type
可以使用zfs set的方式添加swap
root@vzwc1:~# zfs set volsize=5G rpool/swap
再次查看swap
root@vzwc1:~# zfs list
NAME                        USED  AVAIL  REFER  MOUNTPOINT
rpool                      11.8G  36.9G  4.90M  /rpool
rpool/ROOT                 4.03G  36.9G    31K  legacy
rpool/ROOT/solaris         4.03G  36.9G  3.72G  /
rpool/ROOT/solaris/var      265M  36.9G   202M  /var
rpool/VARSHARE               43K  36.9G    43K  /var/share
rpool/dump                 2.58G  37.0G  2.50G  -
rpool/export                900K  36.9G    32K  /export
rpool/export/home           868K  36.9G    34K  /export/home
rpool/export/home/grid     36.5K  36.9G  36.5K  /export/home/grid
rpool/export/home/oracle     45K  36.9G    45K  /export/home/oracle
rpool/export/home/zhongwc   752K  36.9G   752K  /export/home/zhongwc
rpool/swap                 5.16G  37.1G  5.00G  -
root@vzwc1:~# swap -l -h
swapfile             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
关闭和启动图形界面也有所变化

关闭图形界面

svcadm disable svc:/application/graphical-login/gdm:default

启动图形界面
svcadm enable svc:/application/graphical-login/gdm: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 successful

Interface 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,vzwc1

Check: 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,vzwc1

Check: 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.62
vzwc1 net0:192.168.1.61

Interfaces found on subnet "172.168.1.0" that are likely candidates for VIP are:
vzwc2 net1:172.168.1.62
vzwc1 net1:172.168.1.61

WARNING: 
Could not find a suitable set of interfaces for the private interconnect
Checking 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 passed

Checking 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 passed

Check: 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 passed

Check: 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 passed

Check: 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 1100
Result: 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] passed

Check: 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" passed

Check: Run level 
  Node Name     run level                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  vzwc2         3                         3                         passed    
  vzwc1         3                         3                         passed    
Result: Run level check passed

Check: 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 passed

Check: Kernel version 
  Node Name     Available                 Required                  Status    
  ------------  ------------------------  ------------------------  ----------
  vzwc2         5.11                      5.11                      passed    
  vzwc1         5.11                      5.11                      passed    
Result: Kernel version check passed

Checking for multiple users with UID value 0
Result: Check for multiple users with UID value 0 passed 

Check: Current group ID 
Result: Current group ID check passed

Starting 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 passed

Starting 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 nodes
No NTP Daemons or Services were found to be running

Result: Clock synchronization check using Network Time Protocol(NTP) passed

Checking 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 passed

Check 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 passed
Checking consistency of file "/etc/resolv.conf" across nodes

Checking the file "/etc/resolv.conf" to make sure only one of domain and search entries is defined
File "/etc/resolv.conf" does not have both domain and search entries defined
Checking if domain entry in file "/etc/resolv.conf" is consistent across the nodes...
domain entry in file "/etc/resolv.conf" is consistent across nodes
Checking if search entry in file "/etc/resolv.conf" is consistent across the nodes...
search entry in file "/etc/resolv.conf" is consistent across nodes
Checking 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 nodes

File "/etc/resolv.conf" is consistent across nodes

Check: Time zone consistency 
Result: Time zone consistency check passed

Pre-check for cluster services setup was successful. 
grid@vzwc1:~/grid$     
Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
MySQL BLOB : are there any limits?MySQL BLOB : are there any limits?May 08, 2025 am 12:22 AM

MySQLBLOBshavelimits:TINYBLOB(255bytes),BLOB(65,535bytes),MEDIUMBLOB(16,777,215bytes),andLONGBLOB(4,294,967,295bytes).TouseBLOBseffectively:1)ConsiderperformanceimpactsandstorelargeBLOBsexternally;2)Managebackupsandreplicationcarefully;3)Usepathsinst

MySQL : What are the best tools to automate users creation?MySQL : What are the best tools to automate users creation?May 08, 2025 am 12:22 AM

The best tools and technologies for automating the creation of users in MySQL include: 1. MySQLWorkbench, suitable for small to medium-sized environments, easy to use but high resource consumption; 2. Ansible, suitable for multi-server environments, simple but steep learning curve; 3. Custom Python scripts, flexible but need to ensure script security; 4. Puppet and Chef, suitable for large-scale environments, complex but scalable. Scale, learning curve and integration needs should be considered when choosing.

MySQL: Can I search inside a blob?MySQL: Can I search inside a blob?May 08, 2025 am 12:20 AM

Yes,youcansearchinsideaBLOBinMySQLusingspecifictechniques.1)ConverttheBLOBtoaUTF-8stringwithCONVERTfunctionandsearchusingLIKE.2)ForcompressedBLOBs,useUNCOMPRESSbeforeconversion.3)Considerperformanceimpactsanddataencoding.4)Forcomplexdata,externalproc

MySQL String Data Types: A Comprehensive GuideMySQL String Data Types: A Comprehensive GuideMay 08, 2025 am 12:14 AM

MySQLoffersvariousstringdatatypes:1)CHARforfixed-lengthstrings,idealforconsistentlengthdatalikecountrycodes;2)VARCHARforvariable-lengthstrings,suitableforfieldslikenames;3)TEXTtypesforlargertext,goodforblogpostsbutcanimpactperformance;4)BINARYandVARB

Mastering MySQL BLOBs: A Step-by-Step TutorialMastering MySQL BLOBs: A Step-by-Step TutorialMay 08, 2025 am 12:01 AM

TomasterMySQLBLOBs,followthesesteps:1)ChoosetheappropriateBLOBtype(TINYBLOB,BLOB,MEDIUMBLOB,LONGBLOB)basedondatasize.2)InsertdatausingLOAD_FILEforefficiency.3)Storefilereferencesinsteadoffilestoimproveperformance.4)UseDUMPFILEtoretrieveandsaveBLOBsco

BLOB Data Type in MySQL: A Detailed Overview for DevelopersBLOB Data Type in MySQL: A Detailed Overview for DevelopersMay 07, 2025 pm 05:41 PM

BlobdatatypesinmysqlareusedforvoringLargebinarydatalikeImagesoraudio.1) Useblobtypes (tinyblobtolongblob) Basedondatasizeneeds. 2) Storeblobsin Perplate Petooptimize Performance.3) ConsidersxterNal Storage Forel Blob Romana DatabasesizerIndimprovebackupupe

How to Add Users to MySQL from the Command LineHow to Add Users to MySQL from the Command LineMay 07, 2025 pm 05:01 PM

ToadduserstoMySQLfromthecommandline,loginasroot,thenuseCREATEUSER'username'@'host'IDENTIFIEDBY'password';tocreateanewuser.GrantpermissionswithGRANTALLPRIVILEGESONdatabase.*TO'username'@'host';anduseFLUSHPRIVILEGES;toapplychanges.Alwaysusestrongpasswo

What Are the Different String Data Types in MySQL? A Detailed OverviewWhat Are the Different String Data Types in MySQL? A Detailed OverviewMay 07, 2025 pm 03:33 PM

MySQLofferseightstringdatatypes:CHAR,VARCHAR,BINARY,VARBINARY,BLOB,TEXT,ENUM,andSET.1)CHARisfixed-length,idealforconsistentdatalikecountrycodes.2)VARCHARisvariable-length,efficientforvaryingdatalikenames.3)BINARYandVARBINARYstorebinarydata,similartoC

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.