Adding drive with LVM to the exisitng system
//I posted this in software forum. But i guess it was a wrong choice
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. |
The first thing to do is to enable all VGs :
vgchange -ay After that, you should be able to see your LVM partitions, I think. Also, make sure that the LVM module (dm_mod) are loaded on startup. NB : There's is an LVM related document in the gentoo.org documentations. This is not your distrib, but maybe it would help too... HTH Flupke |
no luck.
i even mounted the sde1 - which used ot be a / partitions on old machine. [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) <B>/dev/sde1 on /mnt/usb type ext3 (rw)</B> [ZZ]$ sudo /sbin/pvscan Password: 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] [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 I don't see nay new/different info from before. UPdate: If i go into /proc/lvm : [ZZ]$ cat ./global LVM module LVM version 1.0.8-2(26/05/2004) Total: 2 VGs 2 PVs 2 LVs (2 LVs open 2 times) Global: 69766 bytes malloced IOP version: 10 23 days 7:46:52 active VG: apps [1 PV, 1 LV/1 open] PE Size: 32768 KB Usage [KB/PE]: 114786304 /3503 total 51216384 /1563 used 63569920 /1940 free PV: [AA] sda10 114786304 /3503 51216384 /1563 63569920 /1940 LV: [AWDL ] u01 51216384 /1563 1x open VG: backup [1 PV, 1 LV/1 open] PE Size: 32768 KB Usage [KB/PE]: 143327232 /4374 total 76808192 /2344 used 66519040 /2030 free PV: [AA] sdd1 143327232 /4374 76808192 /2344 66519040 /2030 LV: [AWDL ] oraback 76808192 /2344 1x open [ZZ]$ cd VGs/ []$ ls -l total 0 dr-xr-xr-x 4 root root 0 Jun 12 19:01 apps dr-xr-xr-x 4 root root 0 Jun 12 19:01 backup so damn thing can see only 2 VG. Quote:
|
this is smth more interesting:
[ZZ /]$ sudo /sbin/pvdata -a /dev/sde2 --- NEW Physical volume --- PV Name /dev/sde2 VG Name PV Size 0 [0 secs] PV# 0 PV Status NOT available Allocatable NO Cur LV 0 PE Size (KByte) 0 Total PE 0 Free PE 0 Allocated PE 0 PV UUID none --- List of logical volumes --- Segmentation fault |
All times are GMT -5. The time now is 07:07 AM. |