Re: [ext2resize] Ext2resize for big-endian (Ultrasparc)
Status: Inactive
Brought to you by:
adilger
From: Dave W. <da...@xs...> - 2001-03-22 19:54:44
|
On 21 March, 2001 at 14:14:58 -0700, Andreas Dilger <ad...@tu...> wrote: > > Dave Wapstra writes: > > After messing up the filesystem a couple of times, I finally noticed > > the little TODO list for ext2resize: > > I'm surprised you were even able to mess up the filesystem!!! It should > have failed when checking the EXT2_MAGIC in the superblock, because of > endian issues (at least that's what I assumed). I will have to ensure > that we refuse to do anything on big-endian machines until this works > properly. Well, maybe I should say Volume Group instead of filesystem. Here's what I did: Created logical volume, made ext2 filesytem, extended logical volume) [/root]# pvscan pvscan -- reading all physical volumes (this may take a while...) pvscan -- ACTIVE PV "/dev/sdb" of VG "ftp" [8.43 GB / 0 free] pvscan -- ACTIVE PV "/dev/sdc" of VG "ftp" [8.43 GB / 0 free] pvscan -- ACTIVE PV "/dev/sdd" of VG "ftp" [8.43 GB / 0 free] pvscan -- ACTIVE PV "/dev/sde" of VG "ftp" [8.43 GB / 72 MB free] pvscan -- total: 4 [33.74 GB] / in use: 4 [33.74 GB] / in no VG: 0 [0] [/root]# ext2resize /dev/ftp/lvol1 33g ext2resize v1.1.15 - 2000/08/08 for EXT2FS 0.5b ext2resize: ext2_open: invalid superblock ext2resize: can't open /dev/ftp/lvol1 [/root]# pvscan pvscan -- reading all physical volumes (this may take a while...) pvscan -- ACTIVE PV "/dev/sdb" is associated to an unknown VG (run vgscan) pvscan -- ACTIVE PV "/dev/sdc" is associated to an unknown VG (run vgscan) pvscan -- ACTIVE PV "/dev/sdd" is associated to an unknown VG (run vgscan) pvscan -- ACTIVE PV "/dev/sde" is associated to an unknown VG (run vgscan) pvscan -- total: 4 [33.74 GB] / in use: 4 [33.74 GB] / in no VG: 0 [0] Note: this output is edited, but does show the problem. After this, I get vgcreate -- ERROR: VGDA in kernel and lvmtab are NOT consistent; please run vgscan and have to do dd if=/dev/zero of=/dev/sd<x> to clear all the tables and do a reboot to clean up the VGDA in the kernel I'll give GNU parted a try. -Dave -- Dave Wapstra da...@xs... |