I have a system running:
that has already some file systems created:
And there is a need to add one more file system of 500Gb, in which the storage admin has already provided me with.
But I see that the other file systems have their volume group with some nomenclature that I am not aware of it, in term of skills, like: /dev/mapper/vg, but as far as I know to create a new file system I just have to fdisk -l the required LUN, them choose 8e as the partition type, them pvcreate, vgcreate and lastly lvcreate.
But I am not sure this is the correct procedure, because the other file systems present on the system have this /dev/mapper.
Please correct me if I am wrong with my procedure
I have a system running:
that has already some file systems created:
And there is a need to add one more file system of 500Gb, in which the storage admin has already provided me with.
But I see that the other file systems have their volume group with some nomenclature that I am not aware of it, in term of skills, like: /dev/mapper/vg, but as far as I know to create a new file system I just have to fdisk -l the required LUN, them choose 8e as the partition type, them pvcreate, vgcreate and lastly lvcreate.
But I am not sure this is the correct procedure, because the other file systems present on the system have this /dev/mapper.
Please correct me if I am wrong with my procedure
It is OK, that's the virtual interface that it is created when you use LVM. When you create a new logical volume these links are created by the kernel based framework device mapper; mapping target devices with its virtual layer table.
For example: vg_outsystemdb is the name that the administrator chose when creating the volume group, using vgcreate vg_outsystemdb /dev/sd{a,b,...}
It can be any descriptive name, nothing especial. lv_home is the name when the lv was created using lvcreate -L198G -n lv_home vg_outsystemdb
The -n is for name and it can be any descriptive name, followed by the volume group label.
Now, if you have some block storage of 500G, you can continue the scheme that appears in the df -h output, i.e.
You can create another volume as
and
That will show as /dev/mapper/vg02-lvol1 in your system
Or you can add that block storage to the current group volume
Other then stuff mentioned here i would like to make a general recommendation regarding disk devices in Linux.
If you present a disk for instance /dev/xxx, create a primary partition /dev/sda1 which you will use in your volume groups / filesystems / ASM and label it like that (LVM label or other) during fdisk operation.
Why partition ?
Initial sectors are for OS information.
Easier to see and correct possible errors which are out of LVM/ASM/filesystem scope.
Disks partitioned are quite obviously used for some service (LVM, ASM etc.), while non-partitioned are not, reducing possible risk of error during administrative work.
Using full devices will work as well on Linux systems, but due to reasons above i would suggest making one primary partition if you intend to use entire disk space.
As for multipath, use /dev/mapper when creating volume groups and such.
Also using sane names for storage luns in /etc/multipath.conf helps e.g /dev/mapper/databaselun looks much more human then /dev/mapper/mpathXY
1st step:
2nd step:
3rd step:
I am now stuck, because there other file systems on this system with other partitions, so I dont know what number to choose.
Hello,
I am trying to setup a storage server with salvaged equipments:
QSSC-S4R server, with QLogic 2562 FC HBA's
Clariion KTN-STL4 4GB FC Enclosures
Disks Salvaged from EMC Vmax
Disks are 520B sector size so i converted to 512B in linux environment and create multipath successfully. But... (4 Replies)
Hi,
I have below code for disk creation
disk_list=$(ls /dev/sd)
for disk in $disk_list
do
pvcreate $i
done
So what my understanding is first it is checking the disk under /dev sdb,sdc,sdd,...sdz whether 25 disk are existing
if not then its creating the 25 physical volume.
I... (4 Replies)
Hi,
I have a server booted into sysresccd (mini-linux OS) with 1 40 GB disk attached
I am trying to create a volume group and restore another server into the new one
However, when I try to create a partition for /boot it seems that my VG in LVM is not recognized anymore
These are the... (2 Replies)
I created a new filesystem using dd and mounted:
I have a filesystem /FAW with 1Terra space
/dev/sdb1 1151331444 24742604 1068104612 3% /FAW
Steps I followed to create a new filesystem
# dd if=/dev/zero of=/FAW/vms/linux_vm/disk2.img bs=1 count=1024 seek=500G
# mke2fs... (10 Replies)
Hi,
I'm new to HP-UX.
I have LVM on /var with 92Gig. I would like to reduce it to create another LVM for Oracle client with 800 meg or so. How to do it. I'm running 11.iv3
Thanks (4 Replies)
Hey peeps,
Here is somethin u might find interestin....
Is it possible to recover data from a partition which used to be an ext3 file sytem with some nice forgotten backups, which now is an lvm partion containg root partition of another OS. :)
I couldn't create any mess better than this, can... (2 Replies)
What is the correct mkfs syntax to create mirrored disk files systems? I need to make the file system 20gb. For example:
machine# mkfs -F ufs /dev/md/dsk/d40
size not specified
ufs usage: mkfs special size(sectors) \
-m : dump fs cmd line used to make this partition
-V : print this... (4 Replies)
Hi,
How do you actually create a unique ID on a distributed system. I looked at gethostid but the man page says that its not guaranteed to be unique. Also using the IP address does not seem to be a feasible solution. Is there a function call or mechanism by which this is possible when even the... (4 Replies)
I am trying to think of a way to create user ids on multiple Linux systems in one fell swoop without logging onto each system indivually. Is there a way to do this with ssh commands? I don't want to use NIS/LDAP solution just a simple shell script utilitarian methodoloy would suffice. Also, I am... (1 Reply)