From: <ismail@21ctl.com>
To: linux-lvm@redhat.com
Subject: [linux-lvm] mount volume problem
Date: Sun, 21 Oct 2007 10:58:28 +0100 [thread overview]
Message-ID: <011301c813c8$ef1029e0$bdb4f33f@devnote> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 899 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 2451 bytes --]
[-- Attachment #2: gserver-new-volume-struct.txt --]
[-- Type: text/plain, Size: 4770 bytes --]
[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
reply other threads:[~2007-10-21 9:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='011301c813c8$ef1029e0$bdb4f33f@devnote' \
--to=ismail@21ctl.com \
--cc=linux-lvm@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).