LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 01-22-2009, 03:55 AM   #1
ytd
Member
 
Registered: Jan 2009
Posts: 189

Rep: Reputation: 31
What is /dev/mapper/VolGroup00-LogVol00 and what does it stands for ?


[root@abc ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
130G 5.5G 118G 5% /
/dev/sda1 99M 13M 82M 14% /boot
tmpfs 2.0G 0 2.0G 0% /dev/shm
[root@abc ~]#

What is /dev/mapper/VolGroup00-LogVol00 and what does it stands for ?
I alocated some space (100GB) from a storage for my abc server and now i need to see it (the 100GB space) so i can format the space so it can be available. The 100GB space i have alocated from a storage server, it's for backups.

I've read this: http://en.wikipedia.org/wiki/Logical_volume_management
and this:
http://docs.fedoraproject.org/fedora...ioning-general

5.1.2. Understanding LVM

I still don't undertand how would i know if /dev/mapper/VolGroup00-LogVol00 is the VLM of the existing hdd of abc server or if it is the 100GB i have alocated from the storage server.

Now i don't know if /dev/mapper/VolGroup00-LogVol00 it's a generic linux name for hdd or if it came up cause i have alocated 100GB from the storage.

Point is, if it is the 100GB space *(unalocated) i want to alocate them, how do i do that ? I need to know these commands anyway.

Last edited by ytd; 01-22-2009 at 04:13 AM.
 
Old 01-22-2009, 04:13 AM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
It is an LVM logical volume
lvdisplay to see logival volumes
vgdisplay to see volume groups
pvdisplay to see physical volumes

Basically, pv are 'real' partition, grouped in vg and lv are 'virtual' partitions taken from vg space

Last edited by Agrouf; 01-22-2009 at 04:15 AM.
 
Old 01-22-2009, 04:25 AM   #3
ytd
Member
 
Registered: Jan 2009
Posts: 189

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by Agrouf View Post
It is an LVM logical volume
lvdisplay to see logival volumes
vgdisplay to see volume groups
pvdisplay to see physical volumes

Basically, pv are 'real' partition, grouped in vg and lv are 'virtual' partitions taken from vg space
Well, yeah... i get you... but still i don't know if that /dev/mapper/VolGroup00-LogVol00 is the space that i've allocated from the storage (for backups) or if it's the generic lvm from the local hdd server (abc).

Please explaing me as if i were a noob, so i can understand better.
 
Old 01-22-2009, 04:31 AM   #4
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
please post the output of lvdisplay, vgdisplay and pvdisplay
 
Old 01-22-2009, 04:42 AM   #5
ytd
Member
 
Registered: Jan 2009
Posts: 189

Original Poster
Rep: Reputation: 31
here man, there you go :

[root@abc ~]# lvdisplay
/dev/hda: open failed: No medium found
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol00
VG Name VolGroup00
LV UUID 6rktp1-AvE2-G2ty-qsTl-ql7t-8QX3-VXht1t
LV Write Access read/write
LV Status available
# open 1
LV Size 134.06 GB
Current LE 4290
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:0

--- Logical volume ---
LV Name /dev/VolGroup00/LogVol01
VG Name VolGroup00
LV UUID mVVDVc-3NKS-DaP0-AZ7f-eyoA-ADuQ-FdierN
LV Write Access read/write
LV Status available
# open 1
LV Size 1.94 GB
Current LE 62
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:1

[root@abc ~]# vgdisplay
/dev/hda: open failed: No medium found
--- Volume group ---
VG Name VolGroup00
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 136.00 GB
PE Size 32.00 MB
Total PE 4352
Alloc PE / Size 4352 / 136.00 GB
Free PE / Size 0 / 0
VG UUID kDWc0Q-9HEw-Rgwg-Bonf-z6Yt-FRQ1-1LK0tq

[root@abc ~]# pvdisplay
/dev/hda: open failed: No medium found
--- Physical volume ---
PV Name /dev/sda2
VG Name VolGroup00
PV Size 136.02 GB / not usable 18.29 MB
Allocatable yes (but full)
PE Size (KByte) 32768
Total PE 4352
Free PE 0
Allocated PE 4352
PV UUID FLsCm4-sFCp-fTH9-Vnn1-MAC0-xJ11-FpvphO

And please tell me how do i create chunks of 2GB in those 100GB. For example i want to create 40x2GB chunks and another 2x10GB chunks.

Oh yeah, chunks... i like the way it sounds. )

