fatal error #3

Open
opened 2022-10-04 17:11:01 +02:00 by gcolpart · 2 comments
Owner

TASK [upgrade-stretch-to-buster : execute dump-server-state] ****************************************************************************************************************************************************
fatal: [foo]: FAILED! => {"changed": true, "cmd": ["/usr/local/sbin/dump-server-state", "--verbose", "--force", "--dump-dir", "/home/backup/stretch-1664896207", "--all"], "delta": "0:00:04.755699", "end": "2022-10-04 17:10:20.362293", "msg": "non-zero return code", "rc": 10, "start": "2022-10-04 17:10:15.606594", "stderr": "", "stderr_lines": [], "stdout": "Task: Create /home/backup/stretch-1664896207\n* mkdir/chmod OK\nTask: /etc\n* rsync OK\nTask: DPkg full state\n* mkdir/chmod OK\n* rsync OK\nTask: DPkg status\n* cp OK\nTask: APT states\n* cp OK\nTask: APT config\n* apt-config OK\nTask: List of installed package\n* dpkg OK\nTask: Process list\n* ps OK\n* pstree OK\nTask: uptime\n* uptime OK\nTask: uname\n* uname OK\nTask: Network status\n* ss OK\n* netstat OK\nTask: Network configuration\n* ip address OK\n* ip route OK\nTask: iptables\n* iptables -v OK\n* iptables OK\n* iptables-save OK\nTask: sysctl values\n* sysctl OK\nTask: virsh list\n* virsh not found\nTask: lxc list\n* lxc-ls not found\nTask: Disks\n* dd vda OK\n* fdisk vda OK\n* dd vdb OK\n* fdisk vdb OK\n* dd vdc ERROR\n/bin/dd: error reading '/dev/vdc': Input/output error\n0+0 records in\n0+0 records out\n0 bytes copied, 0.0114299 s, 0.0 kB/s\n* fdisk vdc ERROR\n\n* dd vdd OK\n* fdisk vdd OK\nTask: Mount points\n* mount points OK\nTask: df\n* df OK\nTask: dmesg\n* dmesg OK\nTask: MySQL processes\n* no mysqld or mariadbd process is running\nTask: Systemd services\n* failed services OK\n=> Your dump is available at /home/backup/stretch-1664896207", "stdout_lines": ["Task: Create /home/backup/stretch-1664896207", "* mkdir/chmod OK", "Task: /etc", "* rsync OK", "Task: DPkg full state", "* mkdir/chmod OK", "* rsync OK", "Task: DPkg status", "* cp OK", "Task: APT states", "* cp OK", "Task: APT config", "* apt-config OK", "Task: List of installed package", "* dpkg OK", "Task: Process list", "* ps OK", "* pstree OK", "Task: uptime", "* uptime OK", "Task: uname", "* uname OK", "Task: Network status", "* ss OK", "* netstat OK", "Task: Network configuration", "* ip address OK", "* ip route OK", "Task: iptables", "* iptables -v OK", "* iptables OK", "* iptables-save OK", "Task: sysctl values", "* sysctl OK", "Task: virsh list", "* virsh not found", "Task: lxc list", "* lxc-ls not found", "Task: Disks", "* dd vda OK", "* fdisk vda OK", "* dd vdb OK", "* fdisk vdb OK", "* dd vdc ERROR", "/bin/dd: error reading '/dev/vdc': Input/output error", "0+0 records in", "0+0 records out", "0 bytes copied, 0.0114299 s, 0.0 kB/s", "* fdisk vdc ERROR", "", "* dd vdd OK", "* fdisk vdd OK", "Task: Mount points", "* mount points OK", "Task: df", "* df OK", "Task: dmesg", "* dmesg OK", "Task: MySQL processes", "* no mysqld or mariadbd process is running", "Task: Systemd services", "* failed services OK", "=> Your dump is available at /home/backup/stretch-1664896207"]}

