startup scripts
Hello all,
New here.
I am trying to get my RAID working with LVM. So far so good. But I have a couple of questions:
Where does the startup script go? I tried to put it in rc.sysinit right after the hostname setup and tells me LVM startup is sucessful but would not really start the VG. It fails on fsck. Then it drops me to shell and I can manually start LVM by doing vgchange -ay (exact same way it is in rc.sysinit) and do fsck and continue booting from there. What gives?
The other question is probably just a fluke but I couldn't create a directory on the file system mounted on LVM. I can create files though. But then it went away when I rebooted.
Thanks
begin:vcard
n:Mengistu;Gashaw
x-mozilla-html:FALSE
adr:;;;;;;
version:2.1
email;internet:[email protected]
title:Systems Engineer
x-mozilla-cpt:;0
fn:Gashaw Mengistu
end:vcard
Oh .. I am using Mandrake 7.2 with Kernel 2.4.1 compiled with RAID and LVM support built in.
Quoted 17 lines · Gashaw Mengistu
Hello all,
New here.
I am trying to get my RAID working with LVM. So far so good. But I have a couple of questions:Where does the startup script go? I tried to put it in rc.sysinit right after the hostname setup and tells me LVM startup is sucessful but would not really start the VG. It fails on fsck. Then it drops me to shell and I can manually start LVM by doing vgchange -ay (exact same way it is in rc.sysinit) and do fsck and continue booting from there. What gives?
The other question is probably just a fluke but I couldn't create a directory on the file system mounted on LVM. I can create files though. But then it went away when I rebooted.
Thanks
Quoted 4 lines · Gashaw Mengistu
Oh .. I am using Mandrake 7.2 with Kernel 2.4.1 compiled with RAID and LVM support built in.
Well, if you compiled your kernel with raid autodetect support it does not matter that much where you put it. If your raid is started by some startup-script you have to put the lvm-stuff after that.
I think it is quite reasonable to initialize LVM quite early, after the initial mount of the / filesystem. That way you can mount the filesystems the usal way at startup - using /etc/fstab. If one of your PV's is a MD, autodetect support is mandatory.
greetings,
Nils
Quoted 3 lines
Nils Juergens | [email protected] | icq 7090774 < If we all work hard, we can turn this company < around 360 degrees -- gruntbert(LOTD) <
[linux-lvm] how to upgrade from rh70 to rh71
Hmm:
I never really thought about this when I decided to put all my filesystems on LVM logical volumes; but how am I going to be able to upgrade to RedHat 7.1? If I remember correctly, the installer has its own custom kernel and root filesystem to boot into for the upgrade.
My setup is two IDE disks with 4 RAID-1 devices. I have an LVM volume group (/dev/w0) on one of these (/dev/md2), that has all my filesystems on it (except /boot).
/dev/w0/root/dev/w0/var/dev/w0/usr/dev/w0/home/dev/w0/opt.
So the redhat upgrade kernel will need to have support for RAID and LVM. And it will need to run vgscan, and vgchange -ay. And it will need to have devfs support or it will need to use mknod to make the directories enumerated above. Does anyone know if it does all these things?
Am I going to have to use my own rescue disk as the platform from which to manually do the upgrade (by issuing the appropriate rpm commands?
Has anyone with a similar configuration done this?
---
Joe Harvell