Last edited by ytd; 01-22-2009 at 04:47 AM.
 
Old 01-22-2009, 04:47 AM   #6
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
Your is /dev/mapper/VolGroup00-LogVol00 is on /dev/sda2
 
Old 01-22-2009, 04:49 AM   #7
ytd
Member
 
Registered: Jan 2009
Posts: 189

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by Agrouf View Post
Your is /dev/mapper/VolGroup00-LogVol00 is on /dev/sda2
I've editet the preview post, please advice
btw, i remember now i have 4x 160gb s-ata. 2 of them are on raid0 and the other 2 are unpartitioned.
i think sda2 is the other hdd's
 
Old 01-22-2009, 04:54 AM   #8
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
I don't get what you want.
Do you want to extend LogVol00 to take 100Gb of additional space from the storage server? What kind of storage server is it? Is it an NFS remote server or is it the local machine that serves storage to other remote clients or is it something else?
sda2 is the 2nd partition of the 1st hard drive.
I didn't get everything.

Last edited by Agrouf; 01-22-2009 at 04:58 AM.
 
Old 01-22-2009, 05:01 AM   #9
ytd
Member
 
Registered: Jan 2009
Posts: 189

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by Agrouf View Post
I don't get what you want.
Do you want to extend LogVol00 to take 100Gb of additional space from the storage server? What kind of storage server is it? Is it an NFS remote server or is it the local machine that serves storage to other remote clients or is it something else?
sda2 is the 2nd partition of the 1st hard drive.
I didn't get everything.
it's more complicated than that.
I have a storage server which has 40TB and i have alocated 800GB for a server which has informix installed. I have alocated 800GB from the storage to the linux CentOS 5.0 64bit that has informix and i need to create chunks 80x6GB and 10x16GB = 800GB.

I need to see those 800GB that i have allocated from the storage so i can create those fuckign chunks.

You don't need to know what and how and what kind of server is the storage server. I cannot give you that kind of information.

AND yes, i want to take 800GB from the LogVol00 (but idk if the LogVol00 is the space allocated fromt he storage).

[root@abc dev]# ls
bus dvdrw loop2 nst0m pts ram7 sg1 st0m tty10 tty24 tty38 tty51 tty8 usbdev3.1_ep81 vcsa3
cdrom dvdrw-hda loop3 nst1 ram ram8 sg10 st1 tty11 tty25 tty39 tty52 tty9 usbdev4.1_ep00 vcsa4
cdrom-hda dvdwriter loop4 nst1a ram0 ram9 sg2 st1a tty12 tty26 tty4 tty53 ttyS0 usbdev4.1_ep81 vcsa5
cdrw dvdwriter-hda loop5 nst1l ram1 ramdisk sg3 st1l tty13 tty27 tty40 tty54 ttyS1 usbdev4.3_ep00 vcsa6
cdrw-hda fd loop6 nst1m ram10 random sg4 st1m tty14 tty28 tty41 tty55 ttyS2 usbdev4.3_ep81 VolGroup00
cdwriter full loop7 null ram11 rawctl sg5 stderr tty15 tty29 tty42 tty56 ttyS3 vcs X0R
cdwriter-hda gpmctl MAKEDEV nvram ram12 root sg6 stdin tty16 tty3 tty43 tty57 urandom vcs1 zero
changer hda mapper oldmem ram13 rtc sg7 stdout tty17 tty30 tty44 tty58 usbdev1.1_ep00 vcs2
changer-sg3 hpet mcelog parport0 ram14 sda sg8 systty tty18 tty31 tty45 tty59 usbdev1.1_ep81 vcs3
console initctl md0 parport1 ram15 sda1 sg9 tape tty19 tty32 tty46 tty6 usbdev2.1_ep00 vcs4
core input mem parport2 ram2 sda2 shm tape-nst0 tty2 tty33 tty47 tty60 usbdev2.1_ep81 vcs5
cpu kmsg net parport3 ram3 sdb snapshot tape-nst1 tty20 tty34 tty48 tty61 usbdev2.3_ep00 vcs6
disk log nst0 port ram4 sdc st0 tty tty21 tty35 tty49 tty62 usbdev2.3_ep81 vcsa
dvd loop0 nst0a ppp ram5 sdd st0a tty0 tty22 tty36 tty5 tty63 usbdev2.3_ep82 vcsa1
dvd-hda loop1 nst0l ptmx ram6 sg0 st0l tty1 tty23 tty37 tty50 tty7 usbdev3.1_ep00 vcsa2

