Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

Solaris Frequently Asked Questions and Debugging Tips for CommandCentral Storage

Updated: 20 Dec 2010
andysinger's picture
0 0 Votes
Login to vote
This issue has been solved. See solution.

Sharing a few knowledgebase articles with the CommandCentral Community. Please respond to this forum if you find these useful.
----------------------------------------------
Document ID: 316602
http://support.veritas.com/docs/316602

How do I display the CPU information on a Solaris Host?
psrinfo -v

Example Output:
# /usr/sbin/psrinfo -v
Status of virtual processor 0 as of: 07/17/2008 14:12:46
on-line since 07/11/2008 14:14:10.
The sparcv9 processor operates at 1280 MHz,
and has a sparcv9 floating point processor.
Status of virtual processor 1 as of: 07/17/2008 14:12:46
on-line since 07/11/2008 14:14:09.
The sparcv9 processor operates at 1280 MHz,
and has a sparcv9 floating point processor

How do I display the Physical Memory information on a Solaris host?
prtconf

Example Output:
# /usr/sbin/prtconf
System Configuration: Sun Microsystems sun4u
Memory size: 256 Megabytes
System Peripherals (Software Nodes):

How do I enable a user to FTP to a Solaris host?
The ftpusers file, in either /etc/ftpd or /etc contains a list of users who cannot ftp to the host. Simply edit this file and remove root, and your ftp will succeed.

How do I add swap-to-file to a Solaris host?
First you need to create the file that will be used for the OS swapping. I allocate these files in 1GB chunks (rather than larger sizes), so that it's easier to adjust the amount of swap-to-file.

Since the files are huge, the Sys Admin must find a filesystem with at least the amount of free storage required. Let's say they chose the /space filesystem. I name the file so as to suggest the size of the file. "2e30" is a notation that suggests 2 to the 30th, or 1073741824 bytes.

I issue these commands to create the swap file:

# cd /space
# mkdir swap
# cd swap
# mkfile 1073741824 swap0.2e30

If they need more swap space, I'd issue the command with incrementing names, swap1.2e30, swap2.2e30, etc. The command will take some time to complete, because mkfile actually allocates the sectors on disk for the entire size of the file. So the above command created a 1073741824-byte file named /space/swap/swap0.2e30.

Then, you need to tell the OS to use the new swap file:

# swap -a /space/swap/swap0.2e30

Finally, you need to tell the OS to use the swap-to-file each time it reboots. (The above command just added it to the current system; it'd go away when the system rebooted.) To do this, you need to edit /etc/vfstab, and add the following line at the end of the file:

# /space/swap/swap0.2e30 - - swap - no -

(each of the "-" characters is mandatory, separated by spaces.)

Then, to see if everything worked, use this command:

# swap -l

It should display something like this:

swapfile dev swaplo blocks free
/dev/dsk/c1t0d0s1 118,1 16 4194800 2842224
/space/swap/swap.2e30 - 16 2097136 2097136

Related Documents:

314431: Operating Systems Frequently Asked Questions and Debugging Tricks (r 1.17)
http://support.veritas.com/docs/314431

--------------------------------------------------------------------------------
Products Applied:
CommandCentral Storage 5.0, 5.0 MP1, 5.0 MP1 RP1, 5.0 MP1 RP2, 5.0 MP1 RP3, 5.1

Last Updated: January 23 2009 11:00 PM GMT
Expires on: 12-14-2018

Subjects:
CommandCentral Storage
Admin Tools/Utilities: Cli, Diagnostics
Solaris
Information Development: Troubleshooting
Languages:
English (US)
Operating Systems:
Solaris
10, 8.0, 9.0