Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've created an LVM2 script in /etc/init.d/lvm2 and registered it with update-rc for startup, now the manuals I am reading states "immediately after all filesystems were unmounted:" that this should be ran:

vgchange -a n

Where would I place this script, so that it is called to unmount all mounted LVM partitions?

Will I need to implement "start" and "stop" parameters somehow in to my lvm2 script and use update-rc to tell them to use those? I am not sure.

share|improve this question
    
Isn't it done automatically? –  Ency Jan 27 '11 at 22:52

1 Answer 1

up vote 1 down vote accepted

Will I need to implement "start" and "stop" parameters somehow in to my lvm2 script

Yes, if you use update-rc or create link in /etc/rc?.d.

and use update-rc to tell them to use those?

Yes, if you need it to run at startup or shutdown of the system.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.