I see there are: sda, sda1, sda2, sdb, sdc, sdd.
I repeat, i have 4 S-ATA HDD's 2 of them are on raid0 (mirroring) and the other 2 are untouched !
untouched means i didn't create partitions, i didn't do anything to them.

Last edited by ytd; 01-22-2009 at 05:08 AM.
 
Old 01-22-2009, 05:10 AM   #10
ytd
Member
 
Registered: Jan 2009
Posts: 189

Original Poster
Rep: Reputation: 31
Please advice.

That, with the 100GB was an example, i didn't want to give the real info...
 
Old 01-22-2009, 05:11 AM   #11
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
So, how did you allocate those 800GB and to what and where? Why can't you see them? Is the CentOS machine the local machine we are talking about that has the /dev/sda2 and Lvol00 on it?
 
Old 01-22-2009, 05:14 AM   #12
ytd
Member
 
Registered: Jan 2009
Posts: 189

Original Poster
Rep: Reputation: 31
Wait a minute, i see `em

[root@abc dev]# fdisk -l

Disk /dev/sda: 146.1 GB, 146163105792 bytes
255 heads, 63 sectors/track, 17769 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 17769 142625070 8e Linux LVM

Disk /dev/sdb: 146.1 GB, 146163105792 bytes
255 heads, 63 sectors/track, 17769 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

Disk /dev/sdc: 858.9 GB, 858993459200 bytes
255 heads, 63 sectors/track, 104433 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdc doesn't contain a valid partition table
[root@abc dev]#

F*** yeah ! )

Ok, the work here it's done. Now i need those commands in order to create those chunks.
 
Old 01-22-2009, 05:18 AM   #13
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
*confused*
 
Old 01-22-2009, 05:29 AM   #14
ytd
Member
 
Registered: Jan 2009
Posts: 189

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by Agrouf View Post
*confused*
yeah, whatever... your work here it's done, thank you very much.

Now i need those commands to create chunks (blocks) not raw devices and i need to create 80 chunks of 8GB and 10 chunks of 16GB, in total is 800GB.

Is anyone out there that knows those commands ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Where is /dev/mapper? Swift&Smart Fedora 1 12-08-2007 02:09 AM
newbie question /dev/mapper/lfs-cd echnat0n Linux From Scratch 2 03-05-2007 07:05 AM
FC5 couldn't boot due to problems with the filesystems in /dev/VolGroup00/LogVol00 Iltbreg Fedora 2 11-01-2006 07:20 PM
/dev/mapper directory joshnya Linux - Newbie 11 09-15-2005 03:09 AM
Adding Labels To /dev/VolGroup00/LogVol00 bplimpton Linux - Enterprise 2 05-09-2005 11:34 AM


All times are GMT -5. The time now is 10:23 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration