mount volume problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all
 
I need your kind assistance.
 
I have a machine with Linux LVM file system. I mistakenly moved my /* to /var/www/test and everything stopped working.
 
We tried to use rescue disk, but rescue did not see the volume on the hard disk. We tried to mount the hard disk but got superblock error.
 
We reinstall the OS in a new hard disk /dev/sda and make the hard disk with /* problem as secondary /dev/sdb.
 
Primary /dev/sda
Secondary dev/sdb    /dev/sdb1, /dev/sdb2
 
I want to mount the /dev/sdb2 on /newmnt I created in the new OS. But /dev/sdb2 has the same VG name as /dev/sda2 - VolGroup00.
 
Please, how do I mount the /dev/sdb2 VG VolGroup00 on /newmnt?
 
Will I be able to mv back the root on the sdb2 i.e mv /newmnt/var/www/test/* /newmnt/?
 
Kindly assist with procedure and command. I have no experience using lvm.
 
I attach the fiel strucutre.
 
Thanks.
 
Ismail
[root@localhost /]# fdisk -l

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          65      522081   83  Linux
/dev/sda2              66       30401   243673920   8e  Linux LVM

Disk /dev/sdb: 164.6 GB, 164696555520 bytes
255 heads, 63 sectors/track, 20023 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1          65      522081   83  Linux
/dev/sdb2              66       20023   160312635   8e  Linux LVM
[root@localhost /]#

[root@localhost /]# mount -l
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw) [/boot]
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)

[root@localhost /]# lvm lvs
  LV       VG         Attr   LSize   Origin Snap%  Move Log Copy%
  LogVol00 VolGroup00 -wi-ao 230.44G
  LogVol01 VolGroup00 -wi-ao   1.94G

[root@localhost /]# lvm pvs -a
  WARNING: Duplicate VG name VolGroup00: Existing Vgs0w2-0j2x-cft2-oI1j-bV00-BdEC-xIIYfc (created here) takes precedence over 2414FK-8hzo-botP-F5hw-8M1U-wWfx-9giXeV
  PV                       VG         Fmt  Attr PSize   PFree
  /dev/VolGroup00/LogVol01                 --        0      0
  /dev/ram                                 --        0      0
  /dev/ram10                               --        0      0
  /dev/ram11                               --        0      0
  /dev/ram12                               --        0      0
  /dev/ram13                               --        0      0
  /dev/ram14                               --        0      0
  /dev/ram15                               --        0      0
  /dev/ram2                                --        0      0
  /dev/ram3                                --        0      0
  /dev/ram4                                --        0      0
  /dev/ram5                                --        0      0
  /dev/ram6                                --        0      0
  /dev/ram7                                --        0      0
  /dev/ram8                                --        0      0
  /dev/ram9                                --        0      0
  /dev/ramdisk                             --        0      0
  /dev/root                                --        0      0
  /dev/sda                                 --        0      0
  /dev/sda1                                --        0      0
  /dev/sda2                VolGroup00 lvm2 a-   232.38G     0
  /dev/sdb                                 --        0      0
  /dev/sdb1                                --        0      0
  /dev/sdb2                VolGroup00 lvm2 a-   152.88G 32.00M

[root@localhost /]# lvm vgs -a
  WARNING: Duplicate VG name VolGroup00: Existing Vgs0w2-0j2x-cft2-oI1j-bV00-BdEC-xIIYfc (created here) takes precedence over 2414FK-8hzo-botP-F5hw-8M1U-wWfx-9giXeV
  VG         #PV #LV #SN Attr   VSize   VFree
  VolGroup00   1   3   0 wz--n- 152.88G 32.00M
  VolGroup00   1   2   0 wz--n- 232.38G     0

[root@localhost /]# lvm lvmdiskscan help
  /dev/ramdisk             [       16.00 MB]
  /dev/root                [      230.44 GB]
  /dev/ram                 [       16.00 MB]
  /dev/sda1                [      509.84 MB]
  /dev/VolGroup00/LogVol01 [        1.94 GB]
  /dev/ram2                [       16.00 MB]
  /dev/sda2                [      232.39 GB] LVM physical volume
  /dev/ram3                [       16.00 MB]
  /dev/ram4                [       16.00 MB]
  /dev/ram5                [       16.00 MB]
  /dev/ram6                [       16.00 MB]
  /dev/ram7                [       16.00 MB]
  /dev/ram8                [       16.00 MB]
  /dev/ram9                [       16.00 MB]
  /dev/ram10               [       16.00 MB]
  /dev/ram11               [       16.00 MB]
  /dev/ram12               [       16.00 MB]
  /dev/ram13               [       16.00 MB]
  /dev/ram14               [       16.00 MB]
  /dev/ram15               [       16.00 MB]
  /dev/sdb1                [      509.84 MB]
  WARNING: Duplicate VG name VolGroup00: Existing Vgs0w2-0j2x-cft2-oI1j-bV00-BdEC-xIIYfc (created here) takes precedence over 2414FK-8hzo-botP-F5hw-8M1U-wWfx-9giXeV
  /dev/sdb2                [      152.89 GB] LVM physical volume
  3 disks
  17 partitions
  0 LVM physical volume whole disks
  2 LVM physical volumes



_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux