|
| cool Statistics |
| | coolcommands: | 1338 | | Categories: | 83 | | Total queries: | 620068 | | Members: | 22813 | |
|
|
|
 |
|
|
Search coolcommands.com
 |
Submitted by:
lvo   |
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
|  |  |  |  |
|
|
|
|
 |
|
|
|
Top 5 Submitters
|
|---|
| lvo | 1160 |
| audet | 37 |
| kah00na | 32 |
| Mariom | 24 |
| lebjf000 | 14 |
Top 5 Searches
|
| Category Solaris | 51939 |
| Category AIX | 49005 |
| Category General UNIX | 47487 |
| solaris | 23554 |
| aix | 22739 |
|
|
|
|