1827801 Members
2283 Online
109969 Solutions
New Discussion

sles10 sp2, lvm issue

 
Marko Sulentic
Occasional Contributor

sles10 sp2, lvm issue

hello

i have created 2 disks on storage and disks are visible from os (sles 10 sp2 x86_64)

2 VG are created and one LV on each VG, filesystems are created and mounted. Files are
created to be sure is filesystem correct.
After reboot filesystems are switched but alllook normal (VG and LV)

xi2clu:/dev/disk/by-name # pvdisplay /dev/mapper/mpathc-part1
No physical volume label read from /dev/mapper/mpathc-part1
Failed to read physical volume "/dev/mapper/mpathc-part1"
xi2clu:/dev/disk/by-name # pvcreate /dev/mapper/mpathc-part1
Physical volume "/dev/mapper/mpathc-part1" successfully created
xi2clu:/dev/disk/by-name # vgcreate xisapappl /dev/mapper/mpathc-part1
Volume group "xisapappl" successfully created
xi2clu:/dev/disk/by-name # vgdisplay
--- Volume group ---
VG Name xioracle
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 1
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 63.99 GB
PE Size 4.00 MB
Total PE 16382
Alloc PE / Size 0 / 0
Free PE / Size 16382 / 63.99 GB
VG UUID ZiXnSW-sPq7-iWAa-obte-0tf3-Mu6R-7Kaxpp

--- Volume group ---
VG Name xisapappl
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 1
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 63.99 GB
PE Size 4.00 MB
Total PE 16382
Alloc PE / Size 0 / 0
Free PE / Size 16382 / 63.99 GB
VG UUID Zlc0Iy-h1Bc-63KG-DlhP-7lrT-KJg2-13nVdw

xi2clu:/dev/disk/by-name # lvcreate -l 100%VG -n xioraclelv xioracle
Logical volume "xioraclelv" created
xi2clu:/dev/disk/by-name # lvcreate -l 100%VG -n xisapappllv xisapappl
Logical volume "xisapappllv" created
xi2clu:/dev/disk/by-name # mkfs.ext3 /dev/xioracle/xioraclelv
mke2fs 1.38 (30-Jun-2005)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
8388608 inodes, 16775168 blocks
838758 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
512 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424

Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 21 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
xi2clu:/dev/disk/by-name # mkfs.ext3 /dev/xisapappl/xisapappllv
mke2fs 1.38 (30-Jun-2005)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
8388608 inodes, 16775168 blocks
838758 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
512 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424

Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 32 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
xi2clu:/dev/disk/by-name # mount -t ext3 -o rw /dev/xioracle/xioraclelv /appl/xioracle
xi2clu:/dev/disk/by-name # mount -t ext3 -o rw /dev/xisapappl/xisapappllv /appl/xisapappl
xi2clu:/dev/disk/by-name # cd /appl
xi2clu:/appl # cd xioracle
xi2clu:/appl/xioracle # ll
total 16
drwx------ 2 root root 16384 Sep 22 13:56 lost+found
xi2clu:/appl/xioracle # touch xioraclefs
xi2clu:/appl/xioracle # ll
total 16
drwx------ 2 root root 16384 Sep 22 13:56 lost+found
-rw-r--r-- 1 root root 0 Sep 22 13:57 xioraclefs
xi2clu:/appl/xioracle # cd ..
xi2clu:/appl # cd xisapappl
xi2clu:/appl/xisapappl # ll
total 16
drwx------ 2 root root 16384 Sep 22 13:56 lost+found
xi2clu:/appl/xisapappl # touch xisapapplfs
xi2clu:/appl/xisapappl # ll
total 16
drwx------ 2 root root 16384 Sep 22 13:56 lost+found
-rw-r--r-- 1 root root 0 Sep 22 13:58 xisapapplfs
xi2clu:/appl/xisapappl # cd
xi2clu:~ # reboot

Broadcast message from root (pts/1) (Tue Sep 22 13:58:10 2009):

