LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Moving /media to RAID1 (https://www.linuxquestions.org/questions/linux-newbie-8/moving-media-to-raid1-4175733054/)

SBFree 01-22-2024 06:03 AM

Moving /media to RAID1
 
I am trying to build a web server. It has one SSD for the OS and a pair of drives that are a RAID1 array created with mdadm (/mnt/md0). The single drive has to remain the boot drive, apparently the RAID1 array is not recommended to be a boot drive and it also contains another OS. In particular, /media needs to be on the RAID1 array. If I use
Code:

mv /media /mnt/md0/media
how can I get references made to /media to point to the directory on the the RAID1 array?
Thanks in advance for any replies.
scott

michaelk 01-22-2024 08:36 AM

Your post is a bit confusing and it isn't entirely clear what you want to accomplish?

I do not understand what you mean by /media needs to be on the RAID?

Is there any data on /media currently? Typically /media is for external drives like CD/DVDs and USB drives. Is the RAID automatically being mounted on /media versus /mnt?

SBFree 01-23-2024 08:14 AM

Thanks for the reply. I'm going to do a reinstall with different mount points for the RAID array to solve my concern. Apologies for being confused/confusing.
scott

michaelk 01-23-2024 08:39 AM

If the RAID is separate from the main operating system drive then it is unclear why you want to reinstall. Just unmount and mount where ever. Change the /etc/fstab file as desired.

IsaacKuo 01-23-2024 10:00 AM

Probably too late now, but the easiest way to make all references to /media to point to /mnt/md0/media would be a symlink:

Code:

cd /
ln -s /mnt/md0/media/
ls -lh

This will create a symlink that points from /media to /mnt/md0/media


All times are GMT -5. The time now is 12:15 PM.