Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
root@lxuser-Pegatron:~# pvscan
PV /dev/sda6 VG VolGroup00 lvm2 [221.50 GiB / 0 free]
Total: 1 [221.50 GiB] / in use: 1 [221.50 GiB] / in no VG: 0 [0 ]
root@lxuser-Pegatron:~# vgscan
Reading all physical volumes. This may take a while...
Found volume group "VolGroup00" using metadata type lvm2
root@lxuser-Pegatron:~# vgchange -a y
2 logical volume(s) in volume group "VolGroup00" now active
root@lxuser-Pegatron:~# lvscan
ACTIVE '/dev/VolGroup00/LogVol00' [215.72 GiB] inherit
ACTIVE '/dev/VolGroup00/LogVol01' [5.78 GiB] inherit
root@lxuser-Pegatron:~# mkdir /vol1 /vol0
root@lxuser-Pegatron:~# mount /dev/VolGroup00/LogVol00 /vol0
root@lxuser-Pegatron:~# mount /dev/VolGroup00/LogVol01 /vol1
/dev/mapper/VolGroup00-LogVol01 looks like swapspace - not mounted
mount: you must specify the filesystem type
root@lxuser-Pegatron:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 151192780 3710896 139801732 3% /
udev 2037016 4 2037012 1% /dev
tmpfs 817968 856 817112 1% /run
none 5120 0 5120 0% /run/lock
none 2044916 320 2044596 1% /run/shm
/dev/sda5 101086 12835 83032 14% /media/_boot
/dev/mapper/VolGroup00-LogVol00 219113100 91972672 115830556 45% /vol0
Only , the problem is I cannot access some folders of vol0 as normal user.
example
Code:
lxuser@lxuser-Pegatron:~$ ls -al /vol0/home/rajesh/
ls: cannot open directory /vol0/home/rajesh/: Permission denied
Last edited by sumeet inani; 07-01-2013 at 03:39 AM.
I don't know where you got the LVM from, but that shows that the original owner & group no longer exist, hence it showing a numeric uid/gid instead of matching user/group.
You can use chown to change those values, but think about who you want the new user/grp to be.
that lvm is the root partition of RHEL (installed previously) . Its /boot was sda5.
If I change the ownership using 'chown -R lxuser:lxuser /vol0/home/rajesh'
i fear that while booting RHEL , I will get problem .
You've only shown the content of /vol0/home, not content of / as asked, which would show show ownership/perms of the volume /vol0.
All that above shows is that 'rajesh' had a home dir under the uid/gid of 500/500, but those uid/gid entries no longer exist in /etc/passwd, /etc/shadow, /etc/group.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.