1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

gmirror mount operation not supported by device

Discussion in 'General' started by lifanov, Feb 4, 2010.

  1. lifanov

    lifanov New Member

    Messages:
    33
    Likes Received:
    0
    I have a not-so-sophisticated install of FreeBSD on a gmirror of two hard drives. The underlying fs is UFS2 with soft updates.
    But I can't mount anything useful (specifically: unionfs, nullfs, linproc) on it. I can mount msdosfs.
    I run many FreeBSD systems, but this is the only one with gmirror, so I ask: is it a gmirror deficiency or did I break something?
     
  2. OH

    OH New Member

    Messages:
    209
    Likes Received:
    0
    You should really give some more info here. Like df's output, the command that fails and the error message that goes with the failure.
     
  3. lifanov

    lifanov New Member

    Messages:
    33
    Likes Received:
    0
    Alright, # df -h before # rm -r /boot/kernel && mv /boot/kernel{.old,}
    Code:
    lifanovbsd0# df -h
    Filesystem            Size    Used   Avail Capacity  Mounted on
    /dev/mirror/gm0s1a    496M    491M    -34M   108%    /
    devfs                 1.0K    1.0K      0B   100%    /dev
    /dev/mirror/gm0s1e    496M     46K    456M     0%    /tmp
    /dev/mirror/gm0s1f    667G     20G    593G     3%    /usr
    /dev/mirror/gm0s1d    4.8G    184M    4.3G     4%    /var
    /dev/da0p2            931G    265G    666G    28%    /mnt
    /dev/da0p2            931G    265G    666G    28%    /mnt
    lifanovbsd0#
    
    after
    Code:
    lifanovbsd0# df -h
    Filesystem            Size    Used   Avail Capacity  Mounted on
    /dev/mirror/gm0s1a    496M    251M    205M    55%    /
    devfs                 1.0K    1.0K      0B   100%    /dev
    /dev/mirror/gm0s1e    496M    122K    456M     0%    /tmp
    /dev/mirror/gm0s1f    667G     19G    595G     3%    /usr
    /dev/mirror/gm0s1d    4.8G    184M    4.3G     4%    /var
    /dev/da0p2            931G    265G    666G    28%    /mnt
    lifanovbsd0# 
    
    Command that fails:
    Code:
    lifanovbsd0# mkdir one two
    lifanovbsd0# mount_unionfs one two
    mount_unionfs: /root/two: : Operation not supported by device
    lifanovbsd0# 
    
    Same deal is with nullfs and linprocfs.

    Side question: moving kernel directory to free up space was the last thing I did. Is that safe?
     
  4. lifanov

    lifanov New Member

    Messages:
    33
    Likes Received:
    0
    Wow, this was my stupid.
    The kernel modules had version mismatches and rebooting with the old kernel fixed everything.