sparc64 newfs vs. i386 newfs

From: matt <matt_at_grogged.dyndns.org>
Date: Sat, 17 May 2003 09:24:42 -0500 (CDT)
This is probably a dumb question - I'l imagine I'm just missing something
obvious, but here goes...  Is there any way to newfs a vnode backed md()
filesystem on a sparc64 system, transfer the relevant file that served as
the md() vnode backed filesystem to an i386 system, and mount the
filesystem?  I've tried all sorts of various flags to newfs and mount
without any luck.  What am I missing?

An example below:

sparc64# uname -a
FreeBSD sparc64 5.1-BETA FreeBSD 5.1-BETA #0: Thu May 15 01:25:00 GMT
2003     matt_at_:/usr/src/sys/sparc64/compile/SPARKY  sparc64
sparc64# dd if=/dev/zero of=myfiles bs=1024k count=5
sparc64# mdconfig -a -t vnode -f myfiles -u 1
sparc64# newfs /dev/md1
/dev/md1: 5.0MB (10240 sectors) block size 16384, fragment size 2048
        using 4 cylinder groups of 1.27MB, 81 blks, 192 inodes.
super-block backups (for fsck -b #) at:
 160, 2752, 5344, 7936
sparc64# mount /dev/md1 /mnt
sparc64# df /mnt
Filesystem 1K-blocks Used Avail Capacity  Mounted on
/dev/md1        4718    2  4340     0%    /mnt
sparc64# umount /mnt
sparc64# mdconfig -d -u 1
sparc64# # scp myfiles matt_at_192.168.0.149:/home/matt
Password:
myfiles                                           100% 5120KB   1.3MB/s   00:03
sparc64#


i386# uname -a
FreeBSD i386 5.1-BETA FreeBSD 5.1-BETA #2: Wed May 14 22:15:33 GMT
2003     matt_at_hopelessposh.dyndns.org:/usr/src/sys/i386/compile/POSH  i386
i386# ls -la myfiles
-rw-r--r--  1 matt  matt  5242880 May 17 10:57 myfiles
i386# mdconfig -a -t vnode -f myfiles -u 1
i386#  ls -la /dev/md1
crw-r-----  1 root  operator    4,  38 May 17 08:40 /dev/md1
i386# mount /dev/md1 /mnt
mount: /dev/md1 on /mnt: incorrect super block
i386#
Received on Sat May 17 2003 - 05:34:34 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:08 UTC