linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] root partition
@ 2006-07-29  8:17 ramsis farhat
  2006-07-30 11:15 ` Dieter Stüken
  0 siblings, 1 reply; 6+ messages in thread
From: ramsis farhat @ 2006-07-29  8:17 UTC (permalink / raw)
  To: linux-lvm

Hello every body. I'm student and I have training in a company that wants to put LVM partitions in its server.
The problem is that they do not want to format the hard disk.
For the moment, I'm working on a virtual machine with Red Hat Entreprise 3.
I'm working with 2 hard disks of 8GB. The first is partitioned like this
sda1 boot (101 MB)
sda2 /      (7400MB)
sda3 swap (573 MB)
 
I followed exactly the steps in the LVM-HOWTO excepted that I added the second Hard disk sdb.
I made a lvm partion sdb1 and I put all the root data on it.
Then, I had 2 problems. The first is that the RAM disk can't be created because of the lack of space ( I'm not sure of that)
And the second is that the server is using GRUB and not LILO, so I don't know How rebooting on the new root file.
 
If anybody have any suggestion, and thank you for your help.

^ permalink raw reply	[flat|nested] 6+ messages in thread
* [linux-lvm] booting on a new root partition
@ 2006-08-04  8:29 ramsis farhat
  2006-08-04 15:13 ` Dieter Stüken
  0 siblings, 1 reply; 6+ messages in thread
From: ramsis farhat @ 2006-08-04  8:29 UTC (permalink / raw)
  To: linux-lvm, linux-lvm

hi everybody
Dieter, here is what you asked me
[root@localhost root]# ls -ltr /boot
total 6138
-rw-r--r--      1 root     root        21282      Sep 11  2003       message.ja
-rw-r--r--      1 root     root        23108      Sep 11  2003       message
-rw-r--r--      1 root     root        1236945   Oct  4  2003        vmlinuz-2.4.21-4.EL
-rw-r--r--      1 root     root        570887    Oct  4  2003        System.map-2.4.21-4.EL
-rwxr-xr-x    1 root     root        2900380  Oct  4  2003        vmlinux-2.4.21-4.EL
-rw-r--r--      1 root     root        543         Jul   30 21:30       kernel.h
-rw-r--r--      1 root     root        276990    Jul   30 21:30       initrd-2.4.21-4.EL.img
drwxr-xr-x   2 root     root        1024       Jul   30 21:43        grub
lrwxrwxrwx  1 root     root        22          Jul   30 21:43        System.map -> System.map-2.4.21-4.EL
drwx------     2 root     root        12288     Jul   30 23:26        lost+found
-rw-r--r--      1 root     root        48023      Aug  1 14:50         config-2.4.21-4.EL
-rw-r--r--      1 root     root        1154607  Aug  1 14:50         initrd-lvm-2.4.21-4.EL.gz
 
Her is my grub directory
 
[root@localhost root]# ls -ltr /boot/grub
total 185
-rw-r--r--    1 root     root        11182 Sep 11  2003 splash.xpm.gz
-rw-r--r--    1 root     root       106364 Jul 30 21:43 stage2
-rw-r--r--    1 root     root          512 Jul 30 21:43 stage1
lrwxr-xr-x    1 root     root           11 Jul 30 21:43 menu.lst -> ./grub.conf
-rw-r--r--    1 root     root           82 Jul 30 21:43 device.map
-rw-r--r--    1 root     root         9320 Jul 30 21:43 xfs_stage1_5
-rw-r--r--    1 root     root         6528 Jul 30 21:43 vstafs_stage1_5
-rw-r--r--    1 root     root         9408 Jul 30 21:43 reiserfs_stage1_5
-rw-r--r--    1 root     root         7040 Jul 30 21:43 minix_stage1_5
-rw-r--r--    1 root     root         8448 Jul 30 21:43 jfs_stage1_5
-rw-r--r--    1 root     root         6880 Jul 30 21:43 ffs_stage1_5
-rw-r--r--    1 root     root         7536 Jul 30 21:43 fat_stage1_5
-rw-r--r--    1 root     root         7840 Jul 30 21:43 e2fs_stage1_5
-rw-------    1 root     root          679 Aug  1 14:40 grub.conf

And here my configuration
 
[root@localhost root]# cat  /boot/grub/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/sda2
#          initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Enterprise Linux ES (2.4.21-4.EL)
 root (hd0,0)
 kernel /vmlinuz-2.4.21-4.EL ro root=LABEL=/
 initrd /initrd-2.4.21-4.EL.img
title Ramsis
 root (hd0,0)
 kernel /vmlinuz-2.4.21-4.EL ro root=/dev/vg00/root
 initrd /initrd-lvm-2.4.21-4.EL.gz

 
And I mounted my new root ' mount /dev/vg00/root /mnt/ '
The new /etc/fstab contains : 
 
/dev/vg00/root          /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /proc                   proc    defaults        0 0
none                    /dev/shm                tmpfs   defaults        0 0
/dev/sda3               swap                    swap    defaults        0 0
/dev/cdrom              /mnt/cdrom              udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0                /mnt/floppy             auto    noauto,owner,kudzu 0 0

But i still think the problrm is coming from the instruction "lvmcreate_initrd" because if I do not use the "-D" flag, the instruction fail, and in the "LVM-HOWTO", it is used without that flag.
If you have any suggestion :)
thank you :)

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-08-04 15:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-29  8:17 [linux-lvm] root partition ramsis farhat
2006-07-30 11:15 ` Dieter Stüken
2006-08-03  8:08   ` [linux-lvm] booting on a new " ramsis farhat
2006-08-03 11:38     ` Dieter Stüken
  -- strict thread matches above, loose matches on Subject: below --
2006-08-04  8:29 ramsis farhat
2006-08-04 15:13 ` Dieter Stüken

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).