TASK [upgrade-stretch-to-buster : execute dump-server-state] **************************************************************************************************************************************************** fatal: [foo]: FAILED! => {"changed": true, "cmd": ["/usr/local/sbin/dump-server-state", "--verbose", "--force", "--dump-dir", "/home/backup/stretch-1664896207", "--all"], "delta": "0:00:04.755699", "end": "2022-10-04 17:10:20.362293", "msg": "non-zero return code", "rc": 10, "start": "2022-10-04 17:10:15.606594", "stderr": "", "stderr_lines": [], "stdout": "Task: Create /home/backup/stretch-1664896207\n* mkdir/chmod OK\nTask: /etc\n* rsync OK\nTask: DPkg full state\n* mkdir/chmod OK\n* rsync OK\nTask: DPkg status\n* cp OK\nTask: APT states\n* cp OK\nTask: APT config\n* apt-config OK\nTask: List of installed package\n* dpkg OK\nTask: Process list\n* ps OK\n* pstree OK\nTask: uptime\n* uptime OK\nTask: uname\n* uname OK\nTask: Network status\n* ss OK\n* netstat OK\nTask: Network configuration\n* ip address OK\n* ip route OK\nTask: iptables\n* iptables -v OK\n* iptables OK\n* iptables-save OK\nTask: sysctl values\n* sysctl OK\nTask: virsh list\n* virsh not found\nTask: lxc list\n* lxc-ls not found\nTask: Disks\n* dd vda OK\n* fdisk vda OK\n* dd vdb OK\n* fdisk vdb OK\n* dd vdc ERROR\n/bin/dd: error reading '/dev/vdc': Input/output error\n0+0 records in\n0+0 records out\n0 bytes copied, 0.0114299 s, 0.0 kB/s\n* fdisk vdc ERROR\n\n* dd vdd OK\n* fdisk vdd OK\nTask: Mount points\n* mount points OK\nTask: df\n* df OK\nTask: dmesg\n* dmesg OK\nTask: MySQL processes\n* no mysqld or mariadbd process is running\nTask: Systemd services\n* failed services OK\n=> Your dump is available at /home/backup/stretch-1664896207", "stdout_lines": ["Task: Create /home/backup/stretch-1664896207", "* mkdir/chmod OK", "Task: /etc", "* rsync OK", "Task: DPkg full state", "* mkdir/chmod OK", "* rsync OK", "Task: DPkg status", "* cp OK", "Task: APT states", "* cp OK", "Task: APT config", "* apt-config OK", "Task: List of installed package", "* dpkg OK", "Task: Process list", "* ps OK", "* pstree OK", "Task: uptime", "* uptime OK", "Task: uname", "* uname OK", "Task: Network status", "* ss OK", "* netstat OK", "Task: Network configuration", "* ip address OK", "* ip route OK", "Task: iptables", "* iptables -v OK", "* iptables OK", "* iptables-save OK", "Task: sysctl values", "* sysctl OK", "Task: virsh list", "* virsh not found", "Task: lxc list", "* lxc-ls not found", "Task: Disks", "* dd vda OK", "* fdisk vda OK", "* dd vdb OK", "* fdisk vdb OK", "* dd vdc ERROR", "/bin/dd: error reading '/dev/vdc': Input/output error", "0+0 records in", "0+0 records out", "0 bytes copied, 0.0114299 s, 0.0 kB/s", "* fdisk vdc ERROR", "", "* dd vdd OK", "* fdisk vdd OK", "Task: Mount points", "* mount points OK", "Task: df", "* df OK", "Task: dmesg", "* dmesg OK", "Task: MySQL processes", "* no mysqld or mariadbd process is running", "Task: Systemd services", "* failed services OK", "=> Your dump is available at /home/backup/stretch-1664896207"]}
Owner

It seems that fdisk tried to copy the partition table for a device that doesn't have one :/

It seems that `fdisk` tried to copy the partition table for a device that doesn't have one :/
Owner

I can't reproduce on the same server.

