Skip to contentSkip to conversation

Cannot unmount my /usr partition.....

linux-lvm Glenn Shannon 5 participants 8 messages Apr 26, 2001

lore
Share & tools
lore
#0 lore raw

Hi all!

Great job on LVM...loving it so far..just have a quick question if I may..

Here is my current setup:
RH 6.2 with misc updates (PAM GlibC etc.)
2.4.3 kernel with LVM Patch and ReiserFS Patch
Compiled in (of special note) are ReiserFS support, DevFS support with automount at boot option enabled, and LVM 0.9.1Beta7(from patch made in the PATCHES dir of sourcetree).

Boots fine (better than fine!) and devfs reiser and lvm seem to play well together while they are running...... but upon shutdown I cannot unmount my /usr partition for some reason it is busy.

I have hacked the init scripts to let me reboot successfully (as it IS a production machine with automatic reboot times entered in the cron) but it cannot deactivate my LVM due to the /usr partition being busy.

Current slicing setup:

LVM Name is warlock1
size is 11.48GB
2.48GB Free

Mount Point Partition type size
/ /dev/hda4 ext2 2G (not LVM)
/usr /dev/warlock1/usr reiserfs 6GB (LVM)
/root /dev/warlock1/root reiserfs 1GB (LVM)

Any ideas here guys?
Other than that little hiccup, I'm having a GREAT time setting up and messing with LVM!

Glenn

#1 lore raw
Quoted 6 lines · Glenn Shannon

Hi all!

Great job on LVM...loving it so far..just have a quick question if I may..

Quoted 7 lines

Boots fine (better than fine!) and devfs reiser and lvm seem to play well together while they are running...... but upon shutdown I cannot unmount my /usr partition for some reason it is busy.

I have hacked the init scripts to let me reboot successfully (as it IS a production machine with automatic reboot times entered in the cron) but it cannot deactivate my LVM due to the /usr partition being busy.

Hmm, I had this problem sometimes with RH6.x, but w/o LVM. So it may not be related to LVM. On the other hand, where did you put the LVM userspace tools? If they reside in /usr, this may cause your problem. IMHO they belong into /, because they are needed at boot/shutdown time.

Hope this helps...

Dirk

Signature · 5 lines
Dirk Heinrichs		| Tel:	+49 (0)241 413 260
Configuration Manager	| Fax:	+49 (0)241 413 2640
QIS Systemhaus GmbH	| Mail:	[email protected]
J�licher Str. 338b	| Web:	http://www.qis-systemhaus.de
D-52070 Aachen		| ICQ#:	110037733
#2 lore raw

Actually ALL of my tools for LVM, Reiser and DevFS are in the /sbin dir.

Thanks for the try tho!

Anyone else?

Glenn

Quoted 32 lines · Dirk Heinrichs
Quoted 6 lines · Glenn Shannon

Hi all!

Great job on LVM...loving it so far..just have a quick question if I may..

Quoted 7 lines

Boots fine (better than fine!) and devfs reiser and lvm seem to play well together while they are running...... but upon shutdown I cannot unmount my /usr partition for some reason it is busy.

I have hacked the init scripts to let me reboot successfully (as it IS a production machine with automatic reboot times entered in the cron) but it cannot deactivate my LVM due to the /usr partition being busy.

Hmm, I had this problem sometimes with RH6.x, but w/o LVM. So it may not be related to LVM. On the other hand, where did you put the LVM userspace tools? If they reside in /usr, this may cause your problem. IMHO they belong into /, because they are needed at boot/shutdown time.

Hope this helps...

Dirk
--

Dirk Heinrichs          | Tel:  +49 (0)241 413 260
Configuration Manager   | Fax:  +49 (0)241 413 2640
QIS Systemhaus GmbH     | Mail: [email protected]

J�licher Str. 338b | Web: http://www.qis-systemhaus.de
D-52070 Aachen | ICQ#: 110037733
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm

#3 lore raw

Yup....

Quoted 42 lines · Glenn Shannon

Actually ALL of my tools for LVM, Reiser and DevFS are in the /sbin dir.

Thanks for the try tho!

Anyone else?

Glenn

Quoted 26 lines · Dirk Heinrichs
Quoted 6 lines · Glenn Shannon

Hi all!

Great job on LVM...loving it so far..just have a quick question if I may..

Quoted 7 lines

Boots fine (better than fine!) and devfs reiser and lvm seem to play well together while they are running...... but upon shutdown I cannot unmount my /usr partition for some reason it is busy.

I have hacked the init scripts to let me reboot successfully (as it IS a production machine with automatic reboot times entered in the cron) but it cannot deactivate my LVM due to the /usr partition being busy.

