Re: [gentoo-user] Partitioning and LVM problem (partially solved)

2006-08-30 Thread Stephen Liu
Hi Richard,

 On 8/29/06, Stephen Liu [EMAIL PROTECTED] wrote:
/dev/hda4: No label detected
 
 Did you do pvcreate /dev/hda4?

At that time, NO.  Later I did, having completed vgcreate, lvcreated,
mkdir, mounting, etc.  All went through w/o problem.  Problem came
after chroot.  I'll post another topic.  Tks.

B.R.
SL
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Partitioning and LVM problem (partially solved)

2006-08-29 Thread Stephen Liu
Hi folks,

I found out the trick.

On /etc/lvm/lvm.conf the line;
filter = [ a/.*/ ]

should be replaced with;
filter = [ a|/dev/hda4]|, r/.*/ ]
(in my case)

Previously I made the line as;
filter = [ a|/dev/hda]|, r/.*/ ]


Now
# vgscan
Reading all physical volumes.  This may take a while...
No volume groups found


# vgchange -a y
No volume groups found

I don't know whether this is a mistake.  Because according to;
Gentoo LVM2 installation
http://www.gentoo.org/doc/en/lvm2.xml

It should be no printout.

Tks

B.R.
SL



--- Stephen Liu [EMAIL PROTECTED] wrote:

 Hi folks,
 
 I have following partitions on the HD
 
 # fdisk -l
 /dev/hda1 * 83 System (for /boot)
 /dev/hda2 5 Extended (as swap)
 /dev/hda3   83 Linux (for /root)
 /dev/hda4   8e Linux LVM (for /home /usr /var /opt /tmp)
 
 
 Encountered following problems;
 
 1)
 # vgscan
 Reading all physical volumes.  This may take a while
 Incorrect metadata area header checksum
 
 2)
 # vgchange -a y
 Incorrect metadata area header checksum
 
 Please advise how to rectify these problems.  TIA
 
 B.R.
 SL
 -- 
 gentoo-user@gentoo.org mailing list
 
 

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Partitioning and LVM problem (partially solved)

2006-08-29 Thread Richard Fish

On 8/29/06, Stephen Liu [EMAIL PROTECTED] wrote:

But printout still there.  I tried it twice erasing the HD completely.


Can you post the output of 'grep -v -e ^ *# -e ^ *$
/etc/lvm/lvm.conf'.  Also you might try taking a look at the output of
pvscan -vv, and make sure that hda4 shows up.

-Richard
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Partitioning and LVM problem (partially solved)

2006-08-29 Thread Stephen Liu
Hi Richard,

New partitions

# fdisk -l
/dev/hda1 *  83 Linux
/dev/hda283 Linux
/dev/hda382 Linux Swap/Solaris
/dev/hda48e Linux LVM
* end *


 Can you post the output of 'grep -v -e ^ *# -e ^ *$
 /etc/lvm/lvm.conf'. 

devices {
dir = /dev
scan = [ /dev ]
filter =  [ a|/dev/hda4|, r/.*/ ]
cache = /etc/lvm/.cache
write_cache_state = 1
sysfs_scan = 1  
md_component_detection = 1
}
log {
verbose = 0
syslog = 1
overwrite = 0
level = 0
indent = 1
command_names = 0
prefix =   
}
backup {
backup = 1
backup_dir = /etc/lvm/backup
archive = 1
archive_dir = /etc/lvm/archive
retain_min = 10
retain_days = 30
}
shell {
history_size = 100
}
global {
umask = 077
test = 0
activation = 1
proc = /proc
locking_type = 1
locking_dir = /var/lock/lvm
}
activation {
missing_stripe_filler = /dev/ioerror
mirror_region_size = 512
reserved_stack = 256
reserved_memory = 8192
process_priority = -18
}
* end *


 Also you might try taking a look at the output of
 pvscan -vv, and make sure that hda4 shows up.

  Setting global/locking_type to 1
  Setting global/locking_dir to /var/lock/lvm
  File-based locking enabled.
Wiping cache of LVM-capable devices
Wiping internal VG cache
Walking through all physical volumes
  /dev/hda4: size is 73170720 sectors
  /dev/hda4: size is 73170720 sectors (repeated here)
  /dev/hda4: No label detected
  No matching physical volumes found
* end *


B.R.
SL
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Partitioning and LVM problem (partially solved)

2006-08-29 Thread Richard Fish

On 8/29/06, Stephen Liu [EMAIL PROTECTED] wrote:

  /dev/hda4: No label detected


Did you do pvcreate /dev/hda4?

-Richard
--
gentoo-user@gentoo.org mailing list