I was not sure on the title for this post, but I bet everyone, at least once, needed to know which file is being modified at this exact moment in your filesystem/server.
Some days ago I noticed something was making my filesystem full. I cleared some gigas in logs from Diag Home but the space gone 100% very quickly. What is consuming the space?
1. Create a new file.
$ touch a.log
2. Find everything newer than this file.
$ find . -newer a.log
Here you go!
In my situation, after finding this, I noticed there was a session in a bug situation generating thousands of messages on trace file.
Killed the session, got part of the messages, cleared file. Issue solved.
Hope it helps!
Due to ease in which we can go to the future or return to the past using Goldengate, it becomes increasingly necessary recover archives from backup, sometimes it is necessary to recover a several days.
To do it, generally we need large disk space, at this time, starts a searching for storage disks.
After finding a disk, is need to mount it, i performed with simply mount options in AIX.
From disk to filesystem:
> Rescan on scisi controller to detect the disk (controller id 0, in this example)
echo "- - -" > /sys/class/scsi_host/host0/scan
– List disks
> Fdisk choosing options n -> new p->partition 1-> partition number
> Create physcal volume
> Create Volume Group
vgcreate oracle /dev/sdb1
> Rename Volume Group
vgrename oracle vgoracle
> Create LV
lvcreate -L 19G -n lvoracle vgoracle
> Extend LV
lvextend -L +990M /dev/vgoracle/lvoracle
> Make FileSystem
mkfs.ext3 -m 0 -v /dev/vgoracle/lvoracle
OBS: m 0 is the journal (for recovery in case of crash). “0” because I don’t want it now. So, 100% of disco will be available for using on fs.
> Mount filesystem on Directory
mount -t ext3 /dev/vgoracle/lvoracle /oracle/
> Just to check:
$ df -h
20G 173M 20G 1% /oracle
Have a nice day!