jump to navigation

Configure disk to use for veritas volume manager (VxVM) Sunday, September 16, 2007

Posted by piyut in Solaris.
4 comments

1. Detect new disk -> dfsadm, cfgadm -c configure control_number

2. Labeling disk -> format, choose disk number, label

3. Configure disks

# vxdisksetup -i disk_name

or using vxdiskadm -> choose 1. Add or initialize one or more disks

4. make diskgroup

# vxdg init dg_name disk_name=device_name

* vxdg init backupdg backupdg01=Disk_24

5. make volume

# vxassist -g backupdg maxsize

2096883712

# vxassist -g backupdg make backuplv 2096883712

*size=output from vxassist -g dg_name maxsize

6. Start volume

# vxvol -g backupdg startall

7. Make Filesystem

# mkfs -F vxfs /dev/vx/rdsk/backupdg/backuplv

8. Mounting Filesystem

# mkdir /backup

# mount -F vxfs /dev/vx/dsk/backupdg/backuplv /backup

9. Edit /etc/vfstab

How to find world writable file and directory Friday, September 14, 2007

Posted by piyut in HP-UX, Solaris.
add a comment

To find world writable file:

#  find / -type f -perm -o+w -exec ls -l {} \;

To find world writable directory:

# find /home -type d -perm -o+w -exec ls -ld {} \;

Adding Static Route on Solaris System Friday, August 24, 2007

Posted by piyut in Solaris.
add a comment

Adding static route onto solaris system using command line:

# route add -net 10.0.0.0 10.1.65.233

Add to startup script:

# vi /etc/init.d/static_routes

/usr/sbin/route add -net 10.0.0.0 10.1.65.233

# ln -s /etc/init.d/static_routes S99static_routes

SSH Timeout with error “Server unexpectedly closed network connection” Wednesday, August 22, 2007

Posted by piyut in HP-UX, Solaris.
add a comment

Login to server using ssh have an error “Server unexpectedly closed network connection”, this case is issue of sshd_config configurations related to DNS service. to solve this case, configure sshd_config to change line “UseDNS” to “no” than restart sshd daemon.