Operating Systems Solaris clear swap slice. Registered User. Join Date: Dec I found these instructions: Quote:. The disk label is not on the swap area but why do you want to clear your swap anyway? I want to clear the swap to keep the disk compressed image smaller. Indeed, the vtoc might be on the swap area first sectors but that really depends on whether you are on x86 or SPARC, whether you are using UFS or ZFS for the root file system, and whether you are using the default slice layout or not.
Explain the output of swap -s and swap -l. Hi Solaris Folks : , I need to calculate the swap usage on solaris server, please let me understand the output of below swap -s and swap -l commands. Possible to increase swap size for existing UFS-based drive slice? I like to increase swap size for my current server running solaris Seems like the system is not using it's full 16G of physical memory.
What is the speciality of slice 2? However, if you have already used Solaris Volume Manager software to create complex Solaris Volume Manager concatenations, stripes, and mirrors, you must use Solaris Volume Manager software to manipulate them. Live Upgrade is aware of these components and supports their use.
Before using Solaris Volume Manager commands that can create, modify, or destroy volume components, use the lustatus or lufslist commands. These commands can determine which Solaris Volume Manager volumes contain file systems that are in use by a Live Upgrade boot environment. You can configure a swap slice in three ways by using the lucreate command with the -m option:. If you do not specify a swap slice, the swap slices belonging to the current boot environment are configured for the new boot environment.
If you specify one or more swap slices, these slices are the only swap slices that are used by the new boot environment.
The two boot environments do not share any swap slices. The following examples show the three ways of configuring swap. The swap file system is on c0t0d0s1. In the following example, no swap slice is specified. Swap is shared between the current and new boot environment on c0t0d0s1. In the following example, a swap slice is specified. A new swap file system is created on c0t1d0s1. No swap slice is shared between the current and new boot environment.
In the following example, a swap slice is added and another swap slice is shared between the two boot environments. A new swap slice is created on c0t1d0s1. The swap slice on c0t0d0s1 is shared between the current and new boot environment. A boot environment creation fails if the swap slice is being used by any boot environment except for the current boot environment.
Install the app. For a better experience, please enable JavaScript in your browser before proceeding. You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser. Thread starter Beeblebrox Start date Dec 10, Beeblebrox Aspiring Daemon Reaction score: Messages: Choose partition and follow the Step by Step 1. One more item of note: On standard UFS file systems, don't change the size of disk slices that are currently in use.
When a disk with existing slices is repartitioned and relabeled, any existing data will be lost. Before repartitioning a disk, first copy all the data to tape or to another disk. When using the format utility to change the size of disk slices, a temporary slice is automatically designated that expands and shrinks to accommodate the slice resizing operations. This temporary slice is referred to as the free hog , and it represents the unused disk space on a disk drive.
If a slice is decreased, the free hog expands. The free hog is then used to allocate space to slices that have been increased.
It does not, however, prevent the overlapping of disk slices as described in the previous section. The free hog slice exists only when you run the format utility. It is not saved as a permanent slice.
If you need to change the size of slices on a particular disk, you can either re-create the disk slices as outlined in the previous section or use the modify option of the format utility. Make sure that you copy your data either to another disk or to tape before continuing. The modify option allows the root to create slices by specifying the size of each slice without having to keep track of starting cylinder boundaries. It also keeps track of any excess disk space in the temporary free hog slice.
To modify a disk slice, follow the process outlined in Step by Step 1. Make a backup of your data. This process destroys the data on this disk slice. As root, enter the partition menu of the format utility, as described in Step by Step 1. After printing the existing partition scheme, type modify and press Enter. Mounted Partitions If you try to modify mounted partitions, you receive an error that states "Cannot modify disk partitions while it has mounted partitions.
Temporary Free Hog Slice 6 is not displayed because that is the temporary free hog. The Free Hog Slice 6, the free hog, represents the unused disk space. You might want to allocate this space to another partition so that it does not go unused, or you can save it and allocate it another time to an unused partition.
You can also partition a disk and view a disk's partition information by using the graphical interface provided by the Solaris Management Console SMC Disks Tool. To view partition information, follow the procedure outlined in Step by Step 1. In the left navigation window, select the This Computer icon, then click on the Storage icon as shown in Figure 1. The SMC Storage icon. The SMC Disks icon. The SMC Disks tool. Selecting a disk. Copy the layout of one disk to another disk of the same type.
Partition a disk using Disks Tool. SMC warning message. Click on the Next button and follow the prompts in each window to partition your disk. To partition a disk using the Disks Tool, follow the procedure outlined in Step by Step 1. In the window shown in Figure 1. For this example, we are going to create custom-sized partitions.
The window shown in Figure 1. Specify number of partitions. Specify the size and use of the partitions. SMC warning window. It's always a good idea to save a disk's VTOC to a file using the prtvtoc command described earlier. This information can then be used later to restore the disk label if your current VTOC becomes corrupted or accidentally changed, or if you need to replace the disk drive.
The disk label VTOC is stored in block 0 of each disk. The UFS file systems are smart enough not to touch the disk label, but be careful of any third party applications that create raw data slices. Ensure that these applications do not start at block 0; otherwise the disk label will be overwritten and the data on the disk will become inaccessible.
I've seen some administrators start their raw slice at cylinder 2 or 3 just to ensure the disk label does not accidentally get overwritten.
By saving the output from the prtvtoc command into a file on another disk, you can reference it when running the fmthard command. The fmthard command updates the VTOC on hard disks. Run the format utility on the disk and label it with the default partition table. Use the fmthard command to write the backup VTOC information back to the disk drive.
Another use for the fmthard command is partitioning several disks with the same partitioning scheme. Get the VTOC information from the disk you want to copy c0t0d0 , and write the information to the new disk c1t0d0 as follows :. On a large server with many disk drives, standard methods of disk slicing are inadequate and inefficient. File systems cannot span multiple disks, and the size of the file system is limited to the size of the disk.
Another problem with standard file systems is that they cannot be increased in size without destroying data on the file system. We refer to these types of file systems as logical volumes LVMs. SVM is now part of Solaris The Veritas Volume Manager is purchased separately and is not part of the standard Solaris operating system distribution. Note Slices Versus Partitions Solaris device names use the term slice and the letter s in the device name to refer to the slice number.
Note Using Slice 2 As a Partition Sometimes a relational database uses an entire disk and requires one single raw partition. In the following steps, information is displayed for all of disk
0コメント