Wednesday, February 16, 2011

solarisfaq

















           
kernel patch installation in solaris?
69
how to add a disk group in veritas from one system to another system?
427
what is the command to replace a failed disk in vxvm with example?
233
when i am starting solaris10 with 'fail safe mode' on intel machine it is asking "#starting shell".what is it and how to solve this problem?
53
Which is the H/W u r using?
58
How to brk the root pwd?
341
How do u know that,what patch can be applicable on the system?
37
When the system is hang?Unable to login,and console is available?what is the action u will take?
233
what is daemon? NFS & NIs – Daemons?
42
wat is router? How do u find a default router?
168
How to set a ACL for the user or a file?
87
What is cachefs?
35
File system creation steps??
114
Performance monitoring tools?
178
How to create a gateway?
What happened if vxconfigd is disabled?
168
What is the config file in DNS?
57
What is the zone in DNS?
27
How to add a FS in zone?
43
How to add a new LUN in exit disksets (metasets) in solaris please answer me step by step procedure?
81
how to create passwords in nis?
IBM 
71
difference between ps -ef and prstat
IBM 
318
After adding LUNs disk is not showing in the format command. How to resolve that?
170
Difference between resource pool and project in containers
35
format command is not working. It is showing all disks, but not going to further step. How to resolve that?
28
what is the metasets in Solaris?please explain the sets with example.Any documents please share for me friends. (link)
130
what is the difference between /var/adm/ and /var/sadm directory contains in solaris?
414
How can we find memory leak in Soalris ?
262
There are two nic cards on a sun server. I need to connect one nic to pupic ip and another nic to DMZ. Could you tell me how to configure step by step?
52
How to update patch in production server where solaris is running?
If / (root) file system is full,How to increase root file system under Solaris volume manager (SVM)?
128
Hi friends this is rakesh recently i went to an interview there they asked me what is the port number using to connect telnet from one system to another system and what deamon is used to connect telnet.
133
what is coredump & crashdump.what's the difference between these two.
HP 
421
how to set default runlevel in solaris.How to set the default Runlevel as INIT-2.
470
I am not login to server with telnet and ssh then what to do?
462
how to check the status of import and deport dg?
227
I have an interview in Qatar Petroleum for Solaris System Engineer position. Please provide all the technical questions about Solaris OS.
186
In TOP command, can you please explain what is the three numbers reported as part of the load average output "load average: 11.57, 9.84, 8.26"
542
hi frnds I created sparse root zone, in that zone when i try to change the passwd it is giving permission denied. what is the reason and how to chnage the root passwd in the zone. can u please explain the query.
476
Hello Everyone, One of our servers is showing a strange issue, let me paste the output Code: root # uptime 4:37pm 3 users, load average: 0.00, 0.04, 0.04 Its been running since months but you can see after time there isn't any output like up 191 days(s). Even the who command with b and r option isn't giving any output. Code: root # who -b root # root # who -r root # the date command displays correct output. I am not sure but is it because someone has played with utmpx and wtmpx files, is reboot the only solution we have. Can anyone help us since we don't intend to reboot the server for such a reason and also no one has complained till yet.
176
Hi We have upgraded our sun machine from solaris 9 to solaris 10. Before upgradation the date command output(Solaris 9) Wed Oct 13 09:45:21 IST 2010 But after upgradation the output for date is as below(solaris 10). Wednesday, October 13, 2010 9:46:14 AM IST Looks like I need to change LC_TIME=C. can you please help me how to change it for permanently
57
how to test and Failover services to every node in vcs tell me step by step?
436
how to freeze nodes in vcs?tell me step by step?
478
How to configure llt and gab in VCS tell me step by step?
299
How to delete only 3rd and 8th line from file using vi execute or last line mode with one short of command
701
what are the solaris commands? how can i use them? are my requirements plz post it.
320
how many zones can we create?
1251
What is the difference between initialization & encapsulation in VXVM?
710
How to change network interface property in Solaris?
569
Hi All, Q. I have one log file that log file contains application message but the application message in log file not append any date value. so after 1 to 2 date that file is big size , I want to delete contents only that was appended before 4 days ago from that single file and rest of the file contents would be remains same.
127
please post few interview questions ? or any url related to solaris
129
benifits of SMF over LRC
257
how to know the creation time of users and creation time of zones in solaris
419
what are the questions that will be asked for a 3yrs experienced candidate in solaris system admin. how to face first hr round if one puts fake experience of 2or 3 yrs in solaris system admin. please respond with an opt answer. thank you in advance...
403
how can we know the creation time of user.
1064
how can we know the time of creation of zone in solaris
1505
After creating user account successfully it shows 64 blocks.what for these 64 blocks are used and what information is stored in this blocks?
1579
one guy asking how to grow disk size in SDS? what is SDS?
TCS 
1682
How to add swap space in Sun Server?
1798
How to make SUN server as router in subnetwork?
May I know the difference between the RAID and Volume Manager?
1309
in a global zone we are created a zone. how can we know whether it is a sparse root model or whole root model.
754
what are the ILOM commands are used to troubleshooting sunv490 server on ILOM console mode?
369
what are the ALOM commands are used to troubleshooting sunv440 server on ALOM console mode?
CSC 
545
how to recover the boot block in soalris 9,i am able to get CDE desktop login.
638
When iam checking the services its showing unintialized then what should i do step by step.pls tell me the answer as soon as posible.
1256
When iam checking the services its showing mentanence state i chechked all dependents and dependenicies then what is procedure should i do step by step.pls tell me the answer as soon as posible.
711
When iam checking the services its showing unintialized then what should i do.pls tell me the answer as soon as posible.
374
when iam loging in to my system as a normal user through the telnet iam not able to login,the message appears on the screen is unable to conncect the host:the connection is refused.pls tell me the answers as soon as possible.
699
what is incident management and change management and prob management in ticketing tool ,can u explain briefly?
2376
In solaris RAID half of replicas fails Suppose out of 6 replica 4 got failed -> what will be the impact if system will not come up & if system will not come up how to fix this issue.
624
what are all the procedures i have to follow while patching a machine which has root mirroring ( SVM ).
508
I have 20 GB free space in my file system but my inode size full. how will i increase or how will i fix this issue.
852
usage of temp directory should be restricted to 1 gb if total temp directory size is 5 gb?
680
What are the daemons in NIS server?

