coolcommands.com - the search engine for unix sysadmins :: unix commands and scripts
Saturday May 18, 2013


 Home
 Search
 Advanced Search
 Category Search
 Affiliates
 Acknowledgements
 Cool Links

Username

Password

Remember me
Forgot your password?

Who's Online
We have 30 guests online

Newest Member

nbewwmbxog

Hit Counter
11530527 Visitors

cool Statistics
coolcommands:1338
Categories:83
Total queries:620068
Members:22813





Search coolcommands.com
Search Keyword:


coolcommand

how to create a mirror for swap in Solaris Volume Manager
Description

To create a mirror for swap in Solaris Volume Manager:

Example to mirror the slice /dev/dsk/c0t0d0s3 which contains the swap file which cannot be unmounted during normal system usage:

1) Create one stripe that contains the one slice c0t0d0s3 named d21:

# metainit -f d21 1 1 c0t0d0s3

2) Create a second concat/stripe on an unused slice named d22:

# metainit d22 1 1 c2t3d0s7

3) Create a one-way mirror with d21 named d20:

# metainit d20 -m d21

4) # Edit the /etc/vfstab file so that the swap file system now refers to the newly created mirror:

# /dev/dsk/c0t0d0s3 - - swap - no -
/dev/md/dsk/d20 - - swap - no -

5) Reboot the system:

# reboot

6) Attach submirror d22 to mirror d20:

# metattach d20 d22

7) Verify the mirror d20:

# metastat d20

8) Verify that the swap file system is mounted on the d20 volume:

# swap -l

Note: Solaris Volume Manager was previously known as Solstice Disksuite. This command should work for both.
Example

metainit d20 -m d21; vi /etc/vfstab; reboot; metattach d20 d22; swap -l

Return to search results

Random coolcommands

coolcommand: metatool - how to start the administrative console in Solstice Disksuite
Example: metatool
[show me the details]
coolcommand: removing a physical volume from a volume group on IBM AIX server
Example: rmlvcopy <LVname> 1 <hdisk#>
[show me the details]
coolcommand: how to find the name resolution order
Example: /etc/nsswitch.conf
[show me the details]
coolcommand: how to find the NFS share definitions in HP/UX
Example: /etc/exports
[show me the details]

coolcommands.com - the search engine for UNIX sysadmins :: unix commands and scripts



FREE
myPMS

Password
Management
System

by

LVOware.com




Top 5 Submitters

lvo1160
audet37
kah00na32
Mariom24
lebjf00014

Top 5 Searches

Category Solaris51939
Category AIX49005
Category General UNIX47487
solaris23554
aix22739

Terms of Use
Privacy
Contact


 
coolcommands.com © 2013. All Right Reserved.
Programming by PRATTICO Consulting . Hosting by Apricusum