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

Re: vgchange hack needs correction



John wrote:
> On a new laptop (TP T520) running sid, the external hard drive I
> use for backup is not found at startup.

Not found means so many different things.  Is this an external USB
disk?  An external eSATA disk?  Other?

> vgscan finds it, vgchange -a y makes it active, and mount -a mounts
> the various partitions.  But all that needs to be repeated at the
> next boot, even though /etc/init.d/lvm2 exists and the links to it
> seem to be right.

I have seen USB disks that needed a *long* time to settle.  It could
be that your machine is booting too fast and doesn't have time for an
external USB disk to settle.  Later when you look at it time has
passed and then it is okay.  You didn't say and so I can only guess
that is your problem.

I have never had any issues with external eSATA disks in enclosures
*without* additional electronics.  Using eSATA without any additional
electronics makes it effectively the same as an internally mounted
disk.

> I've put the last two commands in rc.local, and that works.
> There has got to be a better way, right?

I don't know how to best handle the problem.  I have not had to deal
with such a problem yet.  Your solution doesn't seem terrible to me.
But putting a sleep in the early part of the boot process may enable
the standard scripts to work okay.

Bob

Attachment: signature.asc
Description: Digital signature


Reply to: