Re: All Shares Gone - Lacie 5Big Network 2
Posted: Tue Mar 21, 2017 2:56 pm
Jocko,
I have tried to reboot the drive. Looking in the dashboard, there are still no shares.
I rebooted back in to the console and started again with the swap space as you described.
It confirmed that it had been set up. (But is still not visible in top.)
I then tried xfs_repair, but it killed at the same point again.
I tried to mount md4 again, it succeeded on the second attempt and I could see the files.
I tried to unmount in order to run xfs_repair again, but the unmount command cannot be found.
As I can see the files in the telnet window, can I copy from there? (about 5.5TB)
Many thanks
I have tried to reboot the drive. Looking in the dashboard, there are still no shares.
I rebooted back in to the console and started again with the swap space as you described.
It confirmed that it had been set up. (But is still not visible in top.)
I then tried xfs_repair, but it killed at the same point again.
I tried to mount md4 again, it succeeded on the second attempt and I could see the files.
I tried to unmount in order to run xfs_repair again, but the unmount command cannot be found.
As I can see the files in the telnet window, can I copy from there? (about 5.5TB)
Many thanks
- Code: Select all
root@fvdw-sta-kirkwood:/ # tftp -l /sbin/mdadm -r mdadm -g 10.10.7.148
mdadm 100% |**********************************************************************| 1100k 0:00:00 ETA
root@fvdw-sta-kirkwood:/ # chmod 755 /sbin/mdadm
root@fvdw-sta-kirkwood:/ # mdadm --assemble /dev/md4 /dev/sd[abcde]2
mdadm: /dev/md4 has been started with 5 drives.
root@fvdw-sta-kirkwood:/ # tftp -l mount.tar -r mount.tar -g 10.10.7.148
mount.tar 100% |**********************************************************************| 199k 0:00:00 ETA
root@fvdw-sta-kirkwood:/ # tar -xvf mount.tar
usr/
usr/sbin/
usr/sbin/mount
usr/lib/
usr/lib/libblkid.so.1
usr/lib/libblkid.so.1.1.0
usr/lib/libblkid.so
root@fvdw-sta-kirkwood:/ # mdadm --assemble /dev/md3 /dev/sd[abcde]5
mdadm: /dev/md3 has been started with 5 drives.
root@fvdw-sta-kirkwood:/ # mkswap /dev/md3
Setting up swapspace version 1, size = 262074368 bytes
UUID=0357ce1b-ecdb-4c71-9f12-ec3ad61a7b87
root@fvdw-sta-kirkwood:/ # swapon /dev/md3
root@fvdw-sta-kirkwood:/ # tftp -l /sbin/xfs_repair -r xfs_repair -g 10.10.7.148
xfs_repair 100% |**********************************************************************| 622k 0:00:00 ETA
root@fvdw-sta-kirkwood:/ # chmod 755 /sbin/xfs_repair
root@fvdw-sta-kirkwood:/ # tftp -l glibc-mini-mkfs.xfs-25feb14.tar -r glibc-mini-mkfs.xfs-25feb14.tar -g 10.10.7.148
glibc-mini-mkfs.xfs- 100% |**********************************************************************| 2519k 0:00:00 ETA
root@fvdw-sta-kirkwood:/ # tar -xvf glibc-mini-mkfs.xfs-25feb14.tar -C /
./
./usr/
./usr/lib/
./usr/lib/libuuid.so
./usr/lib/libuuid.so.1.3.0
./usr/lib/libgcc_s.so.1
./usr/lib/libuuid.so.1
./bin/
./sbin/
./sbin/mkfs.xfs
./lib/
./lib/libutil.so.1
./lib/libc-2.17.so
./lib/librt.so.1
./lib/librt-2.17.so
./lib/libc.so.6
./lib/libm-2.17.so
./lib/libpthread.so.0
./lib/ld-linux.so.3
./lib/ld-2.17.so
./lib/libutil-2.17.so
./lib/libpthread-2.17.so
./lib/libm.so.6
root@fvdw-sta-kirkwood:/ # xfs_repair -n /dev/md4
Phase 1 - find and verify superblock...
Phase 2 - using internal log
- scan filesystem freespace and inode maps...
- found root inode chunk
Phase 3 - for each AG...
- scan (but don't clear) agi unlinked lists...
- process known inodes and perform inode discovery...
- agno = 0
Killed
root@fvdw-sta-kirkwood:/ # mkdir /md4
root@fvdw-sta-kirkwood:/ # /usr/sbin/mount /dev/md4 /md4
mount: /dev/md4: can't read superblock
root@fvdw-sta-kirkwood:/ # cd md4/
root@fvdw-sta-kirkwood:/md4 # ls -l
total 0
root@fvdw-sta-kirkwood:/ # /usr/sbin/mount /dev/md4 /md4
mount: /dev/md4 already mounted or /md4 busy
mount: according to mtab, /dev/md4 is already mounted on /md4
root@fvdw-sta-kirkwood:/ # ls -l
total 2732
drwxr-xr-x 2 root root 1820 Feb 25 2014 bin
drwxrwxr-x 6 root root 4680 Mar 21 14:36 dev
drwxrwxrwx 4 root root 200 Feb 3 2016 etc
-rwxr-xr-x 1 root root 672 Feb 2 2016 fvdw-sl-programs
-rw-r--r-- 1 root root 2579456 Mar 21 14:38 glibc-mini-mkfs.xfs-25feb14.tar
-rwxr-xr-x 1 root root 2125 Oct 26 2015 init
-rw-r--r-- 1 root root 12 Mar 21 14:35 ip.txt
drwxr-xr-x 3 root root 300 Mar 21 14:38 lib
lrwxrwxrwx 1 root root 12 Mar 21 14:35 linuxrc -> /bin/busybox
drwxr-xr-x 10 root root 115 Mar 17 10:13 md4
drwxrwxrwx 3 root root 60 Feb 3 2016 mnt
-rw-r--r-- 1 root root 204288 Mar 21 14:36 mount.tar
dr-xr-xr-x 70 root root 0 Jan 1 1970 proc
drwxr-xr-x 2 root root 1660 Mar 21 14:38 sbin
dr-xr-xr-x 12 root root 0 Mar 21 14:35 sys
drwxr-xr-x 6 root root 120 Feb 25 2014 usr
drwxr-xr-x 3 root root 60 Feb 3 2016 var
root@fvdw-sta-kirkwood:/ # cd md4/
root@fvdw-sta-kirkwood:/md4 # ls -l
total 0
drwxr-xr-x 2 root root 6 Mar 17 10:13 afp_db
drwxr-xr-x 3 root root 25 Nov 15 2013 autoupdate
drwxr-xr-x 2 root root 6 Nov 12 2013 images
drwxr-xr-x 2 root root 45 Nov 12 2013 reserved
drwxr-xr-x 6 root root 38 Mar 16 14:05 shares
drwxr-xr-x 2 root root 6 Mar 17 10:13 tmp
drwxr-xr-x 2 root root 6 Nov 12 2013 torrent_dir
drwxr-xr-x 3 root root 18 Nov 12 2013 var
root@fvdw-sta-kirkwood:/md4 # cd shares/
root@fvdw-sta-kirkwood:/md4/shares # ls -l
total 16
drwxrwxrwx 26 root root 4096 Mar 17 10:14 1
drwxrwxrwx 13 root root 4096 Mar 17 11:29 3
drwxrwxrwx 8 root root 4096 Mar 17 10:14 4
drwxrwxrwx 20 root root 4096 Mar 17 10:14 5
root@fvdw-sta-kirkwood:/md4/shares # cd /
root@fvdw-sta-kirkwood:/ # unmount /md4
-sh: unmount: not found
root@fvdw-sta-kirkwood:/ # xfs_repair -n /dev/md4
xfs_repair: /dev/md4 contains a mounted and writable filesystem
fatal error -- couldn't initialize XFS library
root@fvdw-sta-kirkwood:/ #