LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-10-2005, 03:12 PM   #1
DBabo
Member
 
Registered: Feb 2003
Distribution: Scientific Linux 6
Posts: 384

Rep: Reputation: 33
Adding drive with LVM


Hello,
I'm new to the LVM thoug silly quesitons. Appreciate any help.

situation is simple.
I have RH3 with LVM on it.
Plus i have external USB ide drive with Fedore 3 ( or whatever the lastest one is ).
The story goes like this :
1. we used to have fedore running on PC.
2. We got server with preinstalled RH3.
3. the PC has been taken away and hard drive left for our purpises.

Task is :
to mount said hard drive.

i can see it under devices ( /dev/sde):

[ZZ]$ sudo /sbin/fdisk -l

Disk /dev/sda: 146.8 GB, 146815733760 bytes
255 heads, 63 sectors/track, 17849 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 7 56196 de Dell Utility
/dev/sda2 8 334 2626627+ 83 Linux
/dev/sda3 * 335 359 200812+ 83 Linux
/dev/sda4 360 17849 140488425 f Win95 Ext'd (LBA)
/dev/sda5 360 1633 10233373+ 83 Linux
/dev/sda6 1634 1894 2096451 83 Linux
/dev/sda7 1895 3168 10233373+ 83 Linux
/dev/sda8 3169 3299 1052226 83 Linux
/dev/sda9 3300 3553 2040223+ 82 Linux swap
/dev/sda10 3554 17849 114832588+ 83 Linux
<skip>
Disk /dev/sdd: 146.8 GB, 146815733760 bytes
255 heads, 63 sectors/track, 17849 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdd1 1 17849 143372061 83 Linux

Disk /dev/sde: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

[ZZ]$ mount
/dev/sda6 on / type ext3 (rw)
none on /proc type proc (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/sda3 on /boot type ext2 (rw)
none on /dev/shm type tmpfs (rw)
/dev/sda8 on /tmp type ext3 (rw)
/dev/sda5 on /usr type ext3 (rw)
/dev/sda7 on /var type ext3 (rw)
/dev/apps/u01 on /u01 type ext3 (rw)
/dev/backup/oraback on /oraback type ext3 (rw)
/dev/sda2 on /home type ext3 (rw)
oracleasmfs on /dev/oracleasm type oracleasmfs (rw)

[ZZ]$ sudo /sbin/lvmdiskscan
lvmdiskscan -- reading all disks / partitions (this may take a while...)
lvmdiskscan -- /dev/sda1 [ 54.88 MB] free whole disk
lvmdiskscan -- /dev/sdb1 [ 100 GB] free whole disk
lvmdiskscan -- /dev/sdc1 [ 100 GB] free whole disk
lvmdiskscan -- /dev/sdd1 [ 136.73 GB] USED LVM whole disk
lvmdiskscan -- /dev/sde1 [ 298.05 MB] free whole disk
lvmdiskscan -- 5 disks
lvmdiskscan -- 5 whole disks
lvmdiskscan -- 0 loop devices
lvmdiskscan -- 0 multiple devices
lvmdiskscan -- 0 network block devices
lvmdiskscan -- 17 partitions
lvmdiskscan -- 0 LVM physical volume partitions


[ZZ]$ sudo /sbin/pvscan
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- ACTIVE PV "/dev/sda10" of VG "apps" [109.47 GB / 60.62 GB free]
pvscan -- ACTIVE PV "/dev/sdd1" of VG "backup" [136.69 GB / 63.44 GB free]
pvscan -- total: 2 [246.24 GB] / in use: 2 [246.24 GB] / in no VG: 0 [0]




--
so to my inexperienced eye - the device is there, but i lvm doesn't think(see it ) it is there.
Please advise.
thank you.
 
Old 06-11-2005, 01:47 PM   #2
matt.x33
LQ Newbie
 
Registered: Feb 2005
Distribution: Debian/GNU (2.6.11)
Posts: 5

Rep: Reputation: 0
I think you may need to "activate" the volume... there is a really handy how-to: http://www.ibiblio.org/pub/Linux/doc...movevgtonewsys

Maybe that will help? I'm not totally sure, I havn't had to do this.. my current project is juggling data between drives in an lvm setup...

Matthew
 
Old 06-11-2005, 10:06 PM   #3
DBabo
Member
 
Registered: Feb 2003
Distribution: Scientific Linux 6
Posts: 384

Original Poster
Rep: Reputation: 33
Good idea.
But how do i refer to that volume ? Is there a name i'm missing ?
thnx
Andrew

Quote:
Originally posted by matt.x33
I think you may need to "activate" the volume... there is a really handy how-to: http://www.ibiblio.org/pub/Linux/doc...movevgtonewsys

Maybe that will help? I'm not totally sure, I havn't had to do this.. my current project is juggling data between drives in an lvm setup...

Matthew
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ext3 File-system down after adding LVM physical device JZL240I-U Linux - Software 2 11-21-2005 06:46 AM
LVM - adding a new scsi hard disk ddaas Red Hat 1 07-28-2005 02:13 AM
Adding drive with LVM to the exisitng system DBabo Linux - Hardware 3 06-12-2005 06:21 PM
lvm problem - adding a new scsi drive ddaas Linux - Enterprise 0 06-09-2005 09:40 AM
using LVM for single hard drive csfalcon Linux - Hardware 2 02-17-2005 11:17 AM


All times are GMT -5. The time now is 03:38 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration