Repairing an Unbootable System

Friday, May 17, 2013 at 2:09 AM

System is not booting because of some pool having issue, if you come occur this situation use this procedure to solve the issue:

boot the system:

ok boot -m milestone=none

remount the root file system with read/write option:

mount -o rw / 

Move the zpool cache file:

mv /etc/zfs/zpool.cache /etc/zfs/zpool.cache.old

Take the system to normal state:

svcadm milestone all

Identify the which pool having issue:

fmdump -eV 

Import the pool one by one skipping the pools that are having problems:

zpool import

Date and uptime problem issue

Thursday, May 2, 2013 at 12:11 AM
# uptime
7:34pm up 5553 day(s), 20:34, 2 users, load average: 0.29, 0.38, 0.49
#

  • Test the TOD at the ok prompt
  • Replace the PCI I/O riser board if the TOD appear to be faulty
  • Run POST diag-level=max and obdiags to ensure all components are fine
  • Reboot and check the uptime

VXVM FS resize

Friday, January 25, 2013 at 4:31 AM

# vxprint

/usr/sbin/vxprint -Qqhtg DG catiav510


/usr/sbin/vxprint -Ath | grep volume


/usr/sbin/vxprint -Qqhtg DG volume-01 => sv


/usr/sbin/vxprint -Qqhtg DG volume-L03 => sd


FS Extention:


Sytax:


/etc/vx/bin/vxresize [-bsx] [-F fstype] [-g diskgroup] [-t tasktag] volume new_length [medianame...]


/etc/vx/bin/vxresize -g [alloc=]


/etc/vx/bin/vxresize -g datadg volume +100m


/etc/vx/bin/vxresize -g DG volume +10g alloc="d25 d26 d66 d79"


/etc/vx/bin/vxresize -g DG1 volume1 +10g alloc="c3t0d21 c3t0d22 c3t0d23 c3t0d24 c3t0d25 c3t0d26 c3t0d27 c3t0d28"


find larger files command

Thursday, January 24, 2013 at 10:37 PM

Check larger files:

find . -xdev -size +10000000c -exec ls -l {} \; 


find . -xdev -type f -size +1024 -ls | awk '{print $11, $7}' | sort -rn +1 | awk '{print $1, $2/1024/1024 "MB"}'


Check core files:


find . -xdev -name core -exec ls -l {} \;


List and remove the modified file


find . -xdev -mtime +60 -exec ls -l {} \;


find . -xdev -mtime +60 -exec rm -rf {} \;


Check disk usage:


du -sk * |sort -n


du -kx .| sort -n 


du -sxk * | sort -nb | tail


du -sk * | sort -nb | tail 


du -sk *


du -sk ./* 


du -sk . 


Solaris | Powered by Blogger | Entries (RSS) | Comments (RSS) | Designed by MB Web Design | XML Coded By Cahayabiru.com