LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 11-11-2009, 08:27 AM   #1
Ammad
Member
 
Registered: Apr 2004
Distribution: redhat 9.0, fc4, redhat as 4
Posts: 517

Rep: Reputation: 31
linux lvm snapshot


i am creating snapshot on 3.2TB lvm, but it stops with this


Code:

lvcreate -L30G -s -n dbbackup /dev/VGSANDB/database
  Insufficient free extents (1472) in volume group VGSANDB: 7680 required
 
Old 11-11-2009, 08:37 AM   #2
TBC Cosmo
Member
 
Registered: Feb 2004
Location: NY
Distribution: Fedora 10, CentOS 5.4, Debian 5 Sparc64
Posts: 355

Rep: Reputation: 43
It's telling you you don't have enough free extents to allocate to the new LV. Free some up by shrinking/deleting unused LV, or use the number of free extents you have as an argument to lvcreate (lvcreate -l [#-of-free-extents] -s ....)
 
Old 11-11-2009, 08:40 AM   #3
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,024
Blog Entries: 5

Rep: Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789
It's telling you that you don't have enough free space left to create the 30GB (3TB) filesystem.

Run "vgdisplay VGSANDB" and examine it's output. Specifically look at the information similar to the below:
PE Size 32.00 MB
Total PE 10935
Alloc PE / Size 2592 / 81.00 GB
Free PE / Size 8343 / 260.72 GB

PE Size tells you how large each physical extent is. These are the units used to make your device.

Total PE tells you how many physical extents you have. Multiplying that times your PE Size will tell you how big the overall Volume Group (VG) is.

Alloc PE / Size shows you how many physical extents you're using already and also calculates PE * PE Size to show how much space you're using.

Free PE / Szie shows you hwo many physical extens are NOT in use yet and also caclulates PE * PE Size to show how much unused space is available.

The message you got is telling you the last number (Free PE / Size) is too small to allow you to do what you're trying.
 
Old 11-11-2009, 09:12 AM   #4
TBC Cosmo
Member
 
Registered: Feb 2004
Location: NY
Distribution: Fedora 10, CentOS 5.4, Debian 5 Sparc64
Posts: 355

Rep: Reputation: 43
Quote:
Originally Posted by jlightner View Post
it's telling you that you don't have enough free space left to create the 30gb (3tb) filesystem.
30gb != 3tb
 
Old 11-11-2009, 10:01 AM   #5
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,024
Blog Entries: 5

Rep: Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789
Quote:
Originally Posted by TBC Cosmo View Post
30gb != 3tb
D'oh!

 
0 members found this post helpful.
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
lvm snapshot for backup eco Linux - Server 5 03-15-2009 08:27 AM
lvm snapshot Ammad Linux - General 1 02-18-2009 08:03 AM
LVM snapshot between different Groups Ammad Linux - General 3 01-04-2009 09:02 AM
About LVM Snapshot geethusari LinuxQuestions.org Member Intro 1 12-03-2007 08:11 AM
LVM Snapshot question sjtushi Linux - Software 3 03-12-2006 10:41 AM


All times are GMT -5. The time now is 04:06 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