# lsblk
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sr0     11:0    1 1024M  0 rom  
vda    254:0    0   20G  0 disk 
├─vda1 254:1    0  953M  0 part /boot
├─vda2 254:2    0  954M  0 part /
├─vda3 254:3    0  9.3G  0 part /var
├─vda4 254:4    0    1K  0 part 
├─vda5 254:5    0  4.7G  0 part /usr
├─vda6 254:6    0  953M  0 part /tmp
├─vda7 254:7    0  953M  0 part [SWAP]
├─vda8 254:8    0  953M  0 part [SWAP]
└─vda9 254:9    0  1.4G  0 part 
vdb    254:16   0  2.6T  0 disk /home
vdc    254:32   0  3.8T  0 disk /home-backup

/dev/vda has partitions, it's OK :

# fdisk -l "/dev/vda"
Disk /dev/vda: 20 GiB, 21474144256 bytes, 41941688 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xa6881348

Device     Boot    Start      End  Sectors  Size Id Type
/dev/vda1  *        2048  1953791  1951744  953M 83 Linux
/dev/vda2        1953792  3907583  1953792  954M 83 Linux
/dev/vda3        3907584 23439359 19531776  9.3G 83 Linux
/dev/vda4       23441406 41940991 18499586  8.8G  5 Extended
/dev/vda5       23441408 33204223  9762816  4.7G 83 Linux
/dev/vda6       33206272 35158015  1951744  953M 83 Linux
/dev/vda7       35160064 37111807  1951744  953M 82 Linux swap / Solari
/dev/vda8       37113856 39065599  1951744  953M 82 Linux swap / Solari
/dev/vda9       39067648 41940991  2873344  1.4G 83 Linux

/dev/vdc doesn't have partition, it's OK too :

Disk /dev/vdc: 3.8 TiB, 4171486986240 bytes, 8147435520 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Maybe, it was a problem specific to /dev/vdd which is not on the server anymore.

I can't reproduce on the same server. ``` # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sr0 11:0 1 1024M 0 rom vda 254:0 0 20G 0 disk ├─vda1 254:1 0 953M 0 part /boot ├─vda2 254:2 0 954M 0 part / ├─vda3 254:3 0 9.3G 0 part /var ├─vda4 254:4 0 1K 0 part ├─vda5 254:5 0 4.7G 0 part /usr ├─vda6 254:6 0 953M 0 part /tmp ├─vda7 254:7 0 953M 0 part [SWAP] ├─vda8 254:8 0 953M 0 part [SWAP] └─vda9 254:9 0 1.4G 0 part vdb 254:16 0 2.6T 0 disk /home vdc 254:32 0 3.8T 0 disk /home-backup ``` `/dev/vda` has partitions, it's OK : ``` # fdisk -l "/dev/vda" Disk /dev/vda: 20 GiB, 21474144256 bytes, 41941688 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xa6881348 Device Boot Start End Sectors Size Id Type /dev/vda1 * 2048 1953791 1951744 953M 83 Linux /dev/vda2 1953792 3907583 1953792 954M 83 Linux /dev/vda3 3907584 23439359 19531776 9.3G 83 Linux /dev/vda4 23441406 41940991 18499586 8.8G 5 Extended /dev/vda5 23441408 33204223 9762816 4.7G 83 Linux /dev/vda6 33206272 35158015 1951744 953M 83 Linux /dev/vda7 35160064 37111807 1951744 953M 82 Linux swap / Solari /dev/vda8 37113856 39065599 1951744 953M 82 Linux swap / Solari /dev/vda9 39067648 41940991 2873344 1.4G 83 Linux ``` `/dev/vdc` doesn't have partition, it's OK too : ```# fdisk -l /dev/vdc" Disk /dev/vdc: 3.8 TiB, 4171486986240 bytes, 8147435520 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes ``` Maybe, it was a problem specific to `/dev/vdd` which is not on the server anymore.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: evolix/dump-server-state#3
No description provided.