Hmm, I had this problem sometimes with RH6.x, but w/o LVM. So it may not be related to LVM. On the other hand, where did you put the LVM userspace tools? If they reside in /usr, this may cause your problem. IMHO they belong into /, because they are needed at boot/shutdown time.

Hope this helps...

Dirk
--

Dirk Heinrichs          | Tel:  +49 (0)241 413 260
Configuration Manager   | Fax:  +49 (0)241 413 2640
QIS Systemhaus GmbH     | Mail: [email protected]
Quoted 6 lines

Jülicher Str. 338b | Web: http://www.qis-systemhaus.de
D-52070 Aachen | ICQ#: 110037733
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm

Quoted 5 lines

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm

A. James Lewis ([email protected])
If your OS needs a virus detector... RUN!!!
...Out and get Linux!

#4 lore raw
In reply to Glenn Shannon

<SNIP>

Quoted 3 lines

Boots fine (better than fine!) and devfs reiser and lvm seem to play well together while they are running...... but upon shutdown I cannot unmount my /usr partition for some reason it is busy.

that means that something is running on /usr

Quoted 3 lines

I have hacked the init scripts to let me reboot successfully (as it IS a production machine with automatic reboot times entered in the cron) but it cannot deactivate my LVM due to the /usr partition being busy.

did you add "vgchange -a n" to your halt script?, also you should add "vgchange -a y" to your /etc/rc.d/rc.sysinit as instructed on sistina's documentation

regards,

Carlo

#5 lore raw
In reply to Glenn Shannon
Quoted 12 lines · Glenn Shannon

Hi all!

Great job on LVM...loving it so far..just have a quick question if I may..

Here is my current setup:
RH 6.2 with misc updates (PAM GlibC etc.)
2.4.3 kernel with LVM Patch and ReiserFS Patch
Compiled in (of special note) are ReiserFS support, DevFS support with automount at boot option enabled, and LVM 0.9.1Beta7(from patch made in the PATCHES dir of sourcetree).

Quoted 7 lines

Boots fine (better than fine!) and devfs reiser and lvm seem to play well together while they are running...... but upon shutdown I cannot unmount my /usr partition for some reason it is busy.

I have hacked the init scripts to let me reboot successfully (as it IS a production machine with automatic reboot times entered in the cron) but it cannot deactivate my LVM due to the /usr partition being busy.

Have you already tried to put an "lsof|grep '/usr/';sleep SomeTime" into your shutdown script before the umount in order to find the bad guy(s) aka processes ;-) which have files still open?
Then you might enhance scripts to shut them down correctly.

In general: there's no danger related to not running "vgchange -a n" on your
VG(s) because nothing is written to the PVs at all today.

Quoted 24 lines

Current slicing setup:

LVM Name is warlock1
size is 11.48GB
2.48GB Free

Mount Point Partition type size
/ /dev/hda4 ext2 2G (not LVM)
/usr /dev/warlock1/usr reiserfs 6GB (LVM)
/root /dev/warlock1/root reiserfs 1GB (LVM)

Any ideas here guys?
Other than that little hiccup, I'm having a GREAT time setting up and messing with LVM!

Glenn

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm

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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#6 lore raw

Ah cool!

Thanks Heinz!

That worked.....apparently some stupid admin *cough*me*cough*.....forgot to put on the -a flag when cp'ing from the old usr partition to the LVM usr partition....

Heh. Just another thing to watch out for, boys and girls, when performing an LVM enhancement to a pre-installed machine.....better way to do it would probably have been to just tar the whole thing up and untar it to the freshly mounted /usr directory...but hindsight is always 20/20 right?

Doing the lsof|grep /usr >/root/lsof.output in the /etc/rc.d/init.d/halt script right before the / partition was remounted read-only gave me an output file I could then use to see what the major malfunction was...and now I am happily rebooting with green across the board..

Thanks again!

I now have a completely working LVM/Reiser/DevFS machine going :)

Now if only I could resize my / partition (2GB that I could use for LVMing......there isn't a way to get the / directory as LVM is there?????) I would be in happy-camperland..

Till the next time I screw things up and needlessly bother developers about it :)

Glenn

Quoted 75 lines · Heinz J. Mauelshagen
Quoted 12 lines · Glenn Shannon

Hi all!

Great job on LVM...loving it so far..just have a quick question if I may..

Here is my current setup:
RH 6.2 with misc updates (PAM GlibC etc.)
2.4.3 kernel with LVM Patch and ReiserFS Patch
Compiled in (of special note) are ReiserFS support, DevFS support with automount at boot option enabled, and LVM 0.9.1Beta7(from patch made in the PATCHES dir of sourcetree).

Quoted 7 lines

Boots fine (better than fine!) and devfs reiser and lvm seem to play well together while they are running...... but upon shutdown I cannot unmount my /usr partition for some reason it is busy.

I have hacked the init scripts to let me reboot successfully (as it IS a production machine with automatic reboot times entered in the cron) but it cannot deactivate my LVM due to the /usr partition being busy.

Have you already tried to put an "lsof|grep '/usr/';sleep SomeTime" into your shutdown script before the umount in order to find the bad guy(s) aka processes ;-) which have files still open?
Then you might enhance scripts to shut them down correctly.

In general: there's no danger related to not running "vgchange -a n" on your
VG(s) because nothing is written to the PVs at all today.

Quoted 18 lines

Current slicing setup:

LVM Name is warlock1
size is 11.48GB
2.48GB Free

Mount Point Partition type size
/ /dev/hda4 ext2 2G (not LVM)
/usr /dev/warlock1/usr reiserfs 6GB (LVM)
/root /dev/warlock1/root reiserfs 1GB (LVM)

Any ideas here guys?
Other than that little hiccup, I'm having a GREAT time setting up and messing with LVM!

Quoted 6 lines

Glenn

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm

--

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

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm

#7 lore raw
Quoted 3 lines · Glenn Shannon

Ah cool!

Thanks Heinz!

Happy to hear that it works now :-)

Quoted 15 lines

That worked.....apparently some stupid admin *cough*me*cough*.....forgot to put on the -a flag when cp'ing from the old usr partition to the LVM usr partition....

Heh. Just another thing to watch out for, boys and girls, when performing an LVM enhancement to a pre-installed machine.....better way to do it would probably have been to just tar the whole thing up and untar it to the freshly mounted /usr directory...but hindsight is always 20/20 right?

Doing the lsof|grep /usr >/root/lsof.output in the /etc/rc.d/init.d/halt script right before the / partition was remounted read-only gave me an output file I could then use to see what the major malfunction was...and now I am happily rebooting with green across the board..

Quoted 7 lines

Thanks again!

I now have a completely working LVM/Reiser/DevFS machine going :)

Now if only I could resize my / partition (2GB that I could use for LVMing......there isn't a way to get the / directory as LVM is there?????) I would be in happy-camperland..

Basically you can if you follow the HOWTO link at www.sistina.com. If you have a look at our Web site and open the LVM pulldown to the left, you'll find the "LVM root filesytem HOWTO" under "Howtos" there.

This is very basically supported today so be prepared to path a snake pit ;-) Kepp in mind to have actual backups :)

Quoted 2 lines

Till the next time I screw things up and needlessly bother developers about it :)

Don't worry about it. It is quite often the only hint to make things better!

Regards,
Heinz -- The LVM Guy --

Quoted 81 lines

Glenn

Quoted 69 lines · Heinz J. Mauelshagen
Quoted 12 lines · Glenn Shannon

Hi all!

Great job on LVM...loving it so far..just have a quick question if I may..

Here is my current setup:
RH 6.2 with misc updates (PAM GlibC etc.)
2.4.3 kernel with LVM Patch and ReiserFS Patch
Compiled in (of special note) are ReiserFS support, DevFS support with automount at boot option enabled, and LVM 0.9.1Beta7(from patch made in the PATCHES dir of sourcetree).

Quoted 7 lines

Boots fine (better than fine!) and devfs reiser and lvm seem to play well together while they are running...... but upon shutdown I cannot unmount my /usr partition for some reason it is busy.

I have hacked the init scripts to let me reboot successfully (as it IS a production machine with automatic reboot times entered in the cron) but it cannot deactivate my LVM due to the /usr partition being busy.

Have you already tried to put an "lsof|grep '/usr/';sleep SomeTime" into your shutdown script before the umount in order to find the bad guy(s) aka processes ;-) which have files still open?
Then you might enhance scripts to shut them down correctly.

In general: there's no danger related to not running "vgchange -a n" on your
VG(s) because nothing is written to the PVs at all today.

Quoted 18 lines

Current slicing setup:

LVM Name is warlock1
size is 11.48GB
2.48GB Free

Mount Point Partition type size
/ /dev/hda4 ext2 2G (not LVM)
/usr /dev/warlock1/usr reiserfs 6GB (LVM)
/root /dev/warlock1/root reiserfs 1GB (LVM)

Any ideas here guys?
Other than that little hiccup, I'm having a GREAT time setting up and messing with LVM!

Quoted 6 lines

Glenn

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm

--

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

Quoted 6 lines
                                                       FAX 924446

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm

Quoted 4 lines

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm

*** 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

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-