mounting a secondary drive (LVM)
I have added a secondary hdd to my server and I read the /var/log/dmesg and it sees the partitions as hdb1, hdb2, and hdb3. I run a fdisk -l and I know that I need to mount hdb3 which is a LVM partition. My question is how do I mount a LVM on /dev/hdb3. I tried mount -t auto /dev/hdb3 /media/old_drive(that didnt work), I tried mount -t ext3 /dev/hdb3 /media/old_drive(that didnt work) help?
//mod note - unrelated to networking. more to linux - general |
First you need to scan for lvm partitions on that drive.
I do not know the exact thing to type but its some thing like: a) lvscan /dev/hda b) lvavailable -y (thats really wrong but you `ll find somthing in google) c) than you can mount the lvms but you will never type something like mount -t auto /dev/hdb1 /mount/test as it will be an extra lvm device like lvm1. so mount /dev/lvm1/alpha /mnt/test. |
I ran a pvscan /dev/hdb3 and it sees the LVM volume so how do I mount it?
|
after you scan it you need to make it acitve be typing
lvchange -a y (or something like this) look at man lvchange after that you can mount the volume. |
lvscan only scans the local LVM and not the secondary disk. I tried
PHP Code:
PHP Code:
|
PHP Code:
PHP Code:
|
All times are GMT -5. The time now is 11:03 PM. |