[CentOS-docs] HowTo activate LVs after reboot automatically

Alain Reguera Delgado al at ciget.cienfuegos.cu
Sun Nov 30 21:50:31 UTC 2008


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

Tim Verhoeven wrote:
> On Sun, Nov 30, 2008 at 2:55 PM, Alain Reguera Delgado
> <al at ciget.cienfuegos.cu> wrote:
>>> What to do if after reboot, your LVs get inactive ?
>>>
>>> Maybe add the following to /etc/rc.local :
...
> 
> The standaard boot scripts should activate all LVM volume groups and
> logical volumes at boot. And the automatic mounting should be done
> using /etc/fstab. 

That's what I initially thought ... but got surprised when I reboot the
system. What I initially did was:

1. connect an external maxtor usb hdd.
2. initialize the device (pvcreate)
3. create a Backup volume group (vgcreate)
4. create logical volumes inside Backup volume group (lvcreate)
5. mkfs.ext3 to logical volumes inside Backup volume group.
5. create the mount points (mkdir /var/ftp/Backup/<departament_name> )
6. update /etc/fstab to add mount definitions.
7. mount partitions.
8. fix permissions.

It worked until the system was rebooted. When did so, the system stopped
and prompted me to add root password to correct the filesystem. I picked
the CentOS LiveCD, commented Backup logical volumes definitions in
/etc/fstab and after reboot the system booted up. Once inside the system
checked volumes with lvscan, all lv inside Backup volume group were
inactive.

> If this does not happen this is a bug and it should
> be investigated.

How could I help ?

> Are you experiences this problem yourself ?

Yep. I think so.

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

iD8DBQFJMwqnyXxCQEoXDZARApCGAKC9wlpzc3fTOvDkv4+xxLLwFWNyjACg4zaV
fCi3BJe2COhk8CrW4pgEMxE=
=dUBi
-----END PGP SIGNATURE-----


More information about the CentOS-docs mailing list