file lose inode in Memory-Based file system.

2011-08-12 Thread 李森
my syetem is FreeBSD 8.2. i build a memory disk : mdmfs -s 10G -i 512 -o rw md1 /home/test1 After a period of time,some file in the memory disk lose their inode: #ls 90020595.o #ls -l 90020595.o ls: 90020595.o: No such file or directory it seem the inode of this file was lost. how to solve

Building an inode

2008-10-29 Thread Polytropon
Hi again, coming back to my problem with the inode of my home directory having disappeared, I found out that the tool ffs2recov from the ports is able to establish an inode entry for a directory where you can explicitely name the inode and the directory. I know which inode number my former home

Re: Building an inode

2008-10-29 Thread Jeremy Chadwick
On Thu, Oct 30, 2008 at 03:35:04AM +0100, Polytropon wrote: Hi again, snip This is really a question for -fs or -hackers. -questions is for generic stuff -- what you're doing is fairly low-level. Try re-posting your question to -fs, wait a week, then try -hackers. -- | Jeremy Chadwick

Re: Building an inode

2008-10-29 Thread Polytropon
On Wed, 29 Oct 2008 19:47:47 -0700, Jeremy Chadwick [EMAIL PROTECTED] wrote: This is really a question for -fs or -hackers. -questions is for generic stuff -- what you're doing is fairly low-level. Try re-posting your question to -fs, wait a week, then try -hackers. I'll do that, thanks! I

Re: Building an inode

2008-10-29 Thread Polytropon
On Wed, 29 Oct 2008 19:47:47 -0700, Jeremy Chadwick [EMAIL PROTECTED] wrote: Try re-posting your question to -fs, wait a week, then try -hackers. Thank you for this advice, I'll do that - after rewriting the message I prepared. I'm stupid: writing a message and experimenting with ffs2recov is a

Re: Inode numbering

2008-10-22 Thread Polytropon
On Sun, 19 Oct 2008 19:18:00 -0700, [EMAIL PROTECTED] wrote: You may be able to reuse some code from dump(8). Hey, that's a good idea! After having had a short look at the source of dump, I developed another idea: dump applies some criteria weather to access (and dump) an inode or not. Maybe

Re: Inode numbering

2008-10-20 Thread Wojciech Puchar
Because I didn't find sufficient informations and try and error would be incomplete (and insecure regarding the result), I'd like to ask the following question: Let's assume we have a directory D with an inode number i(D). It contains a file F with its inode number i(F). May I state that i(D

Re: Inode numbering

2008-10-19 Thread Polytropon
(foo/baz) == 20, and i(foo/bar) == 25, satisfying your criterion. If I do mv foo/baz foo/bar (so baz is now foo/bar/baz), I will have i(foo/bar) == 25 and i(foo/bar/baz) == 20. Thank you for this example. So I cannot assume inode numbers to be in a specific order. It will force me to do

Re: Inode numbering

2008-10-19 Thread perryh
inodes and adds them to the list. (When doing a level 0 dump, it does the same thing but by definition every inode is selected.) Having done all that, it dumps all the selected directories followed by the rest of the selected inodes. Dump's purpose is to ensure that the dump will be complete

Inode numbering

2008-10-18 Thread Polytropon
Hi! Because I didn't find sufficient informations and try and error would be incomplete (and insecure regarding the result), I'd like to ask the following question: Let's assume we have a directory D with an inode number i(D). It contains a file F with its inode number i(F). May I state that i

Re: Inode numbering

2008-10-18 Thread perryh
Polytropon [EMAIL PROTECTED] wrote: Let's assume we have a directory D with an inode number i(D). It contains a file F with its inode number i(F). May I state that i(D) i(F)? In general, no. It might work in the special case where nothing on the filesystem is ever moved or removed

Re: kgdb of kernel issues FB7.0 (mangled inode)

2008-10-17 Thread Kayven Riese
I wasn't sure if I should have edited this. -- Message: 29 Date: Thu, 16 Oct 2008 18:48:31 -0700 From: Kayven Riese [EMAIL PROTECTED] Subject: kgdb of kernel issues FB7. To: freebsd-questions@freebsd.org, [EMAIL PROTECTED], [EMAIL PROTECTED] Message-ID:

Data loss after power out - fsck: bad inode number to nextinode

2008-07-08 Thread Polytropon
should be 736) CORRECT? yes fsck_4.2bsd: bad inode number 306176 to nextinode The result: The home directories of all other users where present, but mine (!) - /home/adec - was missing. I may explain this a bit more precise: When looking at the files using the Midnight Commander

