LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 02-03-2012, 08:08 PM   #1
hydraMax
Member
 
Registered: Jul 2010
Location: Skynet
Distribution: Gentoo
Posts: 330
Blog Entries: 24

Rep: Reputation: 38
lvm snapshot -- where did I go wrong?


Hi. I've got an lv at /dev/mapper/vg0-root, 20GB containing an XFS filesystem. For the first time, I tried to create an lvm snapshot of it so I could make a backup image with partimage. Used this command:

Code:
# lvcreate -L 100M -n rootsnap -s /dev/vg0/root
Seemed to work okay. But partimage can't read it, and when I try to mount it myself I get:

Code:
# mount -t xfs /dev/vg0/rootsnap /mnt/test
mount: wrong fs type, bad option, bad superblock on /dev/mapper/vg0-rootsnap,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
Did I mess up the lvcreate command or something?
 
Old 02-03-2012, 08:16 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 10,460

Rep: Reputation: 623Reputation: 623Reputation: 623Reputation: 623Reputation: 623Reputation: 623
google suggests you need nouuid (on the mount) for XFS.
 
Old 02-03-2012, 08:53 PM   #3
deepak_message
Member
 
Registered: Oct 2007
Posts: 102

Rep: Reputation: 15
did you check only..
mount /dev/vg0/rootsnap /mnt/test only ???
 
Old 02-03-2012, 10:58 PM   #4
hydraMax
Member
 
Registered: Jul 2010
Location: Skynet
Distribution: Gentoo
Posts: 330
Blog Entries: 24

Original Poster
Rep: Reputation: 38
Quote:
Originally Posted by syg00 View Post
google suggests you need nouuid (on the mount) for XFS.
Thanks. That worked. I had never even heard of nouuid before.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] what is a LVM snapshot? aceone Red Hat 6 05-22-2010 12:08 PM
LVM Snapshot eldo Linux - Server 2 11-20-2009 04:10 AM
lvm snapshot using script Ammad Linux - General 2 11-15-2009 08:35 AM
lvm snapshot Ammad Linux - General 1 02-18-2009 07:03 AM
About LVM Snapshot geethusari LinuxQuestions.org Member Intro 1 12-03-2007 07:11 AM


All times are GMT -5. The time now is 06:09 AM.

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
Open Source Consulting | Domain Registration