Monday, November 28, 2016

Creating /var/crash on linux server



1)  Create crash volume with 1 GB of size.

# lvcreate -L 1024 -n crashvol1 /dev/vg00


2) Create a filesystem with ext3

# mkfs.ext3 /dev/vg00/crashvol1

3) Add in /etc/fstab for making permanent.

# vi /etc/fstab
/dev/vg00/crashvol1 /var/crash ext3 defaults  1 2

4) Create a directory

 # mkdir /var/crash

5) Mount the directory

 # mount -a

No comments:

Post a Comment