New disk installed and mounted LVM not working
Les
hlhowell at pacbell.net
Sat Jan 13 17:00:28 UTC 2007
Hi, everyone,
I used parted and mke2fs to create my disk partitions and format them.
I changed to root with su - then edited /etc/fstab like so:
# vi /etc/fstab
/dev/VolGroup00/LogVol00 / ext3 defaults
1 1
LABEL=/boot /boot ext3 defaults
1 2
devpts /dev/pts devpts gid=5,mode=620
0 0
tmpfs /dev/shm tmpfs defaults
0 0
proc /proc proc defaults
0 0
sysfs /sys sysfs defaults
0 0
/dev/VolGroup00/LogVol01 swap swap defaults
0 0
/dev/hdb2 /mnt/home ext2 defaults 0 0
I created the directory
# mkdir /mnt/home
Then I executed the following:
# mount -a
the volumes remounted with no errors. Next I moved my home directory:
# mv /home/user /mnt/home/user (where user is my login name)
Then I checked that the move was completed and successful by prowling
around a bit in /mnt/home.
Next I removed the old home directory:
# rm dir /home/user
and then setup the link from /home to the new devic by editing fstab
# vi fstab
/dev/VolGroup00/LogVol00 / ext3 defaults
1 1
LABEL=/boot /boot ext3 defaults
1 2
devpts /dev/pts devpts gid=5,mode=620
0 0
tmpfs /dev/shm tmpfs defaults
0 0
proc /proc proc defaults
0 0
sysfs /sys sysfs defaults
0 0
/dev/VolGroup00/LogVol01 swap swap defaults
0 0
/dev/hdb2 /home ext2 defaults 0 0
and mounted it
# mount -a
# ls /home/lesh
everything appeared OK.
Finally a reboot and relogin and I was up in my new home directory.
Problem: LVM doesn't see the volume as initialized. Checking the man
pages for lvm and all the commands I do not see how to make this play.
Please help me straighten this out. Either new instructions or a link
to something that explains it in detail.
Regards,
Les H
More information about the users
mailing list