Automatic LVM Names Include Hyphens

I am trying to setup an Ubuntu server and have been running into trouble with the automatic LVM naming including a hyphen. IE HomeServer-vg.

I have gotten errors when partitioning in webmin and have seen the volume group written with two hyphens instead of one(HomeServer--vg) but haven't figured out the proper way to deal with it. I finally reinstalled the server from the beginning and followed some instructions to rename the volume group and took out the hyphen. No more errors in webmin, but I have to assume I am missing a normal bit of knowledge that everyone knows about this. I just installed a virtual machine and it created a volume group name with a hyphen also.

So, what am I missing?


Similar Content



Creating A Large Tar Ile Form A Sequence Of Small Tar Files And One Files Is Missing

I am trying to put back together a big atr file from some smaller tar files that I created several years ago. The issue is that in order to tar this large file, I must put each file back using the command

tar -xMf cd-1.tar
Prepare volume #2 for 'cd-1.tar' and hit return:n cd-2.tar
Prepare volume #3 for 'cd-2.tar' and hit return:n cd-3.tar
and so forth.

I have fourteen files cd-1.tar through cd-15.tar. The cd-9.tar files is missing and I assume that it is gone. Now when I type the commands in I get the following:

Code:
-linux tarfile]$ tar -xMf cd-1.tar
Prepare volume #2 for `cd-1.tar' and hit return: n cd-2.tar
Prepare volume #3 for `cd-2.tar' and hit return: n cd-3.tar
Prepare volume #4 for `cd-3.tar' and hit return: n cd-4.tar
Prepare volume #5 for `cd-4.tar' and hit return: n cd-5.tar
Prepare volume #6 for `cd-5.tar' and hit return: n cd-6.tar
Prepare volume #7 for `cd-6.tar' and hit return: n cd-7.tar
Prepare volume #8 for `cd-7.tar' and hit return: n cd-8.tar
Prepare volume #9 for `cd-8.tar' and hit return: n cd-10.tar
tar: This volume is out of sequence (10755138772 - 4889670868 != 6598651392)
Prepare volume #9 for `cd-10.tar' and hit return: n cd-10.tar
tar: This volume is out of sequence (10755138772 - 4889670868 != 6598651392)
Prepare volume #9 for `cd-10.tar' and hit return: 
tar: This volume is out of sequence (10755138772 - 4889670868 != 6598651392)

As you can see I do not have cd-9.tar. That stops the untarring cold. However, I have cd-10.tar,cd-11.tar,cd-12.tar,cd-13.tar,cd-14.tar,cd-15.tar. Now I may have these files, but they cannot be put back in the main file because cd-9.tar is missing and everything must be put in sequentially.

Is there a way to complete this sequence of steps and add all fourteen files to the files bigbackup leaving out cd-9.tar? That means that the bigbackup file will be incomplete, but that is better than no file or having bigbackup missing six files on the back end.

Any help appreciated.

Thanks in advance.

Respectfully,


Newport_j

Webmin Group Through Command Line

hello all,
i am using linux Centos 6. i am not familiar with webmin.. and dont want to create 'webmin group' manually.
So.., is it possible to create 'webmin group' automatically... i.e from the command line?? what are the commands for that?

Thanks..

New To LVM, How To Bridge Between /dev/sd* And /dev/mapper/vol Group/log Vol?

So LVM has taken me by surprise, especially working with all of these virtual servers.

I have Linux servers in VMWare, and I know how to grow hard disks there and how they are tied back to /dev/sd*, however what I'm not sure about is how do I know what Volume Group and Logical Volume they are tied too?

If I isssue df -ha I can see where the various partitions are tied to /dev/mapper/Vol Group/Logical Vol

and I issue fdisk -l and I can see the space and what is tied to /dev/sd*, however how do I tie to two together so I know who has what space and how to grow or shrink that space?

I found an older thread he

http://www.linuxquestions.org/questi...ds-for-699073/

However I still don't understand how to bridge between the two.

thanks

Vgchange -an Command Fail To Work To Inactive VG || Umount Logical Volume Succesfull

Hi All,

umounted all logical volume of tomcatvg successfully.But when tried to deactive Volume group using vgchange command show logical volume are in active state .Need help how to force de-active Volume group .


Actioned perfomed
================
vgchange -an tomcatvg


[root@porsche ~]# vgs
VG #PV #LV #SN Attr VSize VFree
tomcatvg 1 10 0 wz--n- 95.38g 8.88g


[root@porsche ~]# cat /etc/fstab | grep -i fs_opt_tomcat
/dev/tomcatvg/fs_opt_tomcat /opt/tomcat ext4 defaults 1 2
[root@porsche ~]#

fuser -km /opt/tomcat
umount /opt/tomcat

Still I could find logical volume in active state

[root@porsche ~]# lvs | grep -i appvg
fs_opt_tomcat tomcatvg -wi-ao---- 5.00g

Regards
Arun

Are Logical Volumes In LVM Separte From Each Other, Like A Partition?

Even though they are on the same Volume Group?

I'm still having a hard time understanding this.

Let's say for example, that I have the following:

Code:
# df -ha

VolGroup00/LogVol2     /tmp

VolGroup00/LogVol5     /opt

VolGroup00/LogVol3     /var

I have three different Logical Volumes where /tmp, /opt and /var live. Are these separate like a partition that one would place on a physical disk?

Keep in mind that they all are on the same Volume Group as well?

Best Way To Manage Users And Accounts Etc

hi guys,

busy doing a small project with a centos7 server and virtualbox.
currently i have a login to the physical server called sninja

i have three partitions created for each of my virtual machines
sninja owns the directories for each vm...and root is the primary group...now lets say i wanted to have other users perform functions on my vm's ..ssh in,rsync data into the vm etc...

whats the best way to address security and user accounts etc?

what i was thinking:

create a group called Myusers1,then assign the users to that group and then make the group the primary group of the accessed directories etc

is this the right way to go about it? any ideas or help really appreciated...

LVM / Device Mapper

Hello,
We have been having a nightmare of a time with a crash on one of our file shares.

We finally were able to recover the logical volume group and get the path to return. However it appears its mapping is off.

dmsetup status
vg_flood-sff_sha
vg_os-lv_tmp: 0 10485760 linear
vg_os-lv_usr: 0 20971520 linear
vg_os-lv_var: 0 10485760 linear
vg_os-lv_opt: 0 41943040 linear
vg_os-lv_swap: 0 16777216 linear
vg_os-lv_root: 0 10485760 linear


dm6 I would guess is where /dev/mapper/vg_flood-sff_share needs to be mapped to, as it is the only one without mapping. As you can see dmsetup also shows this logical volume as different than the rest.

I am trying to figure out how to fix the mapping for this so that I can activate the logical volume and get our data back.

Duplicate VG Names And Missing Devices

This has to deal with ubuntu server, but I'm a Linux newbie. Basically talk to me like I'm an 8 year old.

I have a home linux server running Ubuntu server 14.04.2. A few months ago I ran into some trouble with it and long story short only one of the original drives remains and there are two new ones. I'm having a hard time accessing and mounting the logical volumes on the original drive. I'm having issues with the fact that have have volume groups with the same name, as well as missing devices.

Code:
mike@server:~$ lsblk
NAME                             MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda                                8:0    0   1.8T  0 disk
└─sda3                             8:3    0   1.8T  0 part
sdb                                8:16   0 111.8G  0 disk
├─sdb1                             8:17   0   243M  0 part /boot
├─sdb2                             8:18   0     1K  0 part
└─sdb5                             8:21   0 111.6G  0 part
  ├─server--vg-root (dm-2)       252:2    0  43.4G  0 lvm  /
  └─server--vg-swap_1 (dm-3)     252:3    0   3.2G  0 lvm  [SWAP]
sdc                                8:32   0   1.8T  0 disk
├─server--vg-PrivateMedia (dm-0) 252:0    0  1000G  0 lvm
└─server--vg-PublicMedia (dm-1)  252:1    0   750G  0 lvm

The current boot drive is a 120gb ssd, sdb. sda is a blank 2TB drive that I plan on allocating as necessary to logical volumes. sdc is the has the logical volumes I would like to access.

Code:
mike@server:~$ sudo pvdisplay
  WARNING: Duplicate VG name server-vg: Existing 7MjKjV-5R7c-Qnj1-f3Wh-FR3h-lbom-H4ZEMt (created here) takes precedence over pyCHBp-1KjX-FdhK-hT1V-15uP-7GDn-A1hSRj
  Couldn't find device with uuid QJxFW4-777H-shDs-C2QH-1gWo-Pb0d-56BLPs.
  Couldn't find device with uuid LxIoum-Zjvg-WZ4i-vO8c-ib4O-ldwI-G82TsZ.
  WARNING: Duplicate VG name server-vg: Existing 7MjKjV-5R7c-Qnj1-f3Wh-FR3h-lbom-H4ZEMt (created here) takes precedence over pyCHBp-1KjX-FdhK-hT1V-15uP-7GDn-A1hSRj
  --- Physical volume ---
  PV Name               unknown device
  VG Name               server-vg
  PV Size               465.02 GiB / not usable 2.00 MiB
  Allocatable           yes
  PE Size               4.00 MiB
  Total PE              119045
  Free PE               119045
  Allocated PE          0
  PV UUID               QJxFW4-777H-shDs-C2QH-1gWo-Pb0d-56BLPs

  --- Physical volume ---
  PV Name               /dev/sdc
  VG Name               server-vg
  PV Size               1.82 TiB / not usable 1.09 MiB
  Allocatable           yes
  PE Size               4.00 MiB
  Total PE              476932
  Free PE               28932
  Allocated PE          448000
  PV UUID               t1291H-bZqa-8ksX-qYDg-Jix6-CmC3-tVR0qX

  --- Physical volume ---
  PV Name               unknown device
  VG Name               server-vg
  PV Size               465.02 GiB / not usable 2.00 MiB
  Allocatable           yes
  PE Size               4.00 MiB
  Total PE              119045
  Free PE               119045
  Allocated PE          0
  PV UUID               QJxFW4-777H-shDs-C2QH-1gWo-Pb0d-56BLPs

  --- Physical volume ---
  PV Name               /dev/sdb5
  VG Name               server-vg
  PV Size               111.55 GiB / not usable 4.00 MiB
  Allocatable           yes
  PE Size               4.00 MiB
  Total PE              28556
  Free PE               16636
  Allocated PE          11920
  PV UUID               ad5UcZ-E7s6-SPg5-RUqL-qitV-qJ5t-XHFr0Q

I've tried vgrename and vgreduce to no avail. I'm not really sure what else I can do. Any help would be greatly appreciated.

Installing CentOS 6.5 To Multiple VHDX's On Hyper-V 2012. Is It Possible?

Hello all

I am trying to create a Hyper-V 2012 Virtual machine running Cent0S 6.5 for a client. Currently I have the VM set up with two SCSI disks one of size 25GB and one of size 60 GB.. The 25 GB disk will be the OS disk and the 60 GB disk will be the data disk which holds the data from the database. I want to create an LVM on the 60 GB disk and increase it over time as the database gets bigger. As soon as the disk gets to about 1 TB, I will create a third disk, and extend the Volume Group to include that third disk as well. The third disk will eventually grow past 1TB as well (but not 2TB)

Overall my question is, would this type of set up be possibly using a MBR Bios set up? or would I HAVE To use GPT?

all help is greatly appreciated!

Groups Question

So, I have created a group and added myself to it.

When I open /etc/group I can see the group and it shows that I am a member, but when I run $ groups - it doesn't show the new group in the list. What could be the issue?