Russ,
On Mon, Oct 08, 2001 at 11:35:37AM +1000, Timothy Shimmin wrote:
>
> Just some comments re dump/restore...
>
> > > #2) Can you elaborate a bit on your method of piping xfsdump to
> > > xfsrestore :)?
> >
> > The most basic form of xfsdump and its corresponding xfsrestore can be run
> > back to back through a pipe to make a copy of a filesystem. Like this:
> >
> > xfsdump / - | xfsrestore - /mnt/
> >
> > The above command says run xfsdump on the root filesystem, send the output
> > to stdout and pipe it to xfsrestore. The dash on the xfsrestore command
> > says to read stdin as the dump input and /mnt/ is where it is to write to.
> >
> > I noticed that when I ran it on my / filesytem it didn't do something right
> > on the /dev/ dir
> If you know what exactly the problem is then we'd be very eager
> to fix it.
>
Was it a problem with restoring of the correct major and minor
device numbers that you had ?
Looking at cmd/xfsdump/doc/CHANGES:
xfsdump-1.0.11 (12 July 2001)
- correctly restore block and character device major numbers
On July 12, Steve Lord added some changes to fix the device numbers
set with mknod.
It appears that the format for dev_t is different on Linux and IRIX.
------------------------------------------------------------------------
12:13 tes@snort 30> p_modinfo -h 2.4.x-xfs:slinx:98712a
mod 2.4.x-xfs:slinx:98712a header
==================================
- SM_Location: bonnie.engr.sgi.com:/isms/slinx/2.4.x-xfs
- Workarea: jen.americas.sgi.com:/src/lord/xfs-linux.2.4
- 2.4.x-xfs:slinx:98712a 07/12/01
- Files affected: linux/fs/xfs/xfs_types.h 1.51,
cmd/xfsdump/common/util.c 1.2,
cmd/xfsdump/restore/content.c 1.8, cmd/xfsdump/VERSION 1.10,
cmd/xfsdump/doc/CHANGES 1.11,
cmd/xfsprogs/include/xfs_types.h 1.3,
cmd/xfsprogs/doc/CHANGES 1.22, cmd/xfsprogs/VERSION 1.20
- Author: lord
- linux/fs/xfs/xfs_types.h:
export dev_t conversion macros to user space, they are needed by
xfsdump and xfsrestore.
- cmd/xfsdump/common/util.c:
convert linux dev_t in stat64 return to irix format used in bulkstat output.
- cmd/xfsdump/restore/content.c:
convert dump tape format dev_t into linux format dev_t before calling
mknod.
- cmd/xfsdump/VERSION:
Bump minor version number
- cmd/xfsdump/doc/CHANGES:
Add new version number comment
- cmd/xfsprogs/include/xfs_types.h:
export dev_t conversion macros to user space, they are needed by
xfsdump and xfsrestore.
- cmd/xfsprogs/doc/CHANGES:
Add new version number comment
- cmd/xfsprogs/VERSION:
Bump minor version - revised xfs_types.h file
12:16 tes@snort 12> p_rdiff -r1.2,1.3 util.c
137c137
< dstp->bs_rdev = srcp->st_rdev;
---
> dstp->bs_rdev = IRIX_MKDEV(major(srcp->st_rdev), minor(srcp->st_rdev));
12:16 tes@snort 14> p_rdiff -r1.8,1.9 content.c
7552c7552
< ( dev_t )bstatp->bs_rdev );
---
> ( dev_t )IRIX_DEV_TO_KDEVT(bstatp->bs_rdev));
------------------------------------------------------------------------
If it is some other problem they we'd like to know...
Cheers,
Tim.
|