Skip to contentSkip to conversation

ext3 slash

linux-lvm Geoff Dolman 3 participants 6 messages Jun 6, 2003 – Jun 7, 2003

lore
Share & tools
lore
#0 lore raw

Hi

I have installed a machine with a /boot in a normal partition and all other partitions including / on ext3 logical volumes.
(Red Hat 9/lvm 1.0.3).

I want to snapshot dump these partitions but I didn't realise at the time of the install that I would have to patch the kernel to be able to do this with ext3 filing systems.
I don't want to have to do this so I migrated the partitions to ext2 using tune2fs and changed fstab.

In the case of / and /var I booted into rescue mode from cd to run tune2fs against those volumes read-only.

When I rebooted the machine I got a panic because there was no journal found on /. Rebooting into rescue mode and restoring the journal on slash cures this problem.

How can I change the slash volume from ext3 to ext2? As I mentioned I edited fstab so there must be some other record somewhere telling the kernel that slash is ext3 but what? Do I need to make a new initrd.img?

Many thanks

Signature · 1 line
Geoff Dolman <[email protected]>
#1 lore raw
Quoted 15 lines · Geoff Dolman

Hi

I have installed a machine with a /boot in a normal partition and all other partitions including / on ext3 logical volumes.
(Red Hat 9/lvm 1.0.3).

I want to snapshot dump these partitions but I didn't realise at the time of the install that I would have to patch the kernel to be able to do this with ext3 filing systems.
I don't want to have to do this so I migrated the partitions to ext2 using tune2fs and changed fstab.

In the case of / and /var I booted into rescue mode from cd to run tune2fs against those volumes read-only.

Quoted 7 lines

When I rebooted the machine I got a panic because there was no journal found on /. Rebooting into rescue mode and restoring the journal on slash cures this problem.

How can I change the slash volume from ext3 to ext2? As I mentioned I edited fstab so there must be some other record somewhere telling the kernel that slash is ext3 but what? Do I need to make a new initrd.img?

Check if your lilo/grub entry contains a "rootfstype=" entry and change that if it says ext3.

Quoted 10 lines

Many thanks

Signature · 7 lines
Geoff Dolman <[email protected]>

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
Signature · 15 lines
Regards,
Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
[email protected]                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#2 lore raw
Quoted 20 lines · Heinz J . Mauelshagen
Quoted 19 lines · Geoff Dolman

Hi

I have installed a machine with a /boot in a normal partition and all other partitions including / on ext3 logical volumes.
(Red Hat 9/lvm 1.0.3).

I want to snapshot dump these partitions but I didn't realise at the time of the install that I would have to patch the kernel to be able to do this with ext3 filing systems.
I don't want to have to do this so I migrated the partitions to ext2 using tune2fs and changed fstab.

In the case of / and /var I booted into rescue mode from cd to run tune2fs against those volumes read-only.

When I rebooted the machine I got a panic because there was no journal found on /. Rebooting into rescue mode and restoring the journal on slash cures this problem.

Quoted 7 lines
Quoted 3 lines

How can I change the slash volume from ext3 to ext2? As I mentioned I edited fstab so there must be some other record somewhere telling the kernel that slash is ext3 but what? Do I need to make a new initrd.img?

Check if your lilo/grub entry contains a "rootfstype=" entry and change that if it says ext3.

No - unfortunately not - all I have is

title Red Hat Linux (2.4.20-18.9smp)

        root (hd0,0)
        kernel /vmlinuz-2.4.20-18.9smp ro root=/dev/Volume00/slash
        initrd /initrd-2.4.20-18.9smp.img

and a similar entry for UP.

Quoted 10 lines
Quoted 10 lines

Many thanks

Signature · 7 lines
Geoff Dolman <[email protected]>

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
Signature · 1 line
Geoff Dolman <[email protected]>
#3 lore raw
Quoted 30 lines · Geoff Dolman
Quoted 20 lines · Heinz J . Mauelshagen
Quoted 19 lines · Geoff Dolman

Hi

I have installed a machine with a /boot in a normal partition and all other partitions including / on ext3 logical volumes.
(Red Hat 9/lvm 1.0.3).

