[CentOS-docs] HowTo activate LVs after reboot automatically

Alain Reguera Delgado

al at ciget.cienfuegos.cu
Sun Nov 30 13:55:18 UTC 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alain Reguera Delgado wrote:
> Hello !
> 
> What to do if after reboot, your LVs get inactive ?
> 
> Maybe add the following to /etc/rc.local :
> 
> {{{
> #
> # Mounting MyLogVols
> #
> /usr/sbin/vgchange -a y MyVolGroup
> 
> for i in `ls /dev/MyVolGroup/`; do
> 
>         e2fsck -p /dev/MyVolGroup/$i
> 
>         case $? in
>                 0)
>                 mount -t ext3 /dev/MyVolGroup/$i    /mnt/MyVolGroup/$i
>                 ;;
>                 1)
>                 mount -t ext3 /dev/MyVolGroup/$i    /mnt/MyVolGroup/$i
>                 ;;
>                 2)
>                 /usr/bin/reboot
>                 ;;
>         esac
> 
> done
> }}}

Grrr ... the previous message script has some typos. Excuse me about
that. I think they are fixed now.

Cheers,
- --
Alain Reguera Delgado <al at ciget.cienfuegos.cu>
GnuPG : http://ciget.cienfuegos.cu/~al/publickey.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with CentOS - http://enigmail.mozdev.org

iD8DBQFJMptGyXxCQEoXDZARAkM4AJ4kslEwcKpjuBPgdGiQtgWwQRmXCACeOB7J
ncWgNzyovAJKlEc2A3jWLR0=
=eSlr
-----END PGP SIGNATURE-----



More information about the CentOS-docs mailing list