1)What can I do if Solaris won't boot?

You need to boot from your
install CD. Insert the Solaris Software CD in your CDROM drive. If your CDROM drive/BIOS isn't bootable, first insert the "Device Configuration Assistant" (DCA) diskette. At the "Boot Solaris" menu, choose "CD."

At the "Type of Installation: Interactive or JumpStart" menu, type "b -s"
Or, after the video configuration, network, time and date you'll notice one of the menu's has a button: [Exit] Select Exit and, when it asks you again "do you want to exit?," just say yes.

Once you're at the UNIX root prompt #, you can mount the boot drive with "mount /dev/dsk/c0t0d0s0 /mnt"" and view anything wrong with the boot drive (omit the "t0" for ATAPI).

2)How do I restore the Solaris boot block without reinstalling?

This may happen when installing a boot manager that comes with another operating system (such as LILO from Linux) or an after-market multi-OS boot manager. These sometimes trample's active partition, which in our case is Solaris. Also, moving the Solaris partition with a partition manager
program such as Partition Magic requires reinstalling the Solaris boot block. Before taking these steps, first verify the Solaris partition is active. If it isn't, just make the Solaris partition active and reboot. Otherwise follow the steps below.

1. Boot from CD-ROM and get the root prompt, #, as
described in the previous question, 7.1.

2. Determine the controller, disk number, and partition. The boot disk is /dev/rdsk/c?t?d?p? where ? is the controller #, target ID, and disk #, and partition #. Omit "t?" for ATAPI E.g., /dev/rdsk/c0d0p0

3. Verify it's the correct device correct with prtvtoc for the drive: This is VERY important; if it's wrong, you you may hose another partition: prtvtoc /dev/rdsk/c0t0d0p0 (omit "t0" for ATAPI, always use p0, which means the "entire drive"). The prtvtoc prints out the map for the Solaris partition on the
hard drive, if found. The partitions shown on the output are actually "slices" within the Solaris partition.

4. Restore the boot block as follows:
/sbin/fdisk -b /usr/lib/fs/ufs/mboot (raw disk dev)
E.g., for SCSI it might be:
/sbin/fdisk -b /usr/lib/fs/ufs/mboot /dev/rdsk/c0t0d0p0
(omit "t0" for ATAPI)

5. Finally, remove your CDROM and diskette media and type "/sbin/shutdown -i6" to reboot. The Solaris Multiple Device Boot Menu should appear after rebooting. If not, you can always to an upgrade (re-)install.
Note: This procedure does NOT make your Solaris partition active again (sometimes needed after installing another operating system, such as Windows, on the same disk), it just writes to your bootblock IN your Solaris partition. To learn more about the Solaris boot process, read the boot(1M) man page.

3)How do I logon as root if the password doesn't work anymore?

Regaining control of a Solaris x86 system where the root password has been lost can be accomplished by the following steps. Note that any savvy user can do this with the proper CD-ROM and diskette. Therefore, of course, physical security of a system is important for machines containing sensitive data.

1. Insert installation boot diskette and installation CD-ROM for Solaris x86.

2. Boot system from the installation floppy and select the CD-ROM as the boot device.

3. Type "b -s" (instead of typing 1 or 2 from the menu) and it'll drop you straight to a root shell, #, (and you'll be in single-user mode).

4. At the root prompt, #, key in the following commands, which will create a directory called hdrive under the /tmp directory and then mount the root hard drive partition under this temporary directory.

5. mkdir /tmp/hdrive

6. mount /dev/dsk/c0t0d0s0 /tmp/hdrive #SCSI; for ATAPI, omit "t0"

7. To use the vi editor, the TERM variable must be defined. Key in the following commands.

8. TERM=at386

9. export TERM

10. Start vi (or some other editor) and load /tmp/hdrive/etc/shadow file:

11. vi /tmp/hdrive/etc/shadow

12. Change the first line of the shadow file that has the root entry to:

13. root::6445::::::

14. Write and quit the vi editor with the "!" override command:

15. :wq!

16. Remove the floppy installation diskette, and reboot the system:

17. /sbin/shutdown -i6

18. When system has rebooted from the hard drive, you can now log in from the Console Login: as root with no password. Just hit enter for the password.