LVM creation SLES 11.1 from command line

Hi All,

I just created a LVM partition using the command line… everything
worked fine. I then rebooted and it disappeared… using SLES 11.1.
Physically the disk is still there, just the symbolic link to the device
was gone etc. etc.

I then created this LVM partition in yast2 and on reboot it worked
fine… it was still there… which part am I missing out of the command
line???

  1. fdisk /dev/sdb create partition choose 8e
  2. pvcreate /dev/sdb1
  3. vgcreate -L 40000M -n varlvm data
  4. mkfs.ext3 /dev/data/varlvm
  5. edit fstab and mount it somewhere… so what does yast2 do
    differently???

I am trying to command line this… instead of using yast for easier
deployment to other offices…

thanks in advance,
kevin


iktinus

iktinus’s Profile: http://forums.novell.com/member.php?userid=15164
View this thread: http://forums.novell.com/showthread.php?t=444211

iktinus;2134552 Wrote:[color=blue]

Hi All,

I just created a LVM partition using the command line… everything
worked fine. I then rebooted and it disappeared… using SLES 11.1.
Physically the disk is still there, just the symbolic link to the device
was gone etc. etc.

I then created this LVM partition in yast2 and on reboot it worked
fine… it was still there… which part am I missing out of the command
line???

  1. fdisk /dev/sdb create partition choose 8e
  2. pvcreate /dev/sdb1
  3. vgcreate -L 40000M -n varlvm data
  4. mkfs.ext3 /dev/data/varlvm
  5. edit fstab and mount it somewhere… so what does yast2 do
    differently???

I am trying to command line this… instead of using yast for easier
deployment to other offices…

thanks in advance,
kevin[/color]

You never create a volume, only a volume group.

See here:
‘How To Create LVM Using pvcreate, vgcreate, lvcreate, and lvextend
Commands « Linux and Windows System Administrators Stuffs’
(http://siva2009.wordpress.com/2010/08/26/how-to-create-lvm-using-pvcreate-vgcreate-lvcreate-and-lvextend-commands/)

‘Redhat-linux: LVM (LOGICAL VOLUME MANAGER)’
(http://www.redhatlinux.info/2010/11/lvm-logical-volume-manager.html)

Thomas


http://thsundel.blogspot.com/

thsundel’s Profile: http://forums.novell.com/member.php?userid=128
View this thread: http://forums.novell.com/showthread.php?t=444211