From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.redhat.com (ext-mx12.extmail.prod.ext.phx2.redhat.com [10.5.110.17]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p3EGwHIt011824 for ; Thu, 14 Apr 2011 12:58:18 -0400 Received: from eastrmfepo203.cox.net (eastrmfepo203.cox.net [68.230.241.218]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p3EGwD6u003579 for ; Thu, 14 Apr 2011 12:58:13 -0400 Received: from eastrmimpo02.cox.net ([68.1.16.120]) by eastrmfepo203.cox.net (InterMail vM.8.01.04.00 201-2260-137-20101110) with ESMTP id <20110414165813.RUOU32702.eastrmfepo203.cox.net@eastrmimpo02.cox.net> for ; Thu, 14 Apr 2011 12:58:13 -0400 Date: Thu, 14 Apr 2011 12:58:12 -0400 (EDT) From: borelli@cox.net Message-ID: <1c63fa5.26fc.12f54f2dc1b.Webtop.0@cox.net> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_19504_11608163.1302800292849" Subject: [linux-lvm] Confusion mounting old LVs on new system. Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: To: linux-lvm@redhat.com ------=_Part_19504_11608163.1302800292849 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Something that I thought would be simple turned out ta not ta be simple at all. What's new. Anyway, the outputs: # df -h Filesystem Size Used Avail Use% Mounted on rootfs 20G 9.2G 9.6G 49% / devtmpfs 1.9G 288K 1.9G 1% /dev tmpfs 2.0G 1.3M 2.0G 1% /dev/shm /dev/mapper/system-root 20G 9.2G 9.6G 49% / /dev/sda1 152M 30M 114M 21% /boot /dev/mapper/system-home 437G 14G 402G 4% /home # /sbin/fdisk -l Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0009017e Device Boot Start End Blocks Id System /dev/sda1 * 2048 321535 159744 83 Linux /dev/sda2 321536 976773119 488225792 8e Linux LVM Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0006e47a Device Boot Start End Blocks Id System /dev/sdb1 * 63 144584 72261 83 Linux /dev/sdb2 144585 31599854 15727635 8e Linux LVM /dev/sdb3 31599855 1953520064 960960105 8e Linux LVM Disk /dev/mapper/system-home: 476.3 GB, 476317745152 bytes 255 heads, 63 sectors/track, 57909 cylinders, total 930308096 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk /dev/mapper/system-home doesn't contain a valid partition table Disk /dev/mapper/system-root: 21.5 GB, 21474836480 bytes 255 heads, 63 sectors/track, 2610 cylinders, total 41943040 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk /dev/mapper/system-root doesn't contain a valid partition table Disk /dev/mapper/system-swap: 2147 MB, 2147483648 bytes 255 heads, 63 sectors/track, 261 cylinders, total 4194304 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk /dev/mapper/system-swap doesn't contain a valid partition table Disk /dev/mapper/OLDhdd-OLD: 984.0 GB, 984021467136 bytes 255 heads, 63 sectors/track, 119633 cylinders, total 1921916928 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk /dev/mapper/OLDhdd-OLD doesn't contain a valid partition table # cat /proc/partitions major minor #blocks name 8 0 488386584 sda 8 1 159744 sda1 8 2 488225792 sda2 8 16 976762584 sdb 8 17 72261 sdb1 8 18 15727635 sdb2 8 19 960960105 sdb3 253 0 465154048 dm-0 253 1 20971520 dm-1 253 2 2097152 dm-2 253 3 960958464 dm-3 # cat /etc/fstab /dev/system/swap swap swap defaults 0 0 /dev/system/root / ext4 acl,user_xattr 1 1 /dev/disk/by-id/ata-WDC_WD5000AADS-00S9B0_WD-WCAV9A100021-part1 /boot ext4 acl,user_xattr 1 2 /dev/system/home /home ext4 acl,user_xattr 1 2 proc /proc proc defaults 0 0 sysfs /sys sysfs noauto 0 0 debugfs /sys/kernel/debug debugfs noauto 0 0 usbfs /proc/bus/usb usbfs noauto 0 0 devpts /dev/pts devpts mode=0620,gid=5 0 0 # mount devtmpfs on /dev type devtmpfs (rw,relatime,size=1985000k,nr_inodes=496250,mode=755) tmpfs on /dev/shm type tmpfs (rw,relatime) devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000) /dev/mapper/system-root on / type ext4 (rw,relatime,user_xattr,acl,barrier=1,data=ordered) proc on /proc type proc (rw,relatime) sysfs on /sys type sysfs (rw,relatime) debugfs on /sys/kernel/debug type debugfs (rw,relatime) /dev/sda1 on /boot type ext4 (rw,relatime,user_xattr,acl,barrier=1,data=ordered) /dev/mapper/system-home on /home type ext4 (rw,relatime,user_xattr,acl,barrier=1,data=ordered) securityfs on /sys/kernel/security type securityfs (rw,relatime) nfsd on /proc/fs/nfsd type nfsd (rw,relatime) rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime) gvfs-fuse-daemon on /home/borelli/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,relatime,user_id=1000,group_id=100) fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime) # pvscan /dev/sdc: open failed: No medium found /dev/sdc: open failed: No medium found Couldn't find device with uuid CSGXpY-YEJ7-4qsf-KtdC-ft1u-IOaN-QSecuY. PV /dev/sdb3 VG OLDhdd lvm2 [916.44 GiB / 0 free] PV /dev/sdb2 VG system lvm2 [15.00 GiB / 0 free] PV unknown device VG system lvm2 [916.44 GiB / 0 free] PV /dev/sda2 VG system lvm2 [465.61 GiB / 0 free] Total: 4 [2.26 TiB] / in use: 4 [2.26 TiB] / in no VG: 0 [0 ] # vgscan Reading all physical volumes. This may take a while... /dev/sdc: open failed: No medium found Found volume group "OLDhdd" using metadata type lvm2 /dev/sdc: open failed: No medium found Couldn't find device with uuid CSGXpY-YEJ7-4qsf-KtdC-ft1u-IOaN-QSecuY. Found volume group "system" using metadata type lvm2 Found volume group "system" using metadata type lvm2 # lvscan ACTIVE '/dev/OLDhdd/OLD' [916.44 GiB] inherit /dev/sdc: open failed: No medium found Couldn't find device with uuid CSGXpY-YEJ7-4qsf-KtdC-ft1u-IOaN-QSecuY. inactive '/dev/system/home' [895.00 GiB] inherit inactive '/dev/system/root' [34.44 GiB] inherit inactive '/dev/system/swap' [2.00 GiB] inherit I thought I was doing a simple install to a new disk. I use openSUSE and I thougt that I could install with the old disk unplugged then plug in the old disk and boot the new system then access the old home partition to retrieve my data, settings, etc. The Partitoiner in Yast tells me that it will not mount a partition with unknown or non-existent file system. I'm pretty sure the filesystem is still there and I want to be careful to keep it intact. I'm not practiced enough to go it on my own. /sda is my new disk 500 Gib it is working correctly as far as I can tell. /sdb is my old disk and /sdb3 is the partition I want to mount. in pvscan there is a mistake where there is only 1.5 Tib disk space in my machine. I used Yast Partitioner to change the Volume Group names I think. I'm still a little unclear about the distinction between PVs and LVs and VGs, but I'm starting to get it. I'm paranoid to try anything else lest I lose my data. Anyway, whatever help I can get would be greatly appreciated. Thanks, AARON ------=_Part_19504_11608163.1302800292849 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Something that I thought would be simple tur= ned out ta not ta be simple at all. What's new.

=
Anyway, the outputs:

 # df -h
=
Filesystem     &nbs= p;      Size  Used Avail Use% Mounted on
rootfs     =             20G = ; 9.2G  9.6G  49% /
de= vtmpfs           &nb= sp;  1.9G  288K  1.9G   1% /dev
tmpfs       &nb= sp;         2.0G  1.3M  2= .0G   1% /dev/shm
/dev= /mapper/system-root
  =             &nb= sp;        20G  9.2G  9.6G&nbs= p; 49% /
/dev/sda1  &n= bsp;          152M  = 30M  114M  21% /boot
/dev/mapper/system-home
 &= nbsp;           &nbs= p;        437G   14G  402= G   4% /home

 # /sbin/fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 c= ylinders, total 976773168 sectors
Units =3D sectors of 1 * 512 =3D 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / = 512 bytes
Disk identifier: 0x000= 9017e

&nbs= p;  Device Boot      Start   &= nbsp;     End      Blocks = ;  Id  System
/dev/sda= 1   *        2048  &= nbsp;   321535      159744   8= 3  Linux
/dev/sda2 &= nbsp;        321536   97677311= 9   488225792   8e  Linux LVM

Disk /dev/sdb: 1000.2 GB, 10= 00204886016 bytes
255 heads, 63 = sectors/track, 121601 cylinders, total 1953525168 sectors
Units =3D sectors of 1 * 512 =3D 512 bytes=
Sector size (logical/physical): 512 by= tes / 512 bytes
I/O size (minimu= m/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0006e47a

   Device Boot     = Start         End   = ;   Blocks   Id  System
/dev/sdb1   *      = ;    63      144584  &nbs= p;    72261   83  Linux
/dev/sdb2       &n= bsp;  144585    31599854    15727635&nbs= p;  8e  Linux LVM
/dev= /sdb3        31599855  1953520064&n= bsp;  960960105   8e  Linux LVM

Disk /dev/mapper/system-home: 47= 6.3 GB, 476317745152 bytes
255 h= eads, 63 sectors/track, 57909 cylinders, total 930308096 sectors
Units =3D sectors of 1 * 512 =3D 512 bytes=
Sector size (logical/physical):= 512 bytes / 512 bytes
I/O size = (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/system-home doesn't contain a v= alid partition table

= Disk /dev/mapper/system-root: 21.5 GB, 21474836480 bytes<= /DIV>
255 heads, 63 sectors/track, 2610 cylin= ders, total 41943040 sectors
Uni= ts =3D sectors of 1 * 512 =3D 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
<= DIV ALIGN=3D"LEFT">I/O size (minimum/optimal): 512 bytes / 512 b= ytes
Disk identifier: 0x00000000=

Disk /dev= /mapper/system-root doesn't contain a valid partition table

Disk /dev/mapper/system-s= wap: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders, total 4194304 sectors
Units =3D sectors of 1 * 512 =3D 512 byt= es
Sector size (logical/physica= l): 512 bytes / 512 bytes
I/O si= ze (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

<= DIV ALIGN=3D"LEFT">Disk /dev/mapper/system-swap doesn't contain = a valid partition table

Disk /dev/mapper/OLDhdd-OLD: 984.0 GB, 984021467136 bytes
255 heads, 63 sectors/track, 119633= cylinders, total 1921916928 sectors
Units =3D sectors of 1 * 512 =3D 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 byt= es / 512 bytes
Disk identifier:= 0x00000000

Disk /dev/mapper/OLDhdd-OLD doesn't contain a valid partition table

 # cat /pr= oc/partitions
major minor = ; #blocks  name

=    8        0 = 488386584 sda
   8&n= bsp;       1     159744 s= da1
   8  &n= bsp;     2  488225792 sda2
   8       16&= nbsp; 976762584 sdb
  = 8       17      722= 61 sdb1
   8 &nbs= p;     18   15727635 sdb2
   8       = 19  960960105 sdb3
 25= 3        0  465154048 dm-0
 253     &= nbsp;  1   20971520 dm-1
 253        2  &n= bsp; 2097152 dm-2
 253 = ;       3  960958464 dm-3

 # cat /etc/fstab
/dev/system/swap   = ;  swap          &nb= sp;      swap       = defaults           &= nbsp;  0 0
/dev/system/root=      /        &= nbsp;           ext4 = ;      acl,user_xattr     = ;   1 1
/dev/disk/by-i= d/ata-WDC_WD5000AADS-00S9B0_WD-WCAV9A100021-part1 /boot   &n= bsp;            ext4=        acl,user_xattr    =     1 2
/dev/syst= em/home     /home      &n= bsp;         ext4   =     acl,user_xattr       = 1 2
proc    = ;             /= proc            = ;    proc       defaults =              0 = 0
sysfs    = ;            /sys&nb= sp;            =     sysfs      noauto  &n= bsp;            = ; 0 0
debugfs   &= nbsp;          /sys/kernel/deb= ug    debugfs    noauto   &nbs= p;            0 0
usbfs     = ;           /proc/bus/usb=         usbfs    &nb= sp; noauto           = ;     0 0
de= vpts            = ;   /dev/pts         = ;    devpts     mode=3D0620,gid=3D5 = ;      0 0

 # mount
devtmpfs on /dev type devtmpfs (rw,relatime,size=3D1985000k,nr_inod= es=3D496250,mode=3D755)
tmpfs on= /dev/shm type tmpfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=3D5,mode=3D620,ptmxmode= =3D000)
/dev/mapper/system-root = on / type ext4 (rw,relatime,user_xattr,acl,barrier=3D1,data=3Dordered)
proc on /proc type proc (rw,relatime= )
sysfs on /sys type sysfs (rw= ,relatime)
debugfs on /sys/kerne= l/debug type debugfs (rw,relatime)
/dev/sda1 on /boot type ext4 (rw,relatime,user_xattr,acl,barrier=3D1,dat= a=3Dordered)
/dev/mapper/system-= home on /home type ext4 (rw,relatime,user_xattr,acl,barrier=3D1,data=3Dorde= red)
securityfs on /sys/kernel/s= ecurity type securityfs (rw,relatime)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs = (rw,relatime)
gvfs-fuse-daemon= on /home/borelli/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,relatim= e,user_id=3D1000,group_id=3D100)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
 # pvscan
  /dev/sdc: open failed: No medi= um found
  /dev/sdc: open f= ailed: No medium found
  Co= uldn't find device with uuid CSGXpY-YEJ7-4qsf-KtdC-ft1u-IOaN-QSecuY.=
  PV /dev/sdb3   &= nbsp;    VG OLDhdd   lvm2 [916.44 GiB / 0 &nb= sp;  free]
  PV /dev/s= db2        VG system   lvm2 [1= 5.00 GiB / 0    free]
  PV unknown device   VG system   lvm2 [916= .44 GiB / 0    free]
  PV /dev/sda2        VG system=    lvm2 [465.61 GiB / 0    free]
  Total: 4 [2.26 TiB] / in use: 4 [2.26 TiB]= / in no VG: 0 [0   ]

 # vgscan
  Reading all physical volumes.  This may take a while...<= /FONT>
  /dev/sdc: open failed: No= medium found
  Found vol= ume group "OLDhdd" using metadata type lvm2
  /dev/sdc: open failed: No medium found<= /DIV>
  Couldn't find device with uuid C= SGXpY-YEJ7-4qsf-KtdC-ft1u-IOaN-QSecuY.
  Found volume group "system" using metadata type lvm= 2
  Found volume group &q= uot;system" using metadata type lvm2

 # lvscan
  ACTIVE       &nbs= p;    '/dev/OLDhdd/OLD' [916.44 GiB] inherit
  /dev/sdc: open failed: No medium found
  Couldn't find device with = uuid CSGXpY-YEJ7-4qsf-KtdC-ft1u-IOaN-QSecuY.
  inactive        = ;  '/dev/system/home' [895.00 GiB] inherit
  inactive       &n= bsp;  '/dev/system/root' [34.44 GiB] inherit
  inactive       =    '/dev/system/swap' [2.00 GiB] inherit

I thought I was doing a simple i= nstall to a new disk. I use openSUSE and I thougt that I could install with= the old disk unplugged then plug in the old disk and boot the new system t= hen access the old home partition to retrieve my data, settings, etc.

The Partitoiner= in Yast tells me that it will not mount a partition with unknown or non-ex= istent file system. I'm pretty sure the filesystem is still there and I wan= t to be careful to keep it intact. I'm not practiced enough to go it on my = own.

/sda = is my new disk 500 Gib it is working correctly as far as I can tell.=
/sdb is my old disk and /sdb3 is the p= artition I want to mount.
in pvs= can there is a mistake where there is only 1.5 Tib disk space in my machine= .
I used Yast Partitioner to c= hange the Volume Group names I think.
I'm still a little unclear about the distinction between PVs and LVs= and VGs, but I'm starting to get it.
I'm paranoid to try anything else lest I lose my data.
<= FONT FACE=3D"Verdana" SIZE=3D"2" COLOR=3D"#000000" LETTERSPACING=3D"0" KERN= ING=3D"0">
Anyway, whatever help I= can get would be greatly appreciated.
Thanks,
AARON ------=_Part_19504_11608163.1302800292849--