- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: fedora lvm root disk ....
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2005 12:33 PM
08-09-2005 12:33 PM
fedora lvm root disk ....
I am running fedora3, I am trying to get lvm on root partition to work. However I need to add the lvm module to initrd. I tried including dm_mod in the initrd creation process, but could not locate it. Does any one know what module I should add to the initrd process in order to support lvm on root partition? Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2005 06:25 PM
08-09-2005 06:25 PM
Re: fedora lvm root disk ....
Did you use mkinitrd to create ram disk?
If you used mkinitd, try:
mkinitrd -v --preload dm-mod image-name `uname -r`
regards,
Steven Chan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2005 09:31 PM
08-09-2005 09:31 PM
Re: fedora lvm root disk ....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2005 01:46 AM
08-10-2005 01:46 AM
Re: fedora lvm root disk ....
error:
mkrootdev: label /root not found
mounting root filesystem
mount: error 2 mounting ext3
mount: error 2 mounting none
Switching to new root
switchroot: mount failed: 22
umount /initrd/dev failed: 2
Kernel panic - not syncing: Attempted to kill init!
this part with /root label is the the root partition underl lvm, I migrated it from the original root partition (/dev/hda2) which I did not wipe out. If I boot using /dev/hda2 I am back where I started. Is there anything I need to do to get mkrootdev to work with the new lvm root partition labeled: /root? Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2005 02:42 AM
08-10-2005 02:42 AM
Re: fedora lvm root disk ....
What is your lvm root file system labeled?
If not, use tune2fs -L to change your lvm root file system's label.
And do not connect 2 partition with the same label one system together.
regards,
Steven Chan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2005 02:48 AM
08-10-2005 02:48 AM
Re: fedora lvm root disk ....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2005 03:00 AM
08-10-2005 03:00 AM
Re: fedora lvm root disk ....
I had tryed to mkinitrd with dm-mod preloaded under RHEL4, mkinitrd will include lvm2 into ram disk automatically. But I have not try this on FC3.
What is you mkinitrd version? maybe your mkinitrd is too old to support lvm2.
BTW, the module name on kernel tree of dm_mod is dm-mod.
regards
Steven Chan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2005 03:04 AM
08-10-2005 03:04 AM
Re: fedora lvm root disk ....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2005 03:18 AM
08-10-2005 03:18 AM
Re: fedora lvm root disk ....
kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2005 03:20 AM
08-10-2005 03:20 AM
Re: fedora lvm root disk ....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2005 03:20 AM
08-10-2005 03:20 AM
Re: fedora lvm root disk ....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2005 03:45 AM
08-10-2005 03:45 AM
Re: fedora lvm root disk ....
You can boot you system via FC3 CD in rescue mode and with lvm root partition installed. If rescue mode can detect you root file system on lvm and mounted, chroot to the mounted root file system then mkinitrd again.
Maybe this will make mkinitrd to include lvm2 into ram disk.
regards,
Steven Chan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2005 03:48 AM
08-10-2005 03:48 AM
Re: fedora lvm root disk ....
FC3 suppor root file system on LVM.
I did it long time ago, but I did it during the OS installation with Disk Druid.
regards
Steven Chan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2005 04:09 AM
08-10-2005 04:09 AM
Re: fedora lvm root disk ....
Creating initramfs
Looking for deps of module dm-mod
Looking for deps of module ide-disk
Looking for deps of module dm-mod
Looking for deps of module ext3 jbd
Looking for deps of module jbd
Looking for deps of module xfs
Using modules: ./kernel/drivers/md/dm-mod.ko ./kernel/fs/jbd/jbd.ko ./kernel/fs/ext3/ext3.ko ./kernel/fs/xfs/xfs.ko
/sbin/nash -> /tmp/initrd.FQ5577/bin/nash
/sbin/insmod.static -> /tmp/initrd.FQ5577/bin/insmod
/sbin/udev.static -> /tmp/initrd.FQ5577/sbin/udev
/etc/udev/udev.conf -> /tmp/initrd.FQ5577/etc/udev/udev.conf
copy from /lib/modules/2.6.10-1.770_FC3smp/./kernel/drivers/md/dm-mod.ko(elf32-i386) to /tmp/initrd.FQ5577/lib/dm-mod.ko(elf32-i386)
copy from /lib/modules/2.6.10-1.770_FC3smp/./kernel/fs/jbd/jbd.ko(elf32-i386) to /tmp/initrd.FQ5577/lib/jbd.ko(elf32-i386)
copy from /lib/modules/2.6.10-1.770_FC3smp/./kernel/fs/ext3/ext3.ko(elf32-i386) to /tmp/initrd.FQ5577/lib/ext3.ko(elf32-i386)
copy from /lib/modules/2.6.10-1.770_FC3smp/./kernel/fs/xfs/xfs.ko(elf32-i386) to /tmp/initrd.FQ5577/lib/xfs.ko(elf32-i386)
Loading module dm-mod
Loading module jbd
Loading module ext3
Loading module xfs
I do not see lvm? am I missing something?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2005 04:15 AM
08-10-2005 04:15 AM
Re: fedora lvm root disk ....
chrooting still not working. Same error? does any one know else should be included in initrd inorder to support lvm on root?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2005 02:52 AM
08-11-2005 02:52 AM
Re: fedora lvm root disk ....
I think you have to create initrd manunally.
The following modules have to be inculded:
dm-mirror.ko
dm-mod.ko
dm-snapshot.ko
dm-zero.ko
ext3.ko
jbd.ko
/usr/sbin/lvm.static has to be copied to initrd's /bin/lvm, and /etc/lvm/lvm.conf should be included also.
And here is a sample of init script on initrd:
#!/bin/nash
mount -t proc /proc /proc
setquiet
echo Mounted /proc filesystem
echo Mounting sysfs
mount -t sysfs none /sys
echo Creating /dev
mount -o mode=0755 -t tmpfs none /dev
mknod /dev/console c 5 1
mknod /dev/null c 1 3
mknod /dev/zero c 1 5
mkdir /dev/pts
mkdir /dev/shm
echo Starting udev
/sbin/udevstart
echo -n "/sbin/hotplug" > /proc/sys/kernel/hotplug
echo "Loading dm-mod.ko module"
insmod /lib/dm-mod.ko
echo "Loading jbd.ko module"
insmod /lib/jbd.ko
echo "Loading ext3.ko module"
insmod /lib/ext3.ko
echo "Loading dm-mirror.ko module"
insmod /lib/dm-mirror.ko
echo "Loading dm-zero.ko module"
insmod /lib/dm-zero.ko
echo "Loading dm-snapshot.ko module"
insmod /lib/dm-snapshot.ko
/sbin/udevstart
echo Making device-mapper control node
mkdmnod
echo Scanning logical volumes
lvm vgscan
echo Activating logical volumes
lvm vgchange -ay
echo Making device nodes
lvm vgmknodes
echo Creating root device
mkrootdev /dev/root
umount /sys
echo Mounting root filesystem
mount -o defaults --ro -t ext3 /dev/root /sysroot
mount -t tmpfs --bind /dev /sysroot/dev
echo Switching to new root
switchroot /sysroot
umount /initrd/dev
regards,
Steven Chan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2005 07:52 AM
08-16-2005 07:52 AM
Re: fedora lvm root disk ....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2005 01:23 PM
08-16-2005 01:23 PM
Re: fedora lvm root disk ....
Yes, you can setup LVM during the installation with Disk Druid in FC3 or FC4.
Actually, if you let Disk Druid part you hard drive automatically, the default setting is use LVM on your root. Of cause you can do this manually.
regards,
Steven Chan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2005 02:27 AM
08-17-2005 02:27 AM
Re: fedora lvm root disk ....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2005 03:08 AM
08-17-2005 03:08 AM
Re: fedora lvm root disk ....
When you install from the FCs' CD. During Disk Partition Setup, you will be asked for choosing Automatically Partition or Manually partition with Disk Druid.
Choose Automatically Partition and it will setup your hard drive with 1 partition for /boot and rest of part to a VG, then create a LV for / and another LV for swap.
regards,
Steven Chan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2005 05:44 AM
08-17-2005 05:44 AM
Re: fedora lvm root disk ....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2005 02:49 AM
08-31-2005 02:49 AM