Crucial Paradigm Australia Official Blog
Uncategorized
On the server running the agent, just run this command:
r1key -a [ipaddressofserver]
A quick and easy way is to run:
prtconf
If you are having trouble mounting a CD or DVD in Solaris, you are not alone!
First you need to find the CD/DVD drive. You can do this by using the following command:
iostat -Ee
This will list all your drives, just look for the one which has 0GB storage, or the model number of your CD-ROM drive.
Once you have found that, you need to create the directory to mount the CD-ROM drive, and then mount the CD-DROM drive:
mkdir /cdrom
chmod a+wrx
mount -F hsfs -o ro /dev/dsk/c0t0d0p0 /cdrom
Where c0t0d0p0 is the device ID of your CD-ROM drive.
NOTE: We had an issue where iostat -Ee only listed part of the model number (c0t0d0) and we had to add p0 to the end to get it working. We found this out be browsing /dev/dsk/ and finding all devices with c0t0d0 in them.
It can be quite frustrating using the console/terminal on a Solaris machine, as by default the backspace/delete key does not work.
To enable the key, just do the following the terminal:
stty erase ^h
If you are Linux user like myself, and you give Solaris a go you will probably be scratching your head how to find out which IPs are assign to which interfaces. The following are 2 methods to do this:
ifconfig -a
netstat -in
This can be done in the same manner it is done on most Unix/Linux systems. Open /etc/ssh/sshd_config (using vi is probably a good start), and replace the line:
PermitRootLogin no
With:
PermitRootLogin yes
Once you have done this, restart ssh.
If you are coming from a Linux background, and having trouble restarting SSHD on Solaris, this is the way it can be done:
#svcadm restart svc:/network/ssh:default
Want to test the write speeds on your ZFS array?
An easy way to do this is:
time (mkfile 100g /tank/foo)
You will get an output looking something like this:
real 5m01.332s
user 0m0.335s
sys 0m37.958s
To calculate how many MBytes per second the write was, you can use the following formula:
number of MB (102400)/number of minutes (5)/60 = MB/s (in this case it would be 341.34 MB/s)
ZFS is a software based file system which allows you to do RAID in software. It is extremely fast and flexible, and has online error detection (unlike hardware RAID cards). This is a great way to run file servers.
To setup RAID 10 in ZFS, you run the following command:
zpool create tank mirror disk1 disk2 mirror disk3 disk4 mirror disk5 disk6
Where disk1, disk2, disk3, disk4, disk5, and disk6s are your hard drives. How to list all drives installed in Solaris/OpenSolaris
If you are trying to find which version of Solaris you are running, you can run the following command:
cat /etc/release