I want to snapshot dump these partitions but I didn't realise at the time of the install that I would have to patch the kernel to be able to do this with ext3 filing systems.
I don't want to have to do this so I migrated the partitions to ext2 using tune2fs and changed fstab.

In the case of / and /var I booted into rescue mode from cd to run tune2fs against those volumes read-only.

When I rebooted the machine I got a panic because there was no journal found on /. Rebooting into rescue mode and restoring the journal on slash cures this problem.

Quoted 7 lines
Quoted 3 lines

How can I change the slash volume from ext3 to ext2? As I mentioned I edited fstab so there must be some other record somewhere telling the kernel that slash is ext3 but what? Do I need to make a new initrd.img?

Check if your lilo/grub entry contains a "rootfstype=" entry and change that if it says ext3.

Quoted 8 lines

No - unfortunately not - all I have is

title Red Hat Linux (2.4.20-18.9smp)

        root (hd0,0)
        kernel /vmlinuz-2.4.20-18.9smp ro root=/dev/Volume00/slash
        initrd /initrd-2.4.20-18.9smp.img

and a similar entry for UP.

More Information:

On a test machine I have just booted from cd into rescue mode and tried to use lvmcreate_initrd.img to make a new initrd.img after changing / to ext2.
I got cpio not enough space on device as an error message even though the machine is nowhere near full on any filesystem including /tmp.

I then tried using mkinitrd to do the same thing and edited grub and rebooted. This has worked with the minor inconvenience of having to do an fsck when the machine rebooted.

Signature · 1 line
Geoff Dolman <[email protected]>
#4 lore raw
Quoted 48 lines · Geoff Dolman
Quoted 30 lines · Geoff Dolman
Quoted 20 lines · Heinz J . Mauelshagen
Quoted 19 lines · Geoff Dolman

Hi

I have installed a machine with a /boot in a normal partition and all other partitions including / on ext3 logical volumes.
(Red Hat 9/lvm 1.0.3).

I want to snapshot dump these partitions but I didn't realise at the time of the install that I would have to patch the kernel to be able to do this with ext3 filing systems.
I don't want to have to do this so I migrated the partitions to ext2 using tune2fs and changed fstab.

In the case of / and /var I booted into rescue mode from cd to run tune2fs against those volumes read-only.

When I rebooted the machine I got a panic because there was no journal found on /. Rebooting into rescue mode and restoring the journal on slash cures this problem.

Quoted 7 lines
Quoted 3 lines

How can I change the slash volume from ext3 to ext2? As I mentioned I edited fstab so there must be some other record somewhere telling the kernel that slash is ext3 but what? Do I need to make a new initrd.img?

Check if your lilo/grub entry contains a "rootfstype=" entry and change that if it says ext3.

Quoted 8 lines

No - unfortunately not - all I have is

title Red Hat Linux (2.4.20-18.9smp)

        root (hd0,0)
        kernel /vmlinuz-2.4.20-18.9smp ro root=/dev/Volume00/slash
        initrd /initrd-2.4.20-18.9smp.img

and a similar entry for UP.

More Information:

On a test machine I have just booted from cd into rescue mode and tried to use lvmcreate_initrd.img to make a new initrd.img after changing / to ext2.
I got cpio not enough space on device as an error message even though the machine is nowhere near full on any filesystem including /tmp.

Quoted 3 lines

I then tried using mkinitrd to do the same thing and edited grub and rebooted. This has worked with the minor inconvenience of having to do an fsck when the machine rebooted.

Hmmm, didn't expect an /etc/fstab (which will have an fs type filed entry) in the initrd.

Quoted 9 lines
Signature · 8 lines
-- 
Geoff Dolman <[email protected]>

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
Signature · 15 lines
Regards,
Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
[email protected]                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#5 lore raw
In reply to Geoff Dolman
Quoted 3 lines · Geoff Dolman

How can I change the slash volume from ext3 to ext2? As I mentioned I edited fstab so there must be some other record somewhere telling the kernel that slash is ext3 but what? Do I need to make a new initrd.img?

yes, you have to create a new initrd, after writing ext2 in the /etc/fstab.

mkinitrd -v -f /boot/initrd-k.v.e-r.img k.v.e-r

Signature · 5 lines
Luca Berra -- [email protected]
 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \