[linux-lvm] re-activate lv after reboot ?

Edward Choi edward at os.sg
Thu Apr 23 03:46:48 UTC 2009


On Tue, Apr 21, 2009 at 11:47 PM, vu pham <vu at sivell.com> wrote:
> My server uses iscsiadm to access a remote iscsi device. VG and LV are
> created on that device and can be accessed just fine.
> The problem is after reboot, the LVs are in inactive mode and I have to run
> vgchange -a y to activate the VG on the iscsi device or to put that command
> /etc/rcd./rc.local.
>
> Is there any way to automatically to activate those LVs/VGs when the iscsi
> device starts ?
>

First make sure node.startup is set to automatic in /etc/iscsi/iscsi.conf. Then
you can edit /etc/fstab and mount your lv using _netdev.

--
Regards,
Edward Choi.




More information about the linux-lvm mailing list