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 . 


Adding the mirror disk into zfs pool is abort with core dump and workaround

Thursday, December 6, 2012 at 8:39 AM
Adding the mirror disk into the pool abort with core dump and workaround


root@node:/ > zpool add pool mirror c5t600508B40006AB5F0000900002230000d0 c5t600508B40006B1440000700006090000d0

Abort (core dumped)
root@node:/ >

root@node:/ > NOINUSE_CHECK=1 zpool add eqptpool mirror c5t600508B40006AB5F0000900002230000d0 c5t600508B40006B1440000700006090000d0

root@node:/ >

Mounting issue vxfs file system

Wednesday, October 10, 2012 at 7:43 AM
node# mount /u001


vxfs mount: /dev/vx/dsk/rootdg/vol1 is corrupted. needs checking

We have tried the fsck, but was not successful. We are unable to mount the filesystem /local

node#

Solution:
format >> analyze >> read to fix the block 5125 error of disk c3t2d0.

#fsck -F vxfs -y /dev/vx/rdsk/rootdg/vol1

#mount /local

Oneway mirror Need Maintenance state and connectivity lost issue in Storage

at 7:38 AM

If you encounter onway mirror issue with Storage disk. If the disk status is okay but problem to clear the Need maintenance state and to avoid this problem in future the below is the solution.


Configuration and the submirror status:



d8: Mirror

Submirror 2: d28
State: Needs maintenance
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 1715358144 blocks


d28: Submirror of d8


State: Needs maintenance


Invoke: after replacing "Maintenance" components:

metareplace d8 c2t0d1s0
Size: 1715365632 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c2t0d1s0 0 No Last Erred

# umount /local

# umount /test2


If the file systems cannot be unmounted then you will have to reboot into single user mode before continuing with the below commands.

# fsck -F ufs -y /dev/md/rdsk/d215

# fsck -F ufs -y /dev/md/rdsk/d230

# metaclear d215

# metaclear d230

# metaclear -rf d8


# metainit d8 1 1 c2t0d1s0

# metainit d215 -p d9 -o 87666101 -b 743486015 -o 853202938 -b 76379648 -o 930764284 -b 182452224 -o 1117410814 -b 85983232
# metainit d230 -p d9 -o 46833323 -b 3774156 -o 843685879 -b 3807232


# mount /local

# mount /test2


d8: Mirror

Submirror 2: d28
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 1715358144 blocks


d28: Submirror of d8

State: Okay
Size: 1715365632 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c2t0d1s7 0 No Okay

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