1834007 Members
1854 Online
110063 Solutions
New Discussion

Re: filesystem

 
Sunil Rahate_1
Advisor

filesystem

i have extended the lv with the help of lvextend command but while using fsadm -F vxfs -b 300m /tmp
-----------
i got following error.
vxfs fsadm: cannot open /tmp/lost+found/.fsadm - errno 2
13 REPLIES 13
Ivan Krastev
Honored Contributor

Re: filesystem

Error 2 is for missing file/directory.
Try to create /tmp/lost-found and start it again.

regards,
ivan
Sandeep_Chaudhary
Trusted Contributor

Re: filesystem

u might not have lost.found directory. create it. and touch a file .fsadm inside lost_found then run fsdam

for more detailed information please read:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1222427658295+28353475&threadId=153133
Sunil Rahate_1
Advisor

Re: filesystem

how to create /tmp/lost+found?
Sunil Rahate_1
Advisor

Re: filesystem

Thanks for your quick response.

can you please help me to know what are the steps to create /tmp/lost+found directory?
Venkatesh BL
Honored Contributor

Re: filesystem

Simple. "mkdir -p /tmp/lost+found"
Sunil Rahate_1
Advisor

Re: filesystem

is this command right?
==========================================
mkdir -p -m 755 /tmp/lost+found
V. Nyga
Honored Contributor

Re: filesystem

Hi,

yes, that's right.
Also make a 'touch /tmp/lost+found/.fsadm'
and a 'chmod 600 /tmp/lost+found/.fsadm'

Volkmar
*** Say 'Thanks' with Kudos ***
Sandeep_Chaudhary
Trusted Contributor

Re: filesystem

I guess u dont read links send to u.
everything is mentioned in good depth in the link i send

mkdir /tmp/lost+found

Then you can try the fsadm command. If it still fails then use touch to create the .fsadm file

touch /tmp/lost+found/.fsadm
Robert-Jan Goossens
Honored Contributor

Re: filesystem

Hi,

# cd /tmp
# /usr/sbin/mklost+found

Regards,
Robert-Jan
Suraj K Sankari
Honored Contributor

Re: filesystem

Hi,

You MUST have the lost+found dir on each filesystem mount point.
If it's not there so you can create it like

mkdir /tmp/lost+found

Set ownership & perms if necessary

Then create a .fsadm file using touch

touch /tmp/lost+found/.fsadm

now try fsadm command it should run.

Suraj
SKR_1
Trusted Contributor

Re: filesystem

Hey Sunil,

What you doing man.

fsadm -F vxfs -b 300M /tmp

(use capital M)

Thanks

SKR
V. Nyga
Honored Contributor

Re: filesystem

@Suraj - nice cut and paste - does it make sense to repeat older answers without new notes?

V.
*** Say 'Thanks' with Kudos ***
James R. Ferguson
Acclaimed Contributor

Re: filesystem

Hi:

The *correct* way to make the 'lost+found' directory is to use the command:

# mklost+found

See the corresponging manpages for why.

Regards!

...JRF...