Bind mounted /var to /raid5/var and CentOS fails to boot
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
System Background: I am running CentOS 7 in a VM (in VirtualBox) on a host computer running Windows 10. My /dev/sda is on an SSD and then I have three 1TB HDDs /dev/sdb, /dev/sdc, and /dev/sdd configured into a RAID 5 drive called /dev/md5. The /dev/md5 is formatted as ext4 and is mounted to /raid5.
I wanted to bind mount both /home and /var to sub-directories in my RAID 5, /dev/md5.
The following steps worked just fine for /home:
mkdir /raid5/home
rsync -av /home/*/raid5 /home
mount --bind /raid5/home /home
nano /etc/fstab
/raid5/home /home none bind 0 0
I then restart CentOS and it boots no problem. I check df -aTh
and both /raid5/home and /home show mounted to /dev/md5.
I follow the exact same process to bind mount /var and /raid5/var and upon reboot I can't even get to the login screen. Same exact commands were used, just substitute /var everywhere you see /home.
centos bind-mount var
New contributor
add a comment |Â
up vote
0
down vote
favorite
System Background: I am running CentOS 7 in a VM (in VirtualBox) on a host computer running Windows 10. My /dev/sda is on an SSD and then I have three 1TB HDDs /dev/sdb, /dev/sdc, and /dev/sdd configured into a RAID 5 drive called /dev/md5. The /dev/md5 is formatted as ext4 and is mounted to /raid5.
I wanted to bind mount both /home and /var to sub-directories in my RAID 5, /dev/md5.
The following steps worked just fine for /home:
mkdir /raid5/home
rsync -av /home/*/raid5 /home
mount --bind /raid5/home /home
nano /etc/fstab
/raid5/home /home none bind 0 0
I then restart CentOS and it boots no problem. I check df -aTh
and both /raid5/home and /home show mounted to /dev/md5.
I follow the exact same process to bind mount /var and /raid5/var and upon reboot I can't even get to the login screen. Same exact commands were used, just substitute /var everywhere you see /home.
centos bind-mount var
New contributor
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
System Background: I am running CentOS 7 in a VM (in VirtualBox) on a host computer running Windows 10. My /dev/sda is on an SSD and then I have three 1TB HDDs /dev/sdb, /dev/sdc, and /dev/sdd configured into a RAID 5 drive called /dev/md5. The /dev/md5 is formatted as ext4 and is mounted to /raid5.
I wanted to bind mount both /home and /var to sub-directories in my RAID 5, /dev/md5.
The following steps worked just fine for /home:
mkdir /raid5/home
rsync -av /home/*/raid5 /home
mount --bind /raid5/home /home
nano /etc/fstab
/raid5/home /home none bind 0 0
I then restart CentOS and it boots no problem. I check df -aTh
and both /raid5/home and /home show mounted to /dev/md5.
I follow the exact same process to bind mount /var and /raid5/var and upon reboot I can't even get to the login screen. Same exact commands were used, just substitute /var everywhere you see /home.
centos bind-mount var
New contributor
System Background: I am running CentOS 7 in a VM (in VirtualBox) on a host computer running Windows 10. My /dev/sda is on an SSD and then I have three 1TB HDDs /dev/sdb, /dev/sdc, and /dev/sdd configured into a RAID 5 drive called /dev/md5. The /dev/md5 is formatted as ext4 and is mounted to /raid5.
I wanted to bind mount both /home and /var to sub-directories in my RAID 5, /dev/md5.
The following steps worked just fine for /home:
mkdir /raid5/home
rsync -av /home/*/raid5 /home
mount --bind /raid5/home /home
nano /etc/fstab
/raid5/home /home none bind 0 0
I then restart CentOS and it boots no problem. I check df -aTh
and both /raid5/home and /home show mounted to /dev/md5.
I follow the exact same process to bind mount /var and /raid5/var and upon reboot I can't even get to the login screen. Same exact commands were used, just substitute /var everywhere you see /home.
centos bind-mount var
centos bind-mount var
New contributor
New contributor
New contributor
asked 3 mins ago
Michael Gill
1
1
New contributor
New contributor
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Michael Gill is a new contributor. Be nice, and check out our Code of Conduct.
Michael Gill is a new contributor. Be nice, and check out our Code of Conduct.
Michael Gill is a new contributor. Be nice, and check out our Code of Conduct.
Michael Gill is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f476645%2fbind-mounted-var-to-raid5-var-and-centos-fails-to-boot%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password