Re: Data loss after power out - fsck: bad inode number to nextinode

2008-07-08 Thread Anish Mistry
: INCORRECT BLOCK COUNT I=290557 (3104 should be 736) CORRECT? yes fsck_4.2bsd: bad inode number 306176 to nextinode The result: The home directories of all other users where present, but mine (!) - /home/adec - was missing. I may explain this a bit more precise: When

Re: Data loss after power out - fsck: bad inode number to nextinode

2008-07-08 Thread perryh
What should I do? In theory, clri {special-file} 306176 should wipe the inode containing the bad pointer and allow fsck to continue, perhaps recovering the files pointed to by that directory into lost+found. Definitely try this on a copy first if at all possible

mapping inode to file name

2007-01-12 Thread Robert Huff
Is there a program (or a standard function) that, provided the inode #, returns the associated filename? Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo

Re: mapping inode to file name

2007-01-12 Thread Pieter de Goeje
On Friday 12 January 2007 16:55, Robert Huff wrote: Is there a program (or a standard function) that, provided the inode #, returns the associated filename? find / -inum number - Pieter ___ freebsd-questions@freebsd.org mailing list http

how to locate file by inode?

2006-03-22 Thread Eugene M. Minkovskii
Hello! Does anybody know how to locate file by inode? For example, using fstat(1) I see: USER CMD PID FD MOUNT INUM MODE SZ|DV R/W ... user some_program 84130 0 /dev 68 crw--w ttyp0 rw user some_program 84130 1 /usr 595890 -rw-r--r-- 0 w user some_program

Re: how to locate file by inode?

2006-03-22 Thread Dan Nelson
In the last episode (Mar 23), Eugene M. Minkovskii said: Does anybody know how to locate file by inode? For example, using fstat(1) I see: USER CMD PID FD MOUNT INUM MODE SZ|DV R/W ... user some_program 84130 0 /dev 68 crw--w ttyp0 rw user some_program

my server gives an error kernel: free inode /var/XXXX had X blocks

2006-03-14 Thread Halid Faith
Hello I use Freebsd6.0 release. qmail server runs on the server. Today the server was locked and the server has given the screen an error as below; free inode /var/14579103 had 104 blocks the above error that the server gave a several times. I had to push the reset button to reboot

noob question on disk sizes and inode density

2005-06-28 Thread Chad Leigh -- Shire . Net LLC
Ok I have an md(4) file system that I changed the block size and inode density on. The file was about 1.3GB in size originally and when using newfs with standard parameters shows about 1.3GB in size. My new parameters to newfs ( -f 512 -b 4096 -i 1024 -U -O 2) are meant to allow a lot

inode

2005-03-16 Thread Gert Cuykens
What is a inode ? I installed freebsd 5.3 on a 2gb harddisk and it tells me there are not enough inodes ? Aldo there is diskspace availeble ? Does it mean there are to many directories ? Can you fix this ? ___ freebsd-questions@freebsd.org mailing list

Re: inode

2005-03-16 Thread Vladimir Dvorak
Gert Cuykens wrote: What is a inode ? I installed freebsd 5.3 on a 2gb harddisk and it tells me there are not enough inodes ? Aldo there is diskspace availeble ? Does it mean there are to many directories ? Can you fix this ? I suppose there is no disk space available on some partition. When

Re: inode

2005-03-16 Thread Giorgos Keramidas
On 2005-03-16 13:05, Gert Cuykens [EMAIL PROTECTED] wrote: What is a inode ? I installed freebsd 5.3 on a 2gb harddisk and it tells me there are not enough inodes ? Aldo there is diskspace availeble ? Does it mean there are to many directories ? Can you fix this ? i-nodes are the areas where

Re: inode

2005-03-16 Thread Gert Cuykens
On Wed, 16 Mar 2005 14:13:09 +0200, Giorgos Keramidas [EMAIL PROTECTED] wrote: On 2005-03-16 13:05, Gert Cuykens [EMAIL PROTECTED] wrote: What is a inode ? I installed freebsd 5.3 on a 2gb harddisk and it tells me there are not enough inodes ? Aldo there is diskspace availeble ? Does

Re: inode

2005-03-16 Thread Giorgos Keramidas
On 2005-03-16 13:22, Gert Cuykens [EMAIL PROTECTED] wrote: On Wed, 16 Mar 2005 14:13:09 +0200, Giorgos Keramidas [EMAIL PROTECTED] wrote: On 2005-03-16 13:05, Gert Cuykens [EMAIL PROTECTED] wrote: What is a inode ? I installed freebsd 5.3 on a 2gb harddisk and it tells me there are not enough

Re: inode

2005-03-16 Thread Gert Cuykens
is a inode ? I installed freebsd 5.3 on a 2gb harddisk and it tells me there are not enough inodes ? Aldo there is diskspace availeble ? Does it mean there are to many directories ? Can you fix this ? i-nodes are the areas where the file system saves information such as the owner, the size

Re: inode

2005-03-16 Thread Giorgos Keramidas
On 2005-03-16 13:49, Gert Cuykens [EMAIL PROTECTED] wrote: On Wed, 16 Mar 2005 14:27:21 +0200, Giorgos Keramidas [EMAIL PROTECTED] wrote: Show us the output of: # df -ik $ df -ik Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on /dev/ad0s1a253678

Re: inode

2005-03-16 Thread Gert Cuykens
Here you are. Your /usr partition has no free i-nodes. Probably because you used too large block/fragment sizes when it was newfs'd. I pict default partitioning ? How big does the /usr need to be for base, ports mysql php apache ? Is there a make command that tells you how much space it

Re: inode

2005-03-16 Thread Giorgos Keramidas
On 2005-03-16 14:21, Gert Cuykens [EMAIL PROTECTED] wrote: Here you are. Your /usr partition has no free i-nodes. Probably because you used too large block/fragment sizes when it was newfs'd. I pict default partitioning ? How big does the /usr need to be for base, ports mysql php apache ?

Re: inode

2005-03-16 Thread Svein Halvor Halvorsen
* Giorgos Keramidas [2005-03-16 15:06 +0200] Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on /dev/ad0s1a253678 35430 19795415% 981 320413% / devfs 1 1 0 100% 0 0 100% /dev /dev/ad0s1e253678

Re: inode

2005-03-16 Thread Jason Henson
On 03/16/05 08:06:03, Giorgos Keramidas wrote: On 2005-03-16 13:49, Gert Cuykens [EMAIL PROTECTED] wrote: On Wed, 16 Mar 2005 14:27:21 +0200, Giorgos Keramidas [EMAIL PROTECTED] wrote: Show us the output of: # df -ik $ df -ik Filesystem 1K-blocks Used Avail Capacity iused ifree

los+found - INODE Addres and filename

2004-09-19 Thread Joachim Dagerot
Suddenly when I started my system the disk check flagged ALL (I mean all, including directory) files of a user as errenous and started to unlink them. I init 1 and unounted the volume and ran fsck direct on it. Then it created a lost+found directory and after a few millions 'y' 'enter' key

fsck: cannot find inode X

2004-04-23 Thread Todd Meister
, while running fsck on /dev/rccd0c (mounted normally as /usr/home): fsck: cannot find inode 71683 I searched around a bit for the error, and didn't find a whole lot, and nothing that solved the problem. I remembered the fsdb utility, and ran it, like so: fsdb /dev/rccd0c which put me

inode problems...

2004-04-09 Thread Gary Kline
8 19:50:47 PDT 2004. I don't know if this upgrade made any difference, but I think I fixed my partially alloc'd and otherwise bad inode by hand. find / -inum [inode] -print showed me what was whhere and I dealt with each one. Bottom line is that fsck now

any unusual inode problems with 4.9-RELEASE?

2004-04-08 Thread Gary Kline
For the past few days I'm seeing serious inode problems on my 40G drive. Has anybody seen unusual troubles with inodes on FreeBSD-4.9-RELEASE? If not, maybe I'd better get a second drive and dd over? I was running 4.9-STABLE prev, and didn't see any

Re: any unusual inode problems with 4.9-RELEASE?

2004-04-08 Thread Ion-Mihai Tetcu
On Thu, 8 Apr 2004 10:13:04 -0700 Gary Kline [EMAIL PROTECTED] wrote: For the past few days I'm seeing serious inode problems on my 40G drive. Has anybody seen unusual troubles with inodes on FreeBSD-4.9-RELEASE? If not, maybe I'd better get a second drive and dd

Re: any unusual inode problems with 4.9-RELEASE?

2004-04-08 Thread Gary Kline
On Thu, Apr 08, 2004 at 11:17:40PM +0300, Ion-Mihai Tetcu wrote: On Thu, 8 Apr 2004 10:13:04 -0700 Gary Kline [EMAIL PROTECTED] wrote: For the past few days I'm seeing serious inode problems on my 40G drive. Has anybody seen unusual troubles with inodes on FreeBSD-4.9

Re: any unusual inode problems with 4.9-RELEASE?

