Friday, April 22, 2011

Adding new HDD on Solaris

Here is the table of harddisk's priority.


Solaris 10 x86 Disk Controller Table
IDE
/dev/rdsk/c0d0s0~7Primary IDE Master
/dev/rdsk/c0d1s0~7Primary IDE Slave
/dev/rdsk/c1d0s0~7Secondary IDE Master
/dev/rdsk/c1d1s0~7Secondary IDE Slave

SCSI
/dev/rdsk/c0t0d0s0~7First SCSI ?No 0 ? Disk Drive
/dev/rdsk/c0t1d0s0~7First SCSI ?No 1 ? Disk Drive
/dev/rdsk/c0t2d0s0~7First SCSI ?No 2 ? Disk Drive
/dev/rdsk/c0t3d0s0~7First SCSI ?No 3 ? Disk Drive
/dev/rdsk/c0t4d0s0~7First SCSI ?No 4 ? Disk Drive
/dev/rdsk/c0t5d0s0~7First SCSI ?No 5 ? Disk Drive
/dev/rdsk/c0t6d0s0~7First SCSI ?No 6 ? Disk Drive
/dev/rdsk/c0t7d0s0~7First SCSI ?No 7 ? Disk Drive

So, after connected your new HDD to your system.
Reboot once then login to solaris and type these command

#drvconfig
#disks
check the new HDD has been added already with
#format 

All done :)

Credits: here

Thursday, April 21, 2011

Enable root session in SSH on Solaris 10.

Normally Solaris 10 has already installed ssh. but It doesn't allow root to login.
So we have to modify sshd_config within /etc/ssh/sshd_config
Using vi we'll have
#vi /etc/ssh/sshd_config
Look for PermitRootLogin and replace with yes

Then restart the service with
#svcadm restart svc:/network/ssh:default
That's all