"umount" LVM stuff
I have created a RAID1 drive. I've created an LVM setup on top of it so I can easily repartition it "at will". However, I need to do something to adjust the RAID device, and I cannot because it is "busy". What is the correct way to "unmount" all the LVM stuff so that nothing is currently running on top of /dev/md0, without permanently changing any of my LVM configuration?
Thanks
David
Quoted 3 lines · David Corbin
[ ... ] What is the correct way to "unmount" all the LVM stuff so that nothing is currently running on top of
/dev/md0, without permanently changing any of my LVM configuration?
What about
vgchange -a n
not?
Signature · 4 lines
Goetz Bock (c) 2003 as blacknet.de - Munich - Germany /"\
IT Consultant GNU FDL 1.1 secure mobile Linux everNETting \ /
X
ASCII Ribbon Campaign against HTML email & microsoft attachments / \Quoted 8 lines · Goetz Bock
Quoted 5 lines · David Corbin
[ ... ] What is the correct way to "unmount" all the LVM stuff so that nothing is currently running on top of
/dev/md0, without permanently changing any of my LVM configuration?
Quoted 7 lines
What about
vgchange -a n
not?
Well, that appears to have solved the immediate probelm. Now, help me get through the next one....
Attempts to access the logical volume I used to fail.
piano:/etc# ls -ltar /dev/vg0 total 28 crw-r----- 1 root disk 109, 0 Feb 23 13:35 group drwxr-xr-x 10 root root 24576 Feb 23 13:35 .. dr-xr-xr-x 2 root root 4096 Feb 23 13:35 . piano:/etc# ls -ltar /dev/vg0/group crw-r----- 1 root disk 109, 0 Feb 23 13:35 /dev/vg0/group piano:/etc#
I'm concerted that "group" is /dev/vg0, instead of "data".
Ideas on how I can recover this?
David.
Quoted 4 lines · David Corbin
Well, that appears to have solved the immediate probelm. Now, help me get through the next one....
Attempts to access the logical volume I used to fail.
You have disabled it, it's gone.
Quoted 9 lines
piano:/etc# ls -ltar /dev/vg0 total 28 crw-r----- 1 root disk 109, 0 Feb 23 13:35 group drwxr-xr-x 10 root root 24576 Feb 23 13:35 .. dr-xr-xr-x 2 root root 4096 Feb 23 13:35 . piano:/etc# ls -ltar /dev/vg0/group crw-r----- 1 root disk 109, 0 Feb 23 13:35 /dev/vg0/group piano:/etc#
Quoted 3 lines
I'm concerted that "group" is
/dev/vg0, instead of "data".Ideas on how I can recover this?
Well, read the LVM faq/howto somewhere at sistina.com, than read
http://www.tuxedo.org/~esr/faqs/smart-questions.html
and finaly tell us what you attemp to do? you can not unmound an lvm and the group file is a very essential file for LVM.
Signature · 4 lines
Goetz Bock (c) 2003 as blacknet.de - Munich - Germany /"\
IT Consultant GNU FDL 1.1 secure mobile Linux everNETting \ /
X
ASCII Ribbon Campaign against HTML email & microsoft attachments / \Quoted 2 lines · Goetz Bock
Quoted 1 line
Attempts to access the logical volume I used to fail.
You have disabled it, it's gone.
Don't panik :->
your LVM will reappear, once you enable it again (vgchange -a y) still, read some docs.
Signature · 4 lines
Goetz Bock (c) 2003 as blacknet.de - Munich - Germany /"\
IT Consultant GNU FDL 1.1 secure mobile Linux everNETting \ /
X
ASCII Ribbon Campaign against HTML email & microsoft attachments / \Quoted 6 lines · Goetz Bock
Quoted 3 lines · Goetz Bock
Quoted 3 lines
Attempts to access the logical volume I used to fail.
Quoted 9 lines
Quoted 3 lines
You have disabled it, it's gone.
Don't panik :->
your LVM will reappear, once you enable it again (vgchange -a y) still, read some docs.
I have read some docs. I've spent hours combing the Net for the answers, without success.
I *had* a working system. But, I use the LVM commands so rarely, I can never repeat what I did (notes or not).
piano:/home/dcorbin# sh -x /etc/init.d/lvm start + modprobe lvm + modprobe lvm-mod + '[' -e /proc/lvm ']' + '[' -e /etc/lvmtab ']' + '[' -x /sbin/vgscan ']' + echo 'Setting up LVM Volume Groups...' Setting up LVM Volume Groups... + /sbin/vgscan --verbose + /sbin/vgchange -a y --verbose
piano:/home/dcorbin# mount /data mount: special device /dev/vg0/data does not exist
The reason you hear "panic" in my typing is the last line. :)
----
Fundamentally, I'm building a critical data file server. LVM has caused me enough problems and delays, that I'm about ready to bypass it, saying it is putting my data at risk. Feel free to convince me otherwise.
Thanks
David
Following this thread it kind of looks like you worked around using LVM commands (i.e. removed a VG w/o using lvremove + vgremove).
If so, not a good idea :(
What does pvscan list ?
What does vgck say ?
Quoted 53 lines · David Corbin
Quoted 6 lines · Goetz Bock
Quoted 3 lines · Goetz Bock
Quoted 3 lines
Attempts to access the logical volume I used to fail.
Quoted 9 lines
Quoted 3 lines
You have disabled it, it's gone.
Don't panik :->
your LVM will reappear, once you enable it again (vgchange -a y) still, read some docs.
I have read some docs. I've spent hours combing the Net for the answers, without success.
I *had* a working system. But, I use the LVM commands so rarely, I can never repeat what I did (notes or not).
piano:/home/dcorbin# sh -x /etc/init.d/lvm start + modprobe lvm + modprobe lvm-mod + '[' -e /proc/lvm ']' + '[' -e /etc/lvmtab ']' + '[' -x /sbin/vgscan ']' + echo 'Setting up LVM Volume Groups...' Setting up LVM Volume Groups... + /sbin/vgscan --verbose + /sbin/vgchange -a y --verbosepiano:/home/dcorbin# mount /data mount: special device /dev/vg0/data does not existThe reason you hear "panic" in my typing is the last line. :)
----
Fundamentally, I'm building a critical data file server. LVM has caused me enough problems and delays, that I'm about ready to bypass it, saying it is putting my data at risk. Feel free to convince me otherwise.Thanks
David_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
Signature · 15 lines
Regards,
Heinz -- The LVM Guy --
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf
Germany
[email protected] +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-Quoted 6 lines · Heinz J . Mauelshagen
Following this thread it kind of looks like you worked around using LVM commands (i.e. removed a VG w/o using lvremove + vgremove).
If so, not a good idea :(
Well, not to my knowledge I didn't. But my knowledge of LVM is very tiny. All I remember doing was "vgchange -a n".
Quoted 3 lines
What does pvscan list ?
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- ACTIVE PV "/dev/md0" of VG "vg0" [109.77 GB / 109.77 GB free]
pvscan -- total: 1 [109.78 GB] / in use: 1 [109.78 GB] / in no VG: 0 [0]
Quoted 2 lines
What does vgck say ?
vgck -- VGDA of "vg0" in lvmtab is consistent vgck -- VGDA of "vg0" on physical volume is consistent
Quoted 67 lines · David Corbin
Quoted 62 lines
Quoted 15 lines · Goetz Bock
Quoted 10 lines · Goetz Bock
Quoted 5 lines
Attempts to access the logical volume I used to fail.
You have disabled it, it's gone.
Quoted 8 lines
Don't panik :->
your LVM will reappear, once you enable it again (vgchange -a y) still, read some docs.
I have read some docs. I've spent hours combing the Net for the answers, without success.
I *had* a working system. But, I use the LVM commands so rarely, I can never repeat what I did (notes or not).
piano:/home/dcorbin# sh -x /etc/init.d/lvm start + modprobe lvm + modprobe lvm-mod + '[' -e /proc/lvm ']' + '[' -e /etc/lvmtab ']' + '[' -x /sbin/vgscan ']' + echo 'Setting up LVM Volume Groups...' Setting up LVM Volume Groups... + /sbin/vgscan --verbose + /sbin/vgchange -a y --verbosepiano:/home/dcorbin# mount /data mount: special device /dev/vg0/data does not existThe reason you hear "panic" in my typing is the last line. :)
----
Fundamentally, I'm building a critical data file server. LVM has caused me enough problems and delays, that I'm about ready to bypass it, saying it is putting my data at risk. Feel free to convince me otherwise.Thanks
David_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
Quoted 14 lines · David Corbin
Quoted 6 lines · Heinz J . Mauelshagen
Following this thread it kind of looks like you worked around using LVM commands (i.e. removed a VG w/o using lvremove + vgremove).
If so, not a good idea :(
Well, not to my knowledge I didn't. But my knowledge of LVM is very
tiny. All I remember doing was "vgchange -a n".Quoted 3 lines
What does pvscan list ?
Quoted 8 lines
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- ACTIVE PV "/dev/md0" of VG "vg0" [109.77 GB / 109.77 GB free]
pvscan -- total: 1 [109.78 GB] / in use: 1 [109.78 GB] / in no VG: 0 [0]Quoted 2 lines
What does vgck say ?
vgck -- VGDA of "vg0" in lvmtab is consistent vgck -- VGDA of "vg0" on physical volume is consistent
This all looks ok.
Doesn't "vgchange -a y" bring your VG back ?
If not so, try "vgscan ; vgchange -ay".
Regards,
Heinz -- The LVM Guy --
Quoted 9 lines
Quoted 9 lines · David Corbin
Quoted 6 lines
Goetz Bock wrote:
<SNIP>
Quoted 21 lines
Quoted 8 lines
Quoted 8 lines
Fundamentally, I'm building a critical data file server. LVM has caused me enough problems and delays, that I'm about ready to bypass it, saying it is putting my data at risk. Feel free to convince me otherwise.
Thanks
DavidQuoted 10 lines
Quoted 7 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
Quoted 5 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf Germany
[email protected] +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Quoted 8 lines
This all looks ok.
Doesn't "vgchange -a y" bring your VG back ?
If not so, try "vgscan ; vgchange -ay".
piano:/home/dcorbin# vgchange -ay vgchange -- volume group "vg0" already active
So, it appears that the VG IS there.
----
piano:/home/dcorbin# mount -t reiserfs /dev/vg0/data /data mount: special device /dev/vg0/data does not exist
/dev/vg0/data is the device I used to use to mount it, and the error message is correct if I look at my filesystem (it doesn't exist).
----
piano:/home/dcorbin# mount -t reiserfs /dev/vg0/group /data mount: /dev/vg0/group is not a block device
I tried this command because /dev/vg0/group is the only device in /dev/vg0
----
Here are some other commands that I tried that may or may not tell you something...
piano:/home/dcorbin# lvscan lvscan -- no logical volumes found piano:/home/dcorbin# ls -ltar /dev/vg0 total 28 crw-r----- 1 root disk 109, 0 Feb 24 06:53 group drwxr-xr-x 10 root root 24576 Feb 24 06:53 .. dr-xr-xr-x 2 root root 4096 Feb 24 06:53 .
Quoted 4 lines
Regards,
Heinz -- The LVM Guy --
David,
try vgscan then which should bring your device node back.
Regards,
Heinz -- The LVM Guy --
Quoted 44 lines · David Corbin
Quoted 8 lines
This all looks ok.
Doesn't "vgchange -a y" bring your VG back ?
If not so, try "vgscan ; vgchange -ay".piano:/home/dcorbin# vgchange -ay vgchange -- volume group "vg0" already activeSo, it appears that the VG IS there.
----piano:/home/dcorbin# mount -t reiserfs /dev/vg0/data /data mount: special device /dev/vg0/data does not exist
/dev/vg0/datais the device I used to use to mount it, and the error message is correct if I look at my filesystem (it doesn't exist).
----piano:/home/dcorbin# mount -t reiserfs /dev/vg0/group /data mount: /dev/vg0/group is not a block deviceI tried this command because
/dev/vg0/groupis the only device in/dev/vg0
----
Here are some other commands that I tried that may or may not tell you something...piano:/home/dcorbin#
lvscan
lvscan -- no logical volumes foundpiano:/home/dcorbin# ls -ltar /dev/vg0 total 28 crw-r----- 1 root disk 109, 0 Feb 24 06:53 group drwxr-xr-x 10 root root 24576 Feb 24 06:53 .. dr-xr-xr-x 2 root root 4096 Feb 24 06:53 .Quoted 4 lines
Regards,
Heinz -- The LVM Guy --
Quoted 5 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf Germany
[email protected] +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz J . Mauelshagen wrote:
piano:/home/dcorbin# vgscan vgscan -- reading all physical volumes (this may take a while...) vgscan -- found active volume group "vg0" vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created vgscan -- WARNING: This program does not do a VGDA backup of your volume group
But, ls -ltar /dev/vg0 is essentially the same.
Quoted 82 lines
David,
try vgscan then which should bring your device node back.
Regards,
Heinz -- The LVM Guy --Quoted 42 lines · David Corbin
Quoted 8 lines
This all looks ok.
Doesn't "vgchange -a y" bring your VG back ?
If not so, try "vgscan ; vgchange -ay".piano:/home/dcorbin# vgchange -ay vgchange -- volume group "vg0" already activeSo, it appears that the VG IS there.
----piano:/home/dcorbin# mount -t reiserfs /dev/vg0/data /data mount: special device /dev/vg0/data does not exist
/dev/vg0/datais the device I used to use to mount it, and the error message is correct if I look at my filesystem (it doesn't exist).
----piano:/home/dcorbin# mount -t reiserfs /dev/vg0/group /data mount: /dev/vg0/group is not a block deviceI tried this command because
/dev/vg0/groupis the only device in/dev/vg0
----
Here are some other commands that I tried that may or may not tell you something...piano:/home/dcorbin# lvscan lvscan -- no logical volumes found piano:/home/dcorbin# ls -ltar /dev/vg0 total 28 crw-r----- 1 root disk 109, 0 Feb 24 06:53 group drwxr-xr-x 10 root root 24576 Feb 24 06:53 .. dr-xr-xr-x 2 root root 4096 Feb 24 06:53 .Quoted 6 lines
Regards,
Heinz -- The LVM Guy --Quoted 7 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf Germany
[email protected] +49 2626 141200FAX 924446=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/