Labels

hpunix (63) marathi kavita (52) linux (21) solaris11 (11) AWS (5) numerology (5)

Thursday, June 20, 2024

How to reduce coredump size in Solaris 11

How to reduce coredump size in Solaris 11.

Suppose rpool is full and we don’t have any scope for further housekeeping then we can try to reduce the size of coredump to free up some space in rpool.

If we reduce the size of coredump directly it will give us error and ask to do it forcefully but doing it forcefully may cause data loss.


Below are the steps to do reduce coredump size.

#dumpadm     >>> to get info on current dump device and savecore directory

# zfs get volsize rpool/dump       >>> To get vol size of dump device

#zfs create -V 10G rpool/dump1       >>> creating new dump volume of size 10G (suppose previous dumpsize is 20G)

# dumpadm -d /dev/zvol/dsk/rpool/dump1          >>> set the dump device to new volume

#dumpadm             >>> We can see new dump device

#zfs list |grep -i dump                >>> We can see 2 dump devices here

#zfs destroy rpool/dump                       >>> destroy old dump device


Thanks,

Kiren Jadhav

No comments:

Post a Comment