如何将本地主目录复制到 iscsi 安装的主目录

如何将本地主目录复制到 iscsi 安装的主目录

我在这台机器上有各种 Ubuntu 映像,每个映像都有自己的主目录。我正尝试将它们整合到冗余 iscsi NAS 上。这似乎应该很简单。它最终会锁定机器。
我将 300GB 安装iscsi lun/newhome。它已格式化,并且复制确实开始成功,然后它降级。cmd
本身就是我当前目录的cp -rp /home/user/* .位置.,即 iscsi 扩展安装到的位置。我看到,在syslog以下序列的多个副本中。

    Jul 14 11:01:23 cor8910 kernel: [ 2925.828199] Fixing recursive fault but reboot is needed!
    Jul 14 11:01:23 cor8910 kernel: [ 2925.828200] BUG: kernel NULL pointer dereference, address: 0000000000000009
    Jul 14 11:01:23 cor8910 kernel: [ 2925.828201] #PF: supervisor write access in kernel mode
    Jul 14 11:01:23 cor8910 kernel: [ 2925.828201] #PF: error_code(0x0002) - not-present page
    Jul 14 11:01:23 cor8910 kernel: [ 2925.828202] PGD 0 P4D 0 
    Jul 14 11:01:23 cor8910 kernel: [ 2925.828203] Oops: 0002 [#5664066] SMP PTI
    Jul 14 11:01:23 cor8910 kernel: [ 2925.828204] CPU: 6 PID: 22429 Comm: MainThread Tainted: P    B D W  O L    5.4.0-122-generic #138-Ubuntu
    Jul 14 11:01:23 cor8910 kernel: [ 2925.828205] Hardware name: Dell Inc. XPS 8910/0WPMFG, BIOS 1.0.4 05/30/2016
    Jul 14 11:01:23 cor8910 kernel: [ 2925.828206] RIP: 0010:blk_flush_plug_list+0x7d/0x110
    Jul 14 11:01:23 cor8910 kernel: [ 2925.828207] Code: 49 bd 22 01 00 00 00 00 ad de 49 8b 44 24 10 48 39 c3 74 27 49 8b 4c 24 10 49 8b 54 24 18 48 8b 45 c0 4c 89 79 08 48 89 4d c0 <48> 89 02 48 89 50 08 49 89 5c 24 10 49 89 5c 24 18 48 8b 45 c0 49
    Jul 14 11:01:23 cor8910 kernel: [ 2925.828207] RSP: 0018:ffff9f0e4e8bfe68 EFLAGS: 00010006
    Jul 14 11:01:23 cor8910 kernel: [ 2925.828208] RAX: ffff9f0e4e8bfe70 RBX: ffff9f0e4e8bfec0 RCX: ffff92d6dde21800
    Jul 14 11:01:23 cor8910 kernel: [ 2925.828209] RDX: 0000000000000009 RSI: 0000000000000001 RDI: ffff9f0e4e8bfeb0
    Jul 14 11:01:23 cor8910 kernel: [ 2925.828210] RBP: ffff9f0e4e8bfeb0 R08: 000000001b02a505 R09: ffffffffb01a7bec
    Jul 14 11:01:23 cor8910 kernel: [ 2925.828210] R10: ffffffffb01a0228 R11: ffff9f0e4e8bfd60 R12: ffff9f0e4e8bfeb0
    Jul 14 11:01:23 cor8910 kernel: [ 2925.828211] R13: dead000000000122 R14: dead000000000100 R15: ffff9f0e4e8bfe70
    Jul 14 11:01:23 cor8910 kernel: [ 2925.828212] FS:  0000000000000000(0000) GS:ffff92d77eb80000(0000) knlGS:0000000000000000
    Jul 14 11:01:23 cor8910 kernel: [ 2925.828213] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
    Jul 14 11:01:23 cor8910 kernel: [ 2925.828214] CR2: 0000000000000009 CR3: 0000000e45d0c004 CR4: 00000000003606e0
    Jul 14 11:01:23 cor8910 kernel: [ 2925.828214] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
    Jul 14 11:01:23 cor8910 kernel: [ 2925.828215] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
    Jul 14 11:01:23 cor8910 kernel: [ 2925.828216] Call Trace:
    Jul 14 11:01:23 cor8910 kernel: [ 2925.828218]  schedule+0x75/0xb0
    Jul 14 11:01:23 cor8910 kernel: [ 2925.828221]  do_exit.cold+0x46/0xa7
    Jul 14 11:01:23 cor8910 kernel: [ 2925.828224]  rewind_stack_do_exit+0x17/0x20
    Jul 14 11:01:23 cor8910 kernel: [ 2925.828228] RIP: 0033:0x7fd8340b7a7b
    Jul 14 11:01:23 cor8910 kernel: [ 2925.828231] systemd-journald[371]: /dev/kmsg buffer overrun, some messages lost.
    Jul 14 11:01:23 cor8910 kernel: [ 2925.828232] Code: c3 48 8b 15 17 34 0d 00 f7 d8 64 89 02 b8 ff ff ff ff eb c2 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa b8 1c 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d e5 33 0d 00 f7 d8 64 89 01 48
    Jul 14 11:01:23 cor8910 kernel: [ 2925.828233] RSP: 002b:00007fffa0e6e7f8 EFLAGS: 00000202 ORIG_RAX: 000000000000001c
    Jul 14 11:01:23 cor8910 kernel: [ 2925.828236] RAX: ffffffffffffffda RBX: 00007fffa0e6e820 RCX: 00007fd8340b7a7b
    Jul 14 11:01:23 cor8910 kernel: [ 2925.828237] RDX: 000000000000000f RSI: 00000000007fd000 RDI: 00007fffa0673000
    Jul 14 11:01:23 cor8910 kernel: [ 2925.828238] RBP: 00007fd833dc2768 R08: 00000000ffffffff R09: 0000000000000000
    Jul 14 11:01:23 cor8910 kernel: [ 2925.828240] R10: 00007fd82884d325 R11: 0000000000000202 R12: 00007fd8315500a0
    Jul 14 11:01:23 cor8910 kernel: [ 2925.828241] R13: 00007fd833dc2718 R14: 00007fd833dd9200 R15: 00007fd833dd92a0
    Jul 14 11:01:23 cor8910 kernel: [ 2925.828242] Modules linked in: rfcomm xt_CHECKSUM xt_MASQUERADE xt_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi veth nf_tables_set nft_masq nft_chain_nat zfs(PO) zunicode(PO) zlua(PO) zavl(PO) icp(PO) zcommon(PO) znvpair(PO) spl(O) ebtable_filter ebtables ip6table_raw ip6table_mangle ip6table_nat ip6table_filter ip6_tables iptable_raw iptable_mangle iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c iptable_filter bpfilter nf_tables nfnetlink vhost_vsock vmw_vsock_virtio_transport_common vhost vsock bridge stp llc cmac algif_hash algif_skcipher af_alg bnep binfmt_misc nls_iso8859_1 nvidia_uvm(O) nvidia_drm(PO) nvidia_modeset(PO) nvidia(PO) intel_rapl_msr intel_rapl_common x86_pkg_temp_thermal intel_powerclamp snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio coretemp kvm_intel kvm i915 crct10dif_pclmul ghash_clmulni_intel aesni_intel crypto_simd cryptd drm_kms_helper i2c_algo_bit glue_helper fb_sys_fops
    Jul 14 11:01:23 cor8910 kernel: [ 2925.828279]  syscopyarea sysfillrect rapl intel_cstate mei_hdcp iwlmvm mac80211 libarc4 snd_hda_codec_hdmi iwlwifi snd_hda_intel snd_intel_dspcfg snd_hda_codec btusb snd_hda_core cfg80211 btrtl btbcm joydev btintel 8250_dw snd_hwdep input_leds bluetooth snd_pcm ecdh_generic ecc snd_seq_midi snd_seq_midi_event snd_rawmidi sysimgblt snd_seq mei_me mei snd_seq_device snd_timer snd dell_wmi soundcore dell_smbios dcdbas dell_wmi_descriptor mac_hid acpi_pad sparse_keymap wmi_bmof mxm_wmi sch_fq_codel ipmi_devintf ipmi_msghandler msr parport_pc ppdev lp parport sunrpc drm ip_tables x_tables autofs4 uas usb_storage hid_generic usbhid hid crc32_pclmul nvme ahci libahci nvme_core intel_lpss_pci alx i2c_i801 intel_lpss mdio idma64 virt_dma video pinctrl_sunrisepoint wmi pinctrl_intel
    Jul 14 11:01:23 cor8910 kernel: [ 2925.828292] CR2: 0000000000000009
    Jul 14 11:01:23 cor8910 kernel: [ 2925.828293] ---[ end trace b0ab88c2c48452e1 ]---

当前启动映像 HDD 20.04.3SDA2 我已经尝试过从 nvme 映像 20.04 当前修复级别 我已经尝试过从 SSD 22.04

有几件事:我猜这是一个错误。当前操作系统Ubuntu 20.04.3当前更新级别

是否有工具可以执行批量复制。我的目标是从最旧的开始,然后逐渐应用较新的主目录内容。

答案1

这实际上是一个硬件问题,在使用 rsync 时偶尔会出现。内存坏了。我最终把设备送回了戴尔,他们更换了内存和磁盘。除了磁盘上没有 Windows 之外,不清楚磁盘还有什么问题。

感谢所有回复的人。我最终将主目录复制到 lun 并每天更新两次。不幸的是,虽然可以安装 ISCSI 驱动器作为 /home,但会明显影响性能。

相关内容