HowTo activate LVs after reboot automatically

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----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@xxxxxxxxxxxxxxxxxxx>
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-----

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Users]     [CentOS Virtualization]     [Linux Media]     [Asterisk]     [Netdev]     [X.org]     [Xfree86]     [Linux USB]     [Project Hail Cloud Computing]

  Powered by Linux