The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
To convert multi format file to a readable ascii format gaur.deepti UNIX for Dummies Questions & Answers 5 03-25-2008 03:03 PM
Convert UTF8 Format file to ANSI format rajreddy UNIX for Dummies Questions & Answers 9 05-25-2007 08:26 AM
Convert UTF8 Format file to ANSI format rajreddy UNIX for Advanced & Expert Users 1 05-24-2007 06:40 AM
convert mmddyy date format to ccyyddd format?? Bhups Shell Programming and Scripting 2 09-27-2006 11:30 PM
change the empty function from the old format to the new format powah Shell Programming and Scripting 0 06-23-2005 12:17 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-10-2009
Ivan45 Ivan45 is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 5
LVM lvcreate don't want to format

Hello,

I would like to create a Lvolume on an already written disk.
Main goal is to NOT format data on this disk. Unfortunately, while trying to mount my LV , I've got this error :
linux-qc44:/ # mount -a
mount: wrong fs type, bad option, bad superblock on /dev/mapper/system-DB,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

Anyone have an idea ?

Before doing a mount -a, here's what I did :

linux-qc44:/ # pvcreate /dev/sdb
Physical volume "/dev/sdb" successfully created
linux-qc44:/ # vgcreate system /dev/sdb
Volume group "system" successfully created
linux-qc44:/ # lvcreate -l 100%FREE system -n DB
Logical volume "DB" created
linux-qc44:/ # lvdisplay
--- Logical volume ---
LV Name /dev/system/DB
VG Name system
LV UUID WcEgQK-7xZB-622K-tSu3-x0AQ-Lzhr-fLgHxE
LV Write Access read/write
LV Status available
# open 0
LV Size 1020.00 MB
Current LE 255
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
  #2 (permalink)  
Old 03-10-2009
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2007
Location: Germany
Posts: 2,259
When you create a LV you also have to create a FS (Filesystem) of some type on the LV to be able to mount it. Look into the command mkfs maybe.
LVs without FS can just be used for things like RAW volumes etc.
  #3 (permalink)  
Old 03-10-2009
Ivan45 Ivan45 is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 5
Hi Zaxxon,

thanks for your quick reply.
Unfortunately if Im using mkfs, all preexisting data will be lost.

Let me explain my scenario :
We have two sites.
Site 1 has an AIX connected to a Storage through iscsi protocol. This is the production site. This AIX server use LVM to create VG, PV, LV with no problem.(LV command is formating.

Site 2 (disaster Site) has a second SAN Storage which is receiving mirrored data from Site 1. A second AIX server is attached to this second Storage through iscsi ( this LUN is a data replication from Site 1)
The idea would be to mount the LUN ( which is already populated) on the second AIX through LVM. This is where I get Stuck as I cannot create an LV and mount the system until I do a MKFS !!!!
Is this a normal behavior ? did I miss something ?

Thanks a lot
Ivan
  #4 (permalink)  
Old 03-10-2009
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2007
Location: Germany
Posts: 2,259
The commands you showed etc. is a Linux box. Now it is 2 AIX boxes? They have totally different commands for their LVMs.

Normal behaviour depends. Usually your AIX1 node has exclusive access rights on the storage and so there is usually a reservation on the SAN-volumes. There are scenarios where there are drivers used, that don't handle reservations. Normal behaviour is often to have only 1 node getting exclusive access to your production box. The other node is often just a standby box. But that all depends on how your scenario is set up.
Without knowing that concurrent access from your second node AIX2 is explicit allowed, I would not touch it.

The normal way is to add your LV and FS from the active productive node AIX1.
Maybe you get some more information how your boxes and SAN-access are setup before daring data corruption or problems for the production node AIX1.
  #5 (permalink)  
Old 03-10-2009
Ivan45 Ivan45 is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 5
You're right this is some Linux Output .
I currently do not have my AIX available, So I've decided to test on LInux. I thought LVM behaviour was the same on both AIX and LInux.

Is the following make sense to you :

Site 1 :
Storage 1 : Volume and LUN presented to AIX 1 only : readwritable. ( LVM was used to create vg, pv, lv on the presented LUN)

Site 2:
Storage 2 : replicated Volume and LUN presented to AIX 2 only : read-only (until mirror is manually broken (disaster recoery scenario).

Suppose disaster recovery occurs, mirror is manually broken : LUN is getting read write attribute and of course Data are already present on the LUN.
HOW do I proceed to mount this LUN to my AIX WITHOUT FORMATING ??

Any idea ?
Thanks
Ivan
  #6 (permalink)  
Old 03-10-2009
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,568
Well what you are trying will surely not work...
If I follow you, the idea is to show via SAN the disk to a remote server ,am I right?
In this case you should not use vgcreate or whatever but make a safe copy using vgexport or exportvg (aix) look at the man pages since I dont have the syntax in mind :
A mistake and you are doomed... I would say in HPUX you would use
vgexport -s -p -m -v mapfile.vgXX /dev/vgXX

using the mapfile you on the remote box can import the vg giving it a newname and hope you mount it read only or use the -e (exclusive) mode

This is what we are to do when using HACMP(AIX) or MCSG (HP)... (but can be done without the soft...)
  #7 (permalink)  
Old 03-11-2009
Ivan45 Ivan45 is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 5
Hi Vbe,

This is a remote Server on a SECOND SAN . There are 2 replicated SAN. So Volumes ( and LUN) inside SAN 1 is replicated to SAN 2. That's why I don't understand why I have to Format or export something ( as my replication occurs at block level). ??

Thanks a lot.
Ivan
Closed Thread

Bookmarks

Tags
lvm format

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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




All times are GMT -4. The time now is 09:32 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0