The system is going down for reboot NOW!
xi2clu:~ #
Last login: Tue Sep 22 13:47:35 2009 from infsysadm03.se.getro.net
xi2clu:~ # vgdisplay -v xioracle
Using volume group(s) on command line
Finding volume group "xioracle"
--- Volume group ---
VG Name xioracle
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 2
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 63.99 GB
PE Size 4.00 MB
Total PE 16382
Alloc PE / Size 16382 / 63.99 GB
Free PE / Size 0 / 0
VG UUID ZiXnSW-sPq7-iWAa-obte-0tf3-Mu6R-7Kaxpp

--- Logical volume ---
LV Name /dev/xioracle/xioraclelv
VG Name xioracle
LV UUID 60yQHt-sH1K-oNk1-tWVx-sDUL-fDSz-TUP0Tk
LV Write Access read/write
LV Status available
# open 0
LV Size 63.99 GB
Current LE 16382
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:24

--- Physical volumes ---
PV Name /dev/dm-21
PV UUID CJW0tj-11gU-lyDk-40j5-ghh6-0t1n-fkOwYF
PV Status allocatable
Total PE / Free PE 16382 / 0

xi2clu:~ # vgdisplay -v xisapappl
Using volume group(s) on command line
Finding volume group "xisapappl"
--- Volume group ---
VG Name xisapappl
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 2
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 63.99 GB
PE Size 4.00 MB
Total PE 16382
Alloc PE / Size 16382 / 63.99 GB
Free PE / Size 0 / 0
VG UUID Zlc0Iy-h1Bc-63KG-DlhP-7lrT-KJg2-13nVdw

--- Logical volume ---
LV Name /dev/xisapappl/xisapappllv
VG Name xisapappl
LV UUID M1tu0K-FTlI-rnqF-okvb-H5iy-ouwN-EwseAc
LV Write Access read/write
LV Status available
# open 0
LV Size 63.99 GB
Current LE 16382
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:23

--- Physical volumes ---
PV Name /dev/dm-20
PV UUID FpSldD-wl4F-8C1M-tbPM-1Bfs-IyJi-dnlbuj
PV Status allocatable
Total PE / Free PE 16382 / 0

xi2clu:~ # vgchange -a y xioracle
1 logical volume(s) in volume group "xioracle" now active
xi2clu:~ # vgchange -a y xisapappl
1 logical volume(s) in volume group "xisapappl" now active
xi2clu:~ # mount -t ext3 -o rw /dev/xisapappl/xisapappllv /appl/xisapappl
xi2clu:~ # mount -t ext3 -o rw /dev/xioracle/xioraclelv /appl/xioracle
xi2clu:~ # cd /appl
xi2clu:/appl # ll xioracle
total 16
drwx------ 2 root root 16384 Sep 22 13:56 lost+found
-rw-r--r-- 1 root root 0 Sep 22 13:58 xisapapplfs
xi2clu:/appl # ll xisapappl
total 16
drwx------ 2 root root 16384 Sep 22 13:56 lost+found
-rw-r--r-- 1 root root 0 Sep 22 13:57 xioraclefs
xi2clu:/appl # df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/system-rootlv
2.0G 428M 1.5G 23% /
udev 95G 1.2M 95G 1% /dev
/dev/mapper/system-appllv
63G 181M 60G 1% /appl
/dev/cciss/c0d0p1 1012M 54M 907M 6% /boot
/dev/mapper/system-homelv
7.9G 1.6G 6.0G 21% /home
/dev/mapper/system-optlv
6.0G 957M 4.7G 17% /opt
/dev/mapper/system-tmplv
7.9G 154M 7.4G 3% /tmp
/dev/mapper/system-usrlv
12G 2.5G 8.8G 22% /usr
/dev/mapper/system-varlv
6.0G 308M 5.4G 6% /var
/dev/mapper/system-vartmplv
2.0G 68M 1.9G 4% /var/tmp
/dev/mapper/xisapappl-xisapappllv
63G 180M 60G 1% /appl/xisapappl
/dev/mapper/xioracle-xioraclelv
63G 180M 60G 1% /appl/xioracle