Nees some help with hdds - Page 2
FedoraForum.org - Fedora Support Forums and Community
Page 2 of 2 FirstFirst 1 2
Results 16 to 28 of 28
  1. #16
    Join Date
    Jan 2017
    Location
    United Kingdom
    Age
    30
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Nees some help with hdds

    i just checked something using webmin.

    the system reports the bind of /mnt/hshdd as having filled all its space same as the main storage drive but the actual drive /mnt/hshdd reports its almost empty, see the screenshot below ive tried to point out the two entrys.

    Click image for larger version. 

Name:	webmin-screenshot.png 
Views:	7 
Size:	114.7 KB 
ID:	30250

    what does this mean? has it gotten a bit mixed up like

  2. #17
    Join Date
    Jun 2005
    Location
    Montreal, Que, Canada
    Posts
    5,868
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Nees some help with hdds

    If you are interested, I wrote a program and will share it for all. The program cleans up the /etc/fstab, will tell you if the UUID, LABELS, etc are incorrect due to typing error or if the mount points are missing or incorrect.
    it also cross-references the fstab. A few sample lines follow:

    Code:
    #<file system>                            <mount>   <type>   <options>                  <dmp pass> <xref>      <label/uuid>
    UUID=c3c66048-2d2a-411b-a8dd-59093140ca66 /var      xfs      defaults,noatime             0  0     #/dev/sda6  sda6var
    UUID=5074f692-f6f2-4acc-a10b-bd8f86fce578 swap      swap     defaults,noatime             0  0     #/dev/sda7  sda7swap
    UUID=b732b4e3-e6e4-4b6d-b85a-e4bf2f6435b2 /backup   ext4     defaults,noatime,noauto,user 1  2     #/dev/sdb8  sdb8backup1
    Everytime I make manual changes to the /etc/fstab, I run my formatter/vetter Ask and you shall receive.
    Leslie in Montreal

    Interesting web sites list
    http://forums.fedoraforum.org/showth...40#post1697840

  3. #18
    Join Date
    Jan 2017
    Location
    United Kingdom
    Age
    30
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Nees some help with hdds

    Quote Originally Posted by lsatenstein
    If you are interested, I wrote a program and will share it for all. The program cleans up the /etc/fstab, will tell you if the UUID, LABELS, etc are incorrect due to typing error or if the mount points are missing or incorrect.
    it also cross-references the fstab. A few sample lines follow:

    Code:
    #<file system>                            <mount>   <type>   <options>                  <dmp pass> <xref>      <label/uuid>
    UUID=c3c66048-2d2a-411b-a8dd-59093140ca66 /var      xfs      defaults,noatime             0  0     #/dev/sda6  sda6var
    UUID=5074f692-f6f2-4acc-a10b-bd8f86fce578 swap      swap     defaults,noatime             0  0     #/dev/sda7  sda7swap
    UUID=b732b4e3-e6e4-4b6d-b85a-e4bf2f6435b2 /backup   ext4     defaults,noatime,noauto,user 1  2     #/dev/sdb8  sdb8backup1
    Everytime I make manual changes to the /etc/fstab, I run my formatter/vetter Ask and you shall receive.
    thanks bro ive been wondering if something is a miss in fstab i think it could be the filesystem of the second hdd needs to be checked as i dont think it knows what fs it is

  4. #19
    Join Date
    Jan 2017
    Location
    United Kingdom
    Age
    30
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Nees some help with hdds

    im testing out a modified fstab file

    Code:
    
    #
    # /etc/fstab
    # Created by anaconda on Mon Mar 11 17:19:07 2019
    #
    # Accessible filesystems, by reference, are maintained under '/dev/disk'
    # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
    #
    ## Below are the System generated mount points for the OS hard disk and storage drives ########
    #
    #
    /dev/mapper/fedora_localhost--live-root /                       ext4    defaults        1 1
    UUID=a8703b97-8dcf-40b2-9e4d-b00d90aed7c9 /boot                 ext4    defaults        1 2
    /dev/mapper/fedora_localhost--live-home /home                   ext4    defaults        1 2
    /dev/mapper/fedora_localhost--live-swap swap                    swap    defaults        0 0
    /dev/sdc1 /mnt/storage                                          ext4    defaults        0 0
    /dev/sdb1 /mnt/hshdd                                            ext4    defaults        0 0
    
    
    
    
    ### Mount-point for Media for CHROOT JAILED SFTP USERS Note: The chroot Jail is READ-ONLY Please use /mnt/storage & /mnt/hshdd to Add  content ###
    
    
    /mnt/storage/TV /yhn/home/media/TV                              none    bind            0 0
    /mnt/storage/Films /yhn/home/media/Films                        none    bind            0 0
    /mnt/hshdd/TV /yhn/home/media/TV                                none    bind            0 0
    /mnt/hshdd /yhn/home/media/Films                                none    bind            0 0
    i hope the order the hard drives are plugged into the motherboard does not make a difference, as it appears my drives are connected in this order 1 os drive 2 second storage drive 3 primary storage drive

  5. #20
    Join Date
    Jan 2017
    Location
    United Kingdom
    Age
    30
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Nees some help with hdds

    Well my fstab file clean up helped a little.

    webmin confirms the system can now see the hshdd mount has a ext4 filesystem.

    Click image for larger version. 

Name:	webmin-screenshot-2.png 
Views:	3 
Size:	114.4 KB 
ID:	30251

    however the webmin still shows that its still 99% full when there is less than 6gb worth of content on the drive.

    any ideas on this?

  6. #21
    Join Date
    Jan 2017
    Location
    United Kingdom
    Age
    30
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Nees some help with hdds

    i heard somewhere that btrfs can do this job better but i don't relay know whats going to be best plodding along trying to figure out why the bind option is not mirroring the two directory's properly since both file systems are in ext4.

    if btrfs is the way to go how the heck do i

    A: Go from the current ext4 filesystem to the btrfs without loosing any data
    B: Set-up the system so that the contents of /mnt/storage/TV, /mnt/storage/Films, /mnt/hshdd/TV, /mnt/hshdd/Films are mirrored to /yhn/home/media/Films and /yhn/home/media/TV

  7. #22
    Join Date
    Jul 2005
    Age
    58
    Posts
    1,214
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Nees some help with hdds

    Do a df -v --si for example and see if the device shows mounted. From the log, it probably will. In this case you have a file ownership problem between the owner of the files and the chroot or something with the chroot itself that doesn't have the user defined or something like that.

  8. #23
    Join Date
    Jan 2017
    Location
    United Kingdom
    Age
    30
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Nees some help with hdds

    df gives the following output

    Code:
    Web console: https://localhost:9090/ or https://192.168.0.14:9090/
    
    Last login: Mon Apr 15 00:55:01 2019 from 192.168.0.12
    
    [yoda@localhost ~]$ df -v
    Filesystem                               1K-blocks       Used Available Use% Mounted on
    devtmpfs                                   1917984          0   1917984   0% /dev
    tmpfs                                      1934008          0   1934008   0% /dev/shm
    tmpfs                                      1934008       1456   1932552   1% /run
    tmpfs                                      1934008          0   1934008   0% /sys/fs/cgroup
    /dev/mapper/fedora_localhost--live-root   51343840   10439168  38266848  22% /
    tmpfs                                      1934008         60   1933948   1% /tmp
    /dev/sdb1                                960379920    5284236 906241260   1% /mnt/hshdd
    /dev/sdc1                               2883219632 2735940320    749676 100% /mnt/storage
    /dev/sda1                                   999320     228084    702424  25% /boot
    /dev/mapper/fedora_localhost--live-home  182736344    2733804 170650348   2% /home
    tmpfs                                       386800         16    386784   1% /run/user/42
    tmpfs                                       386800          4    386796   1% /run/user/1001
    tmpfs                                       386800          4    386796   1% /run/user/1000
    
    [yoda@localhost ~]$ df -v /dev/sdb1
    Filesystem     1K-blocks    Used Available Use% Mounted on
    /dev/sdb1      960379920 5284236 906241260   1% /mnt/hshdd
    
    [yoda@localhost ~]$ df -v /dev/sdc1
    Filesystem      1K-blocks       Used Available Use% Mounted on
    /dev/sdc1      2883219632 2735940320    749676 100% /mnt/storage
    [yoda@localhost ~]$
    i know dev/sdc1 is bound and works properly

  9. #24
    Join Date
    Jul 2005
    Age
    58
    Posts
    1,214
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Nees some help with hdds

    That was my mistake. A df isn't going to show the bind. It's too early on a Monday morning. Do a mount and see if the target directory shows mounted (/dev/whatever on /home/.../something).

  10. #25
    Join Date
    Feb 2005
    Location
    London, UK
    Posts
    886
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Nees some help with hdds

    Have you tried mhddfs? https://romanrm.net/mhddfs

  11. #26
    Join Date
    Jan 2017
    Location
    United Kingdom
    Age
    30
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Nees some help with hdds

    Quote Originally Posted by HaydnH
    Have you tried mhddfs? https://romanrm.net/mhddfs
    looks like it would solve my problem, can i implement this without loosing any daya as the 3tb hdd is full and the 1tb drive is empty more or less

  12. #27
    Join Date
    Feb 2005
    Location
    London, UK
    Posts
    886
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Nees some help with hdds

    Quote Originally Posted by yoda2016
    looks like it would solve my problem, can i implement this without loosing any daya as the 3tb hdd is full and the 1tb drive is empty more or less
    Yes the data will be safe, you're not repartioning/reformatting/creating a raid device or anything, you're simply mounting multiple filesystems in to one virtual mount point. Here's an image which describes it better than I can: https://koolinus.wordpress.com/2015/...in-one-folder/

    The one question I have (because I've never tried it) is what happens if you have 2 files with the same full name/path on 2 of the individual filesystems and mount them both on the virtual filesystem. I would assume the files would be safe, but would the identically named file be ignored/invisible or called filename.2 or similar?

  13. #28
    Join Date
    Jan 2017
    Location
    United Kingdom
    Age
    30
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Nees some help with hdds

    Quote Originally Posted by HaydnH
    Yes the data will be safe, you're not repartioning/reformatting/creating a raid device or anything, you're simply mounting multiple filesystems in to one virtual mount point. Here's an image which describes it better than I can: https://koolinus.wordpress.com/2015/...in-one-folder/

    The one question I have (because I've never tried it) is what happens if you have 2 files with the same full name/path on 2 of the individual filesystems and mount them both on the virtual filesystem. I would assume the files would be safe, but would the identically named file be ignored/invisible or called filename.2 or similar?
    that's a good point ive never had a duplicate issue but i imagine it would try and display both of them im more than likely wrong tho

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. Vista, F9+LUKS, 3 HDDs
    By Korexio in forum Installation, Upgrades and Live Media
    Replies: 6
    Last Post: 23rd June 2008, 06:44 PM
  2. FC6 not recognizing HDDs
    By chandlerbling in forum EOL (End Of Life) Versions
    Replies: 6
    Last Post: 6th February 2007, 11:15 AM
  3. Combining two HDDs into one
    By cypher543 in forum Installation, Upgrades and Live Media
    Replies: 2
    Last Post: 21st July 2006, 04:23 PM
  4. Western Digital HDDs
    By MrWh1t3 in forum Installation, Upgrades and Live Media
    Replies: 4
    Last Post: 26th May 2004, 01:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •