On 22/10/18 11:33 AM, Paul Groves wrote:
Hi All,
I have a single 1TB disk on a server at the moment mounted at root (/). I have run out of space so I have installed a 4TB hard disk along side the existing one. I will name this new disk media so it will be /mount-location/media
I am trying to work out the correct location to mount this disk. It will contain data to be server to the network e.g. music and videos. So data will not change often.
I though /mnt but that is apparently for temporarily mounted filesystems. perhaps either /var or /srv
Where would best practice indicate I should mount this disk?
I feel your pain. Decades ago I kept suffering from this, then I used IBM's AIX and became a convert to the Veritas System. In Linux terms this is LVM. You format a drive as a LVM container and you get a new kind of flexibility. Not only does the whole issue of preallocation of partition sizes (and hence location) go away, but files, not just file systems, can span multiple drives in a variety of way. Not just RAID, but even simple thing like striping or overflow. You need a bigger partition? So long as there is space in the set of all containers (that means *all* drives) you can grow the partition and hence the tile system on it. (Some file systems let you shrink as well<smirk>). I made the decision to put everything except a swap area and /boot under LVM on my primary drive. That included the "/" as well as separate "/home" and "/var" and stuff under "/home/anton" like "~/Photographs", so as to simplify logical backup/restore. So when I run out of space with my primary 1G drive and get 4G drive that costs about half what I paid for the old 1G, I don't have to worry about a 'mount point'. It just goes into the LVM pool and gets allocated as needed. If, perhaps, I want to convert my "~/Photographs" to a striped partition new, across both drives, them I create the new partition and came "LVM move" the old to the new, WITHOUT SHUTTING DOWN OR GOING TO SINGLE USE MODE even if I'm using the file system at the time. Yes, LVM is wonderful and solves so many issues with allocation etc etc. Converting from a drive that doesn't have LVM to a pair that does is not difficult. It just takes care and planning and like everything else, it is best to have backups. If you want to follow up on that please ask me off-line. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org