[root@inf1basevm01 ~]# fdisk -lu /dev/VmImage/globe1
Disk /dev/VmImage/globe1: 26.8 GB, 26843545600 bytes
255 heads, 63 sectors/track, 3263 cylinders, total 52428800 sectors
Units = sectors of 1 * 512 = 512 bytes
Device Boot Start End Blocks Id System
/dev/VmImage/globe1p1 * 63 208844 104391 83 Linux
/dev/VmImage/globe1p2 208845 52420094 26105625 8e Linux LVM
[root@inf1basevm01 ~]# kpartx -av /dev/VmImage/globe1
add map globe1p1 : 0 208782 linear /dev/VmImage/globe1 63
add map globe1p2 : 0 52211250 linear /dev/VmImage/globe1 208845
[root@inf1basevm01 ~]# vgscan
Reading all physical volumes. This may take a while...
Found volume group "VolGroup00" using metadata type lvm2
Found volume group "VmImage" using metadata type lvm2
Found volume group "system" using metadata type lvm2
[root@inf1basevm01 ~]# vgchange -ay VolGroup00
2 logical volume(s) in volume group "VolGroup00" now active
[root@inf1basevm01 ~]# lvs
LogVol00 VolGroup00 -wi-a- 22.94G
LogVol01 VolGroup00 -wi-a- 1.94G
[root@inf1basevm01 mnt]# mount /dev/VolGroup00/LogVol01 /mnt
/dev/VolGroup00/LogVol01 looks like swapspace - not mounted
mount: you must specify the filesystem type
[root@inf1basevm01 mnt]# mount /dev/VolGroup00/LogVol00 /mnt
[root@inf1basevm01 mnt]# cd /mnt/
[root@inf1basevm01 mnt]# ls
app dev lib media net proc selinux tmp var
bin etc lib64 misc opt root srv u01
boot home lost+found mnt poweroff sbin sys usr
#######################################################################################
cd /var/lib/xen/images/
umount /mnt/sandbox/
lomount -diskimage B1web1.img -partition 1 /mnt/sandbox
vi /mnt/sandbox/grub/grub.conf
umount /mnt/sandbox/
Tuesday, April 26, 2011
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment