LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   home partition doesn't mount after resizing using lvreduce - can't read superblock (https://www.linuxquestions.org/questions/linux-newbie-8/home-partition-doesnt-mount-after-resizing-using-lvreduce-cant-read-superblock-4175593319/)

sahruk 11-13-2016 09:46 AM

Quote:

Originally Posted by rknichols (Post 5630134)
Again, what happens when you run "df /home" specifically asking about that filesystem?

surprisingly I have it on list by doing that command:

Code:

[root@sfvm08 mapper]# df /home
Filesystem                    1K-blocks    Used Available Use% Mounted on
/dev/mapper/centos_sfvm03-home  81247232 71816540  9430692  89% /home

but not when I go with df -h:
Code:

[root@sfvm08 mapper]# df -h
Filesystem                      Size  Used Avail Use% Mounted on
/dev/mapper/centos_sfvm03-root  78G  69G  9.0G  89% /
/dev/loop0                      2.2G  23M  2.1G  2% /tmp


rknichols 11-13-2016 11:16 AM

It is very suspicious that the numbers for /home are almost identical to what is reported for / . It's hard to tell with that "-h" option rounding off the numbers, but they seem to be referring to the same filesystem. What is the output from
Code:

mount | grep -E 'on (/|/home) '

sahruk 11-13-2016 12:21 PM

Quote:

Originally Posted by rknichols (Post 5630164)
It is very suspicious that the numbers for /home are almost identical to what is reported for / . It's hard to tell with that "-h" option rounding off the numbers, but they seem to be referring to the same filesystem. What is the output from
Code:

mount | grep -E 'on (/|/home) '

That's strange for me as well. Everything seems to be ok, just system file can't distinguish /home and that's far from strange for me!
Code:

[root@sfvm08 /]# mount | grep -E 'on (/|/home) '
/dev/mapper/centos_sfvm03-root on / type xfs (rw,uquota)
/dev/mapper/centos_sfvm03-home on /home type xfs (rw)


rknichols 11-13-2016 07:29 PM

If it were my system, I would be very concerned. Something doesn't look at all right.

What do you see if you peek under the /home mount point?
Code:

mkdir /mnt/tmproot
mount --bind / /mnt/tmproot
ls -lA /mnt/tmproot/home
umount /mnt/tmproot

That "ls" command should show nothing. It should be seeing the empty mount point directory that is in the root filesystem.


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