/sbin/dump:“打开文件系统时超级块中的魔法数字错误”

/sbin/dump:“打开文件系统时超级块中的魔法数字错误”

我正在尝试备份我们的其中一台服务器:

[root@butler /]# /sbin/dump -0uan -f - / | gzip -2 | ssh -c blowfish [email protected] dd of=/RAIDPOOL01/sysbackup/full-backup-`date '+%d-%B-%Y'`.dump.gz

这给了我一个奇怪的错误:

DUMP: No group entry for operator.
DUMP: Date of this level 0 dump: Mon Feb 15 10:34:30 2016
DUMP: Dumping /dev/mapper/centos_butler-root (/) to standard output
/dev/mapper/centos_butler-root: Bad magic number in super-block while opening filesystem
DUMP: The ENTIRE dump is aborted.

这是什么?如何修复它以创建备份?

输出mount

proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
devtmpfs on /dev type devtmpfs (rw,nosuid,size=3894872k,nr_inodes=973718,mode=755)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
configfs on /sys/kernel/config type configfs (rw,relatime)
/dev/mapper/centos_butler-root on / type xfs (rw,relatime,attr2,inode64,noquota)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=34,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
mqueue on /dev/mqueue type mqueue (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime)
sunrpc on /proc/fs/nfsd type nfsd (rw,relatime)
/dev/sda1 on /boot type xfs (rw,relatime,attr2,inode64,noquota)
gvfsd-fuse on /run/user/500/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=500,group_id=500)
/etc/auto.misc on /misc type autofs (rw,relatime,fd=6,pgrp=4069,timeout=300,minproto=5,maxproto=5,indirect)
-hosts on /net type autofs (rw,relatime,fd=12,pgrp=4069,timeout=300,minproto=5,maxproto=5,indirect)
/etc/jabba.nfs on /192.168.0.225 type autofs (rw,relatime,fd=18,pgrp=4069,timeout=120,minproto=5,maxproto=5,indirect)
/etc/mothership.nfs on /192.168.0.226 type autofs (rw,relatime,fd=24,pgrp=4069,timeout=120,minproto=5,maxproto=5,indirect)

输出file -L -s /dev/mapper/centos_butler-root

/dev/mapper/centos_butler-root: SGI XFS filesystem data (blksz 4096, inosz 256, v2 dirs)

答案1

dump无法转储 XFS,使用xfsdump

答案2

要转储 XFS 文件系统,您应该使用该xfsdump实用程序。例如:

xfsdump -l 0 - /

将转储/文件系统到stdout

要使用另一个设备/文件作为目的地进行转储:

xfsdump -l 0 -f /dev/otherdev /

欲了解更多信息,您可以查看这里

相关内容