Thank you Mark!

Now I have been able to migrate the LVM-disk! The trick was to skip the 
Yast and do a manually "vgchange -a y".

So this is how I did  a succesfull migrate of a LVM-disk from SLES8 to 
SLES10 
 
In SLES8 I have created three disks. I used the -ff option as they were 
created before in my test:

pvcreate -ff /dev/dasd/0154/part1 /dev/dasd/0155/part1 
/dev/dasd/0156/part1
I created the VolumeGroup vgnew1:
vgcreate vgnew1 /dev/dasd/0154/part1 /dev/dasd/0155/part1 
/dev/dasd/0156/part1
Use the vgdisplay so see the result 
Use the lvcreate to create the logical volumes, in this sample there is 
three disk (-i 3) and the size is 60M:
lvcreate -i 3 -I 8 -L 60M -n data1 vgnew1
Use lvscan to have a look
mke2fs -b 4096 /dev/vgnew1/data1
mount /dev/vgnew1/data1 /slask2
mount -l                - shows that the type is ext2

umount /slask2
Deactivate the vgnew1
vgchange -an vgnew1
vgexport vgnew1

Now shutdown the SLES8 and start the SLES10....

cslinux03:~ # lvscan
  Volume group "test" is exported
  Volume group "vgnew1" is exported
cslinux03:~ # pvscan
  PV /dev/dasdl1   VG test     lvm2 [24.00 MB / 8.00 MB free]
  PV /dev/dasdm1   VG test     lvm2 [24.00 MB / 24.00 MB free]
  PV /dev/dasdn1   VG test     lvm2 [24.00 MB / 24.00 MB free]
  PV /dev/dasdi1    is in exported VG vgnew1 [20.00 MB / 0    free]
  PV /dev/dasdj1    is in exported VG vgnew1 [20.00 MB / 0    free]
  PV /dev/dasdk1    is in exported VG vgnew1 [20.00 MB / 0    free]
  Total: 6 [132.00 MB] / in use: 6 [132.00 MB] / in no VG: 0 [0   ]



cslinux03:~ # vgscan
  Reading all physical volumes.  This may take a while...
  Found exported volume group "test" using metadata type lvm2
  Found exported volume group "vgnew1" using metadata type lvm1
cslinux03:~ #


cslinux03:~ # vgimport vgnew1
  Volume group "vgnew1" successfully imported
cslinux03:~ #

cslinux03:~ # vgchange -a y
  Volume group "test" is exported
  1 logical volume(s) in volume group "vgnew1" now active
cslinux03:~ #

cslinux03:~ # dir /dev/vgnew1/data1
lrwxrwxrwx 1 root root 24 Sep 13 10:26 /dev/vgnew1/data1 -> 
/dev/mapper/vgnew1-data1


cslinux03:~ # mount /dev/vgnew1/data1 /slask2

cslinux03:~ # mount -l
/dev/dasda1 on / type reiserfs (rw,acl,user_xattr) []
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
debugfs on /sys/kernel/debug type debugfs (rw)
udev on /dev type tmpfs (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
/dev/dasdd1 on /opt type reiserfs (rw,acl,user_xattr) []
/dev/dasdc1 on /tmp type reiserfs (rw,acl,user_xattr) []
/dev/dasde1 on /usr type reiserfs (rw,acl,user_xattr) []
/dev/mapper/vgnew1-data1 on /slask2 type ext2 (rw) []






Med Vänlig Hälsning / Best Regards

Bertil Starck
Handelsbanken
CDTI-O
tel: +46 8 701 22 51
e-mail: [EMAIL PROTECTED]

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to