Confimation of method to create Logical Volumes on large drives

Mansell, Gary Gary.Mansell at ricardo.com
Mon Jan 22 03:16:28 CST 2007


Dear all,

I have been stress testing a couple of Dell PE2950's attached to Dell
MD100 SAS arrays in preparation for putting them out as fileservers. The
machines are running up2date versions of RHEL 4 ES.

I have been stressing and rebooting the machines quite a lot in the
process but today when I rebooted one of them it has come back up and
can't find the logical volumes for the data on the MD1000 SAS array
(although it can find the logical volumes for the system partitions).

The MD1000 partitions and lvm config were setup using the following
procedure:


      * Partition the Storage Device:
        
parted /dev/sdb mklabel gpt

parted /dev/sdb print

parted /dev/sdb mkpart primary ext3 0 <end from above>

parted /dev/sdb set 1 lvm on


      * Create the Logical Volume Configuration

pvcreate /dev/sdb1

vgcreate -s 256m VG_DATA /dev/sdb1

vgchange -a y VG_DATA

vgdisplay

lvcreate -l 2048 VG_DATA -n APPS

lvcreate -l 4096 VG_DATA -n USER

lvcreate -l 8192 VG_DATA -n PROJ


      * Create the filesystems:

mke2fs -j -b 4096 -i 32768 -m 2 -O dir_index /dev/VG_DATA/APPS

mke2fs -j -b 4096 -i 32768 -m 2 -O dir_index /dev/VG_DATA/USER

mke2fs -j -b 4096 -i 32768 -m 2 -O dir_index /dev/VG_DATA/PROJ


      * Turn off filesystem consistency checking at mount time:

tune2fs -i0 -c0 /dev/VG_DATA/APPS

tune2fs -i0 -c0 /dev/VG_DATA/USER

tune2fs -i0 -c0 /dev/VG_DATA/PROJ


      * Label the partitions:

e2label /dev/VG_DATA/APPS APPS

e2label /dev/VG_DATA/APPS USER

e2label /dev/VG_DATA/APPS PROJ


      * Add the following lines in the /etc/fstab file for the new
        filesystems:

LABEL=APPS /usr2/apps ext3 defaults,noatime 1 2

LABEL=USER /usr2/userdata ext3 defaults,noatime 1 2

LABEL=PROJ /usr2/projdata ext3 defaults,noatime 1 2


      * Make the Storage mount points:

mkdir -p /usr2/apps /usr2/projdata /usr2/userdata


      * Mount the filesystems:

mount /usr2/apps /usr2/userdata /usr2/projdata


Is this correct?

Specifically, should I create the gpt partition /dev/sdb1 or should I
have just done a pvcreate of /dev/sdb and not performed the parted
commands?



Any help gladly appreciated

Gary Mansell
-- 

This e-mail and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this e-mail in error please notify the sender immediately
and delete this e-mail from your system.  Please note that any views or opinions
presented in this e-mail are solely those of the author and do not necessarily
represent those of Ricardo (save for reports and other documentation formally
approved and signed for release to the intended recipient).  Only Directors
or Duly Authorised Officers are authorised to enter into legally binding
obligations on behalf of Ricardo unless the obligation is contained within
a Ricardo Purchase Order.

Ricardo may monitor outgoing and incoming e-mails and other telecommunications
on its e-mail and telecommunications systems.  By replying to this e-mail you
give consent to such monitoring.  The recipient should check this e-mail and
any attachments for the presence of viruses.  Ricardo accepts no liability for
any damage caused by any virus transmitted by this e-mail.  "Ricardo" means
Ricardo plc and its subsidiary companies.

Ricardo plc is a public limited company registered in England with registered
number 00222915.
The registered office of Ricardo plc is Shoreham Technical Centre, Shoreham-by Sea,
West Sussex, BN43 5FG.
 



More information about the Linux-PowerEdge mailing list