root@beisoltest03 / # zonecfg -z red
red: No such zone configured
Use ‘create’ to begin configuring a new zone.
zonecfg:red> add net
zonecfg:red:net> set address=10.240.3.212
zonecfg:red:net> set physical=e1000g1
zonecfg:red:net> set defrouter=10.240.3.254
zonepath cannot be empty.
red: Required resource missing
zonecfg:red> set zonepath=/zone/red
it’s ready, let’s check Read more…
Using df -h to see the summary usage of partition:
/dev/md/dsk/d3 3.9G 3.6G 298M 93% /var
Then using du -sh ./* | sort,and you may find that directory /var/adm employs much of the space:
And go further to the directory,you may find the file /var/adm/wtmpx employs much of the directory size:
Here goes the resolution:
echo “” > /var/adm/wtmpx
If you want to delete any file(s),you must firstly see if any processes using them.You can do this check through command lsof: Read more…
Solaris is usually used as a server operating system. Because of this, you want to make sure that you shut the system down as gracefully as possible to ensure there isn’t any data loss.
For every application that is installed on your server, you should make sure that you have the correct scripts in /etc/rc(x).d to gracefully shut down the service.
You have more than one command option that you can use. The best command is this, executed as root:
shutdown -y -i5 -g0
This will immediately shut the system down. You can also use the older command that still works:
You can even use:
If you are trying to reboot the system as opposed to turning it off, you could use:
shutdown -y -i6 -g0
So many commands to do the same thing… almost seems silly.
The following shell script will read first 2 lines from /etc/fstab and then bind each one to the corresponding variable $line1 & $line2. In the script, we will use Redirecting Input & Shell Builtin Commands of the bash shell. Read more…
LVM (Logic Volume Management), an advanced disk management tool attached to Unix. Linux take the tool afterwards,and is strong enough for using. LVM tool can expanding the capacity on the fly,and can shrink the capacity after umount the partition of hard disk,also it has the feature of transfering data from one partition of one hard disk to another partition of another hard disk. The tool is just like doing magic for all of those things are implemented on the fly of a busy system, safe to your application and making no side effect to your system.
Now, let’s take my site as an example:
And I find that /home partition is consumed at a high rate: Read more…