2004-04-08 Thread Ion-Mihai Tetcu
On Thu, 8 Apr 2004 15:10:42 -0700 Gary Kline [EMAIL PROTECTED] wrote: On Thu, Apr 08, 2004 at 11:17:40PM +0300, Ion-Mihai Tetcu wrote: On Thu, 8 Apr 2004 10:13:04 -0700 Gary Kline [EMAIL PROTECTED] wrote: For the past few days I'm seeing serious inode problems on my 40G

Re: any unusual inode problems with 4.9-RELEASE?

2004-04-08 Thread Gary Kline
: For the past few days I'm seeing serious inode problems on my 40G drive. Has anybody seen unusual troubles with inodes on FreeBSD-4.9-RELEASE? If not, maybe I'd better get a second drive and dd over? I was running 4.9-STABLE prev, and didn't

Re: Error when installing FreeBSD 5.2: /mnt/usr: create symlink failed, no inode free

2004-02-21 Thread Lowell Gilbert
on the system; I have another OS on the other hard drive which shall remain nameless). The install goes fine until it begins to extract the files to the /usr directory, at which it then spits out this error multiple times: /mnt/usr: create symlink failed, no inode free and continues to do so

Error when installing FreeBSD 5.2: /mnt/usr: create symlink failed, no inode free

2004-02-19 Thread Dave Vollenweider
hard drive which shall remain nameless). The install goes fine until it begins to extract the files to the /usr directory, at which it then spits out this error multiple times: /mnt/usr: create symlink failed, no inode free and continues to do so whenever something is added to the hard drive

inode state

2003-12-09 Thread Fabian Thylmann
, my apps state as displayed by top(1) gets into inode state, PRI is set to -14 and cpu usage rapidly drops. The program and ALL of its threads are stalled at that time. Those inode states take around 2 oe 3 seconds and happen every 30 seconds or so. In those 3 seconds we lose around 1500 hits

Re: inode state

2003-12-09 Thread Robert Watson
useless for anything else. When those flushes occure, my apps state as displayed by top(1) gets into inode state, PRI is set to -14 and cpu usage rapidly drops. The program and ALL of its threads are stalled at that time. Those inode states take around 2 oe 3 seconds and happen every 30 seconds

Re: inode state

2003-12-09 Thread Fabian Thylmann
- From: Robert Watson [EMAIL PROTECTED] To: Fabian Thylmann [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, December 09, 2003 7:38 PM Subject: Re: inode state On Tue, 9 Dec 2003, Fabian Thylmann wrote: I have a heavily used threaded server program running on one of my Dell Poweredge

Re: inode state

2003-12-09 Thread Robert Watson
- Original Message - From: Robert Watson [EMAIL PROTECTED] To: Fabian Thylmann [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, December 09, 2003 7:38 PM Subject: Re: inode state On Tue, 9 Dec 2003, Fabian Thylmann wrote: I have a heavily used threaded server program running

Re: inode state

2003-12-09 Thread Fabian Thylmann
Hmm. Kqueue should be thread-safe in that it's a system call, but I can't speak to the safety of various arguments/parameters. I don't know if linuxthreads tries to provide locking around file descriptors and might have reference problems if kqueue were held over a call to close(), but it

Re: Inode Problem

2003-07-12 Thread Jan Grant
On Sat, 12 Jul 2003, Gerard Samuel wrote: A few weeks ago, I had a problem on one of my partitions where it was running out of inodes. The guy who helped me out, at the time suggested to either rebuild the disk or the partition. I don't remember which one at the moment. So what should I be

Re: Inode Problem

2003-07-12 Thread Gerard Samuel
Thanks. I guess I may as well get a bigger disk... ;) Jan Grant wrote: On Sat, 12 Jul 2003, Gerard Samuel wrote: A few weeks ago, I had a problem on one of my partitions where it was running out of inodes. The guy who helped me out, at the time suggested to either rebuild the disk or the

Inode Problem

2003-07-11 Thread Gerard Samuel
A few weeks ago, I had a problem on one of my partitions where it was running out of inodes. The guy who helped me out, at the time suggested to either rebuild the disk or the partition. I don't remember which one at the moment. So what should I be doing? Rebuilding the disk or the partition

2 filesystem problems: blst_radix_free and bad inode number

2003-06-09 Thread Michael A. Smith
: blst_radix_free: freeing free block 2) If I boot single-user, it mounts the root filesystem. When I try to fsck the various filesystems (/, /var, /tmp, /usr) I get this error when fscking /dev/ar0s1g (/usr): fsck: bad inode number 132352 to setinodebuf All the other filesystems come up clean. I