Announcement

Collapse
No announcement yet.

More new zfs zpool problems

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [DESKTOP] More new zfs zpool problems

    As a history I started this is another forum, but no replies
    https://forums.whirlpool.net.au/thread/35pnyz61
    Basically I had an external Raidz2 zpool array. I checked it earlier this year, by switching it on, and looking a some of the files make sue they still open, then exported it, and powered it off as it is 99% full.
    Since then my Motherboard crapped out, and I was forced to replace. I've reinstalled zfs, and readded my other internal pools and they work great. I even managed to finish off another RAIDz 4disk external pool to move some older data to
    My intentions was to move the 7disk Raidz2 pool
    I switched it on, imported it, and realised I didn't like the mount point, so I thought I ran the correct -D or -M command to relocate the mount point. it didn't really work. The original mount point disappeared, but the new one didn't create
    I've tried everything.
    NOW If I know linuix, hidden somewhere is a file explaining how this pool is setup and works.
    ATM I've removed all drives (except boot) from the PC, and moved the external 7 drives to the PC so I can better manage them like mount using uuid comands.
    I realise that this pool will "AUTO MOUNT" as soon as the disks are powered up. Weird considering it was and external device and needs to be imported
    I've also realised that maybe there are two 2 copies of this pool.
    so.
    How do I findout out the pool's dataset?
    Can I remove each drive, then re addthem
    can I destroy the recreated the enitre poll?
    -SOME of these wont work if the OS, thinks there are 2 pools of the same name.

    Any suggestions?

    #2
    Originally posted by CharlieDaves View Post

    NOW If I know linux, hidden somewhere is a file explaining how this pool is setup and works.
    I did accidentally came across a file that had stuff in it, but as I didn't understand any of the contents, or why I was looking at this file, I closed it. I don't know where this file was as I used 'Kate' to open it about 50 files ago.

    I also forgot to mention, I did a new install of 20.04 and then had to import all the zpool's and set up access.
    It even SURPRISES me now, how the External Rho-Epsilon was auto mounted.

    I think I mentioned, I plugged it in, as I was also coping some files to the new External Raidz, and switched it on. I then ran "zpool status -v" and there it was "online"
    I went to /media/mm3 and It wasn't listed, but I saw it listed a folder up as "/media/Rho-Epsilon"
    This is when I ran the command to remount.
    Code:
    sudo zpool eport /meRho-Epsilon
    sudo zpool eport /media/Rho-Epsilon
    sudo zpool export /media/Rho-Epsilon
    sudo zpool export Rho-Epsilon
    sudo zfs set mountpoint=/med/mm3 Rho-Epsilon
    sudo zpool import Rho-Epsilon
    sudo zfs set mountpoint=/media/mm3 Rho-Epsilon
    sudo zfs set mountpoint=/media/mm3/ Rho-Epsilon​
    After this Rho-Epsilon wouldn't mount, unmount, was always online, could be scrubed, unable to locate it's mount point.
    If I can't figure something soon, I'll wipe and reinstall, but if the "mount data dataset whatever" is on the drive, I am back at square one

    Please help community
    Last edited by CharlieDaves; Sep 29, 2022, 06:37 PM.

    Comment


      #3
      Something else I have noticed. The /media folder is not root:root any more. Neither is the /etc/samba/samba.conf file. It's set to me:me
      Stuffed if I know how this happened, but Something bad has happened with moments from a new install

      Comment


        #4
        I've fixed it my way.
        I moved all the external drives and connected them directly to the motherboard (via a hardware port controller)
        I've wiped the boot OS, and installed 22.04 then attempted to import. it failed as it was imported on another system. I "forced" import per the instructions
        all the folders & files were put in /media folder. no sub folder
        I attempted to export and import -m /media/subfolder but kept getting error "folder or data is in use"
        So screw-it I am moving folder by folder to another (at least it works) external Raidz pool. It was where I wanted the data to go.
        After this I am destroying this 'Rho-Epsilon' pool, and re-create it by uuid and moving the HDD's back into their external HDD dock.
        Unless someone has a better idea than UUID method

        Comment


          #5
          Looks like you solved your problem.
          I use BTRFS so I know little to nothing about ZFS.
          BTW, you can install locatedb and then use the locate command to locate file titles. For example:

          $ locate zfs
          /boot/grub/x86_64-efi/zfs.mod
          /boot/grub/x86_64-efi/zfscrypt.mod
          /boot/grub/x86_64-efi/zfsinfo.mod
          /etc/grub.d/10_linux_zfs
          /etc/grub.d/backup/boot_grub/x86_64-efi/zfs.mod
          /etc/grub.d/backup/boot_grub/x86_64-efi/zfscrypt.mod
          /etc/grub.d/backup/boot_grub/x86_64-efi/zfsinfo.mod
          /etc/grub.d/backup/etc_grub_d/10_linux_zfs
          /home/jerry/.config/BraveSoftware/Brave-Browser-Beta/BraveWallet/1.0.19/images/Rs4LHZ4WogZCAkCzfsKJib5LLnYL6xcVAfTcLQiSjg2.png
          /usr/lib/grub/i386-pc/zfs.mod
          /usr/lib/grub/i386-pc/zfscrypt.mod
          /usr/lib/grub/i386-pc/zfsinfo.mod
          /usr/lib/modules/5.15.0-46-generic/kernel/zfs
          /usr/lib/modules/5.15.0-48-generic/kernel/zfs
          /usr/lib/modules/5.15.0-48-generic/kernel/zfs/icp.ko
          /usr/lib/modules/5.15.0-48-generic/kernel/zfs/spl.ko
          /usr/lib/modules/5.15.0-48-generic/kernel/zfs/zavl.ko
          /usr/lib/modules/5.15.0-48-generic/kernel/zfs/zcommon.ko
          /usr/lib/modules/5.15.0-48-generic/kernel/zfs/zfs.ko
          /usr/lib/modules/5.15.0-48-generic/kernel/zfs/zlua.ko
          /usr/lib/modules/5.15.0-48-generic/kernel/zfs/znvpair.ko
          /usr/lib/modules/5.15.0-48-generic/kernel/zfs/zunicode.ko
          /usr/lib/modules/5.15.0-48-generic/kernel/zfs/zzstd.ko
          /usr/lib/modules/5.15.0-50-generic/kernel/zfs
          /usr/lib/modules/5.15.0-50-generic/kernel/zfs/icp.ko
          /usr/lib/modules/5.15.0-50-generic/kernel/zfs/spl.ko
          /usr/lib/modules/5.15.0-50-generic/kernel/zfs/zavl.ko
          /usr/lib/modules/5.15.0-50-generic/kernel/zfs/zcommon.ko
          /usr/lib/modules/5.15.0-50-generic/kernel/zfs/zfs.ko
          /usr/lib/modules/5.15.0-50-generic/kernel/zfs/zlua.ko
          /usr/lib/modules/5.15.0-50-generic/kernel/zfs/znvpair.ko
          /usr/lib/modules/5.15.0-50-generic/kernel/zfs/zunicode.ko
          /usr/lib/modules/5.15.0-50-generic/kernel/zfs/zzstd.ko
          jerry@jerry-hp17cn1xxx:~$
          Grep is your friend, of course.
          $ locate zfs | grep '/etc/'
          /etc/grub.d/10_linux_zfs
          /etc/grub.d/backup/boot_grub/x86_64-efi/zfs.mod
          /etc/grub.d/backup/boot_grub/x86_64-efi/zfscrypt.mod
          /etc/grub.d/backup/boot_grub/x86_64-efi/zfsinfo.mod
          /etc/grub.d/backup/etc_grub_d/10_linux_zfs
          jerry@jerry-hp17cn1xxx:~$

          Last edited by GreyGeek; Sep 30, 2022, 01:04 PM.
          "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
          – John F. Kennedy, February 26, 1962.

          Comment


            #6
            Originally posted by GreyGeek View Post
            Looks like you solved your problem.
            I use BTRFS so I know little to nothing about ZFS.
            BTW, you can install locatedb and then use the locate command to locate file titles. For example:
            Grep is your friend, of course.
            $ locate zfs | grep '/etc/'
            ​​
            One thing I have found is how ZFS and ZPOOL commands appear almost interchangeable.. Like zpool create radidz2 /m /dev/media/pools/ /dev/disk/by-uuid/uuidnumer /dev/disk/by-uuid/anothernumer ETC

            Then ZFS commands that do similar. It's sort of confusing unless you do a training course, of course

            Comment

            Working...
            X