VOlume full


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users VOlume full
# 1  
Old 01-07-2005
VOlume full

Hello,

I'm using SOlaris 8 and I have a little bug.

I have deleted a big files to free space on a volume (succesfully), but when I'm using the command "df -k", the volume is always displaying 100 % full.

Sun recommends a server reboot.

Did you see an other solution ?

Thanks,

Fabien
# 2  
Old 01-07-2005
It matters what file(s) you deleted. Some files could still be allocated by a process (it still has it opened) so you don't get the space back until the process is done. A reboot would certainly fix that - but I'm surprised SUN recommended that.

You can use lsof to see what files are open by what processes (if it's loaded on your server). Fuser may also show you.
# 3  
Old 01-07-2005
Computer

In fact It's not really Sun recommendation , but a Unix Expert here Smilie

Unfortunately "lsof" is not installed.

My file deleted was a log file from Oracle. Maybe by stopping and restarting Oracle ...
# 4  
Old 01-07-2005
That (starting/stopping Oracle) might work but I'm not a DBA.
Seems you should be talking to your DBA before deleting Oracle files.
# 5  
Old 01-07-2005
The DBA tells me to do it Smilie
# 6  
Old 01-08-2005
Encounter smiliar issue like you. Certain stupid application keeps a log file open to write too. Like VCS. If it gets too big for your filesystem and you delete it. You will realize the space consumed is not returned to the filesystem.

I use cp /dev/null > $Logfile, also face the same issue.

I decided to increase the file system instead.

To all experts, any good solutions here?
# 7  
Old 01-08-2005
Quote:
Originally posted by unclefab

Unfortunately "lsof" is not installed.
Try "fuser" then (if it's installed Smilie)

Also; izzy - cp /dev/null > $Logfile is not a valid command. The redirect won't work. Sure you don't mean "cat /dev/null > $Logfile"?

I'd agree that stopping whatever service is using the file, then catting/deleting/whatever, the starting again is the best way to go. You could always write a script to do this out-of-hours via cron on a production server.

Cheers
ZB
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

No space in volume group. How to create a file system using existing logical volume

Hello Guys, I want to create a file system dedicated for an application installation. But there is no space in volume group to create a new logical volume. There is enough space in other logical volume which is being mounted on /var. I know we can use that logical volume and create a virtual... (2 Replies)
Discussion started by: vamshigvk475
2 Replies

2. AIX

Position of the logical volume on the physical volume

Hello everyone, I just read that while creating a logical volume(LV) we can choose the region of the physical volume (PV) in which the LV should be created. When I say region I mean: outer edge - outer middle - center - inner middle and inner edge. Can anyone help me understand the utility... (11 Replies)
Discussion started by: adilyos
11 Replies

3. UNIX for Dummies Questions & Answers

Confusion Regarding Physical Volume,Volume Group,Logical Volume,Physical partition

Hi, I am new to unix. I am working on Red Hat Linux and side by side on AIX also. After reading the concepts of Storage, I am now really confused regarding the terminologies 1)Physical Volume 2)Volume Group 3)Logical Volume 4)Physical Partition Please help me to understand these concepts. (6 Replies)
Discussion started by: kashifsd17
6 Replies

4. UNIX for Dummies Questions & Answers

VERITAS Volume Manager - mirror a disk/volume

I have a machine (5.10 Generic_142900-03 sun4u sparc SUNW,Sun-Fire-V210) that we are upgrading the storage and my task is to mirror what is already on the machine to the new disk. I have the disk, it is labeled and ready but I am not sure of the next steps to mirror the existing diskgroup and... (1 Reply)
Discussion started by: rookieuxixsa
1 Replies

5. AIX

Logical volume name conflict in two volume group

Hello, I am a french computer technician, and i speak English just a little. On Aix 5.3, I encounter a name conflict logical volume on two volume group. The first volume lvnode01 is OK in rootvg and mounted. It is also consistent in the ODM root # lsvg -l rootvg |grep lvnode01 ... (10 Replies)
Discussion started by: dantares
10 Replies

6. AIX

Basic Filesystem / Physical Volume / Logical Volume Check

Hi! Can anyone help me on how I can do a basic check on the Unix filesystems / physical volumes and logical volumes? What items should I check, like where do I look at in smit? Or are there commands that I should execute? I need to do this as I was informed by IBM that there seems to be... (1 Reply)
Discussion started by: chipahoys
1 Replies

7. AIX

Moving a Logical Volume from one Volume Group to Another

Does anyone have any simple methods for moving a current logical volume from one volume group to another? I do not wish to move the data from one physical volume to another. Basically, I want to "relink" the logical volume to exist in a different volume group. Any ideas? (2 Replies)
Discussion started by: krisw
2 Replies

8. Solaris

How to resize mirror volume in veritas volume manager 3.5 on Solaris 9 OE

Hi all, I have a problem with vxvm volume which is mirror with two disks. when i am try to increase file system, it is throwing an ERROR: can not allocate 5083938 blocks, ERROR: can not able to run vxassist on this volume. Please find a sutable solutions. Thanks and Regards B. Nageswar... (0 Replies)
Discussion started by: nageswarb
0 Replies

9. UNIX for Advanced & Expert Users

LVM - Extending Logical Volume within Volume Group

Hello, I have logical volume group of 50GB, in which I have 2 logical volumes, LogVol01 and LogVol02, both are of 10GB. If I extend LogVol01 further by 10GB, then it keeps the extended copy after logical volume 2. I want to know where it keeps this information Regards Himanshu (3 Replies)
Discussion started by: ghimanshu
3 Replies
Login or Register to Ask a Question