A native, default zone on the Oracle Solaris 10 OS is called a container. The other containers that run on Oracle Solaris 10 include Oracle Solaris 8 Containers and Oracle Solaris 9 Containers. Many people use the terms "zone" and "container" interchangeably.
Sunday, 11 May 2014
how to install JAVA in LINUX?
download latest version of java and extract it in /usr/local #./jdk-6u14-linux-i586.bin
#which java : display java location
#cd /usr/local
#ln -s jdk1.6.0_14 java : create soft link with name java
#mv /usr /bin/java /usr /bin/java.org
#ln -s /usr/local/java/bin/java /usr/bin/java
#/usr/bin/java -version : it will display the latest version of java
#which java : display java location
#cd /usr/local
#ln -s jdk1.6.0_14 java : create soft link with name java
#mv /usr /bin/java /usr /bin/java.org
#ln -s /usr/local/java/bin/java /usr/bin/java
#/usr/bin/java -version : it will display the latest version of java
Thursday, 8 May 2014
password expiration extension command for UNIX?
LINUX:-
if password has expired.no need to reset password.we can extend the password.
#chage -d <date year-month-day:current date> user
solaris:
#usermod -e <data it has to expire> username
in solaris,suppose to day date is may10th. u have to give as auguest10th. i.e password has extended up to aug 10th. in linux u have to give to day date.
if password has expired.no need to reset password.we can extend the password.
#chage -d <date year-month-day:current date> user
solaris:
#usermod -e <data it has to expire> username
in solaris,suppose to day date is may10th. u have to give as auguest10th. i.e password has extended up to aug 10th. in linux u have to give to day date.
Monday, 5 May 2014
how to synchronize system local time with hwclock by using NTP server in LINUX?
Following is the process to synchronize local time with hwclock by using NTP server.
rm -rf /etc/localtime
ln -s /usr/share/zoneinfo/America/ Denver /etc/localtime
ls -ltr /etc/localtime
now check hwclock and system date as same.
- ntpdate
- ntpdate <server name>
- check system date by using #date command.
- #hwclock --show : it will display hwclock
- #ntpstat : communicate with ntp server and display time.
- check which time zoemne has mentioned in server #cat /etc/sysconfig/clock.
rm -rf /etc/localtime
ln -s /usr/share/zoneinfo/America/
ls -ltr /etc/localtime
now check hwclock and system date as same.
- still if you are facing problem,check /etc/ntp.con file with ntp server details.
how to bring newly added disk under control of LVM ?
#first check all available disks: fdisk -l
#check pvs and lvs
#create disk partition using : fdisk /dev/sdb
#create physical volume : pvcreate /dev/sdb1
#create volume group : vgcreate mysql_vg /dev/sdb1
#create logical volume : lvcreate -L 20G -n datavol mysql_vg
#make a file system : mkfs.ext4 -m 2 /dev/mysql_vg/datavol
#create a mount point
#mount the Partition : mount /dev/mysql_vg/datavol <mount point>
#check pvs and lvs
#create disk partition using : fdisk /dev/sdb
#create physical volume : pvcreate /dev/sdb1
#create volume group : vgcreate mysql_vg /dev/sdb1
#create logical volume : lvcreate -L 20G -n datavol mysql_vg
#make a file system : mkfs.ext4 -m 2 /dev/mysql_vg/datavol
#create a mount point
#mount the Partition : mount /dev/mysql_vg/datavol <mount point>
Saturday, 3 May 2014
how to scan LUNS in LINUX with out rebooting server?
first check busing fdisk -l command.
if new luns has not detected.before that take lun id from storage team.it is easy to identify lun.
#powemt config
Assuming that there are two hbas, numbered 0 and 1 :-
echo "- - -" > /sys/class/scsi_host/host0/scan
echo "- - -" > /sys/class/scsi_host/host1/scan
#echo "1" > /sys/class/fc_host/host0/issue_lip
#echo "1" > /sys/class/fc_host/host1/issue_lip
then,
if new luns has not detected.before that take lun id from storage team.it is easy to identify lun.
#powemt config
Assuming that there are two hbas, numbered 0 and 1 :-
echo "- - -" > /sys/class/scsi_host/host0/scan
echo "- - -" > /sys/class/scsi_host/host1/scan
#echo "1" > /sys/class/fc_host/host0/issue_lip
#echo "1" > /sys/class/fc_host/host1/issue_lip
then,
powermt display dev=all | grep "Pseudo"
powermt display dev=all | grep "Logical device"we can check with lun id provided by storage team.
Thursday, 1 May 2014
how to remove logical volume form LVM
unmount the partation : umount <mount point>
remove logical volume : lvremove <lv name>
check with lvdisplay command,to check status.
vgremove <vg name > : remove volume group
pvremove /dev/sdb1 : remove physical volume
fdsik -l : check the physical partations.
remove logical volume : lvremove <lv name>
check with lvdisplay command,to check status.
vgremove <vg name > : remove volume group
pvremove /dev/sdb1 : remove physical volume
fdsik -l : check the physical partations.
Subscribe to:
Posts (Atom)