Operating System - HP-UX
1832857 Members
3112 Online
110048 Solutions
New Discussion

Re: mount /dev/vg07/lvol1 /u06 unrecognized file system? what's vg07?

 
SOLVED
Go to solution
Gary L
Super Advisor

mount /dev/vg07/lvol1 /u06 unrecognized file system? what's vg07?

Hi

We have a rp3440 box run HP-UX 11ivi, SAN connection. Just now, I checked the system looking for a free vg number because I applied a new SAN vdisk I have been configuring this SAN disk into system via LVM. I found vg07 is not in the /dev and from bdf and cat /etc/fstab no any information about vg07, so I pvcreate that new disk but vgcreate /dev/vg07 failed system said number be used. So, I removed current /etc/lvmtab and # vgscan -v re-scan all vg. Interesting, through # strings /etc/lvmtab vg07 was listed there
/dev/vg07
/dev/dsk/c12t1d2
no vg07 in /dev, vgscan -v should respond "vgimport" this vg. But no this issue, directly created in /etc/lvmtab. This server was created 3 years ago by another system admin, he quit 2 year ago and no doc left about this vg07. So I did below:
# ioscan -funC disk
disk 13 255/255/0/1.2 sdisk CLAIMED DEVICE HSV110 (C)COMPAQ
/dev/dsk/c12t1d2 /dev/rdsk/c12t1d2

make sure c12t1d2 is a SAN disk HSV110 (C)COMPAQ

# diskinfo /dev/rdsk/c12t1d2
SCSI describe of /dev/rdsk/c12t1d2:
vendor: COMPAQ
product id: HSV110 (C)COMPAQ
type: direct access
size: 41943040 Kbytes -- 40GB SAN disk
bytes per sector: 512

# mkdir /dev/vg07
# mknod /dev/vg07/group c 64 0x070000
# vgcfgrestore -n /dev/vg07 /dev/rdsk/c12t1d2
# ll /dev/vg07
total 0
crw-r----- 1 root sys 64 0x070000 Aug 12 22:57 group
brw-r----- 1 root sys 64 0x070002 Aug 12 23:04 lvol1
crw-r----- 1 root sys 64 0x070002 Aug 12 23:04 rlvol1

# vgchange -a y /dev/vg07
Volume group "/dev/vg07" has been successfully changed.

# mkdir -p /u06
# mount /dev/vg07/lvol1 /u06 -- I wanna check what's the vg07
I got below erro.
/dev/vg07/lvol1: unrecognized file system

# vgdisplay -v /dev/vg07
--- Volume groups ---
VG Name /dev/vg07
VG Write Access read/write
VG Status available
Max LV 4
Cur LV 2
Open LV 1
Max PV 4
Cur PV 1
Act PV 1
Max PE per PV 65533
VGDA 2
PE Size (Mbytes) 16
Total PE 2559
Alloc PE 2559
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg07/lvol1
LV Status available/syncd
LV Size (Mbytes) 0
Current LE 0
Allocated PE 0
Used PV 0


--- Physical volumes ---
PV Name /dev/dsk/c12t1d2
PV Status available
Total PE 2559
Free PE 0
Autoswitch On


# lvdisplay /dev/vg07/lvol1
--- Logical volumes ---
LV Name /dev/vg07/lvol1
VG Name /dev/vg07
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 0
Current LE 0 -- 0 ??
Allocated PE 0 -- 0 ??
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default


who can tell me what's vg07? Alternate swap space?

Any answer will be very apprectiate.

-G
44 REPLIES 44
Gary L
Super Advisor

Re: mount /dev/vg07/lvol1 /u06 unrecognized file system? what's vg07?

BTW, from spmgr display shows

TGT/LUN Device WWLUN_ID H/W_Path #_Paths
1/ 2 c12t1d2 6005-08B4-0010-102C-0000-A000-009C-0000 4
255/255/0/1.2
Controller Path_Instance HBA Preferred? Path_Status
P5849E1AAQE04W no
c23t1d3 td0 no Active
c33t1d3 td1 no Active

Controller Path_Instance HBA Preferred? Path_Status
P5849E1AAQD02S no
c25t1d3 td0 no Standby
c31t1d3 td1 no Standby

piyush mathiya
Trusted Contributor
Solution

Re: mount /dev/vg07/lvol1 /u06 unrecognized file system? what's vg07?

Hi Gary,
You are following perfect steps, May be this is swap lvol, or this lvol is using more then 2 (3 or more then 3)disks. otherwise may be this is onlineJFS file system and in your system you dont have onlineJFS installed.
surly you will get your answer with this doubts.

Regards,
Piyush Mathiya
Gary L
Super Advisor

Re: mount /dev/vg07/lvol1 /u06 unrecognized file system? what's vg07?

Hi Piyush

Thank you very much for your fast reply and answer.

We don't have OnlineJFS at all.

# strings /etc/lvmtab
/dev/vg00
/dev/dsk/c2t0d0
/dev/dsk/c2t1d0
/dev/vg01
/dev/dsk/c12t0d0
/dev/vg02
/dev/dsk/c12t0d1
/dev/vg03
/dev/dsk/c12t0d2
/dev/dsk/c12t0d3
/dev/dsk/c12t0d4
/dev/vg04
/dev/dsk/c12t0d5
/dev/dsk/c12t0d6
/dev/dsk/c12t0d7
/dev/vg09
/dev/dsk/c12t1d0
/dev/vg06
/dev/dsk/c12t1d1
/dev/vg07
/dev/dsk/c12t1d2
/dev/vg05
/dev/dsk/c12t1d3
/dev/vg08
/dev/dsk/c17t0d0

vg00 has two local HDs, from vg01 to vg09 are all SAN disks. From above list, we could see c12t1d2 only be assigned to vg07. But in /dev no vg07 info, Probably be removed but anyway i through vgcfgrestore recovery it. LV appear there. 40GB SAN disk why lvdisplay 0,
# newfs -F vxfs -o largefiles /dev/vg07/rlvol1
vxfs newfs: no space allocated to device /dev/vg07/rlvol1

If vg07/lvol1 is a second/alternate swap but
# swapinfo -at just list pri swap no alt info
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4194304 0 4194304 0% 0 - 1 /dev/vg00/lvol2
reserve - 4194304 -4194304
memory 13054332 10539252 2515080 81%
total 17248636 14733556 2515080 85% - 0 -

piyush mathiya
Trusted Contributor

Re: mount /dev/vg07/lvol1 /u06 unrecognized file system? what's vg07?

If it is secondary swap then you need to on it with swapon utility, otherwise it won't start automatically, And is this disk belongs from same server, because if you have used this disk in another server with different version of O.S. or different type of server like PA-RISC and Itanium, then also it will not work. And if this disk contains onlineJFS file system (May be it used by some another server which have onlineJFS) then also you cant use it.

Regards,
Piyush Mathiya
Gary L
Super Advisor

Re: mount /dev/vg07/lvol1 /u06 unrecognized file system? what's vg07?

Probably it's not a swap.

Just now I run "sam" - device & filesystems - swap. In that page, only list /dev/vg00/lvol2. No c12t1d2. from "Logical volume" vg07/lvol1 not there, but in VG and Disk Device, c12t1d2 and vg07 listed there.
piyush mathiya
Trusted Contributor

Re: mount /dev/vg07/lvol1 /u06 unrecognized file system? what's vg07?

No gary,
Actully once you activate the volume group, you can see it in LV list, as you can use lvdisplay with this lvols, but if this is swap logical volume then you need to use swapon with this logical volume name, then and then it will show in sam or with swapinfo -tam command, use swapon command and post the output. . .
Gary L
Super Advisor

Re: mount /dev/vg07/lvol1 /u06 unrecognized file system? what's vg07?

Hi Piyush

thanks for you reply.

As you know our all HP-UX server run the same OS version 11iv1. And are all PA-RISC box. We only have three HP-UX connect EVA SAN. I have checked this SAN disk's LUN ID just lists in this server. Not be presented to others.

That rp box has 16GB memory. Primary swap /dev/vg00/lvol2 already assing more than 8GB, this SAN disk is a 40GB space, who using 40GB as a 16RAM's swap?

Gary L
Super Advisor

Re: mount /dev/vg07/lvol1 /u06 unrecognized file system? what's vg07?

If c12t1d2 was used to swap before, how to reconfigured it as a normal SAN disk could be configured via LVM, I wanna use this 40GB fro store data. I don't wanna using swapon to create a 40GB swap.

How to reuse this SAN disk as a normal LVM file system could be mounted.

Thanks

-G
piyush mathiya
Trusted Contributor

Re: mount /dev/vg07/lvol1 /u06 unrecognized file system? what's vg07?

Gary,
This is the last thing which I can say is, can you try to use fsck and post the output, so we get to know that how many disk this lvol is using, may be it is striping with another disk.

Regards,
Piyush Mathiya
Gary L
Super Advisor

Re: mount /dev/vg07/lvol1 /u06 unrecognized file system? what's vg07?

# ll /dev/vg07
total 0
crw-r----- 1 root sys 64 0x070000 Aug 12 22:57 group
brw-r----- 1 root sys 64 0x070002 Aug 12 23:04 lvol1
crw-r----- 1 root sys 64 0x070002 Aug 12 23:04 rlvol1

# fsck -F vxfs -o full -y /dev/vg07/lvol1
vxfs fsck: read of super-block on /dev/vg07/lvol1 failed: No such device or address
file system check failure, aborting ...
Gary L
Super Advisor

Re: mount /dev/vg07/lvol1 /u06 unrecognized file system? what's vg07?

> swapon command and post the output

You wanna me try to add this 40GB SAN disk as system second swap space and post the result here?
Abhinesh AV
Occasional Advisor

Re: mount /dev/vg07/lvol1 /u06 unrecognized file system? what's vg07?

Can You give us the output of
#fstyp -v /dev/vg07/lvol1
Torsten.
Acclaimed Contributor

Re: mount /dev/vg07/lvol1 /u06 unrecognized file system? what's vg07?

This is some strange:

Cur LV 2 <===
Open LV 1
Max PV 4
Cur PV 1
Act PV 1
Max PE per PV 65533
VGDA 2
PE Size (Mbytes) 16
Total PE 2559
Alloc PE 2559 <===
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg07/lvol1
LV Status available/syncd
LV Size (Mbytes) 0 <===
Current LE 0
Allocated PE 0
Used PV 0


--- Physical volumes ---
PV Name /dev/dsk/c12t1d2


All the space must be assigned to another LVOL, because lvol1 is 0MB.


What result you get from

pvdisplay -v /dev/dsk/c12t1d0

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Gary L
Super Advisor

Re: mount /dev/vg07/lvol1 /u06 unrecognized file system? what's vg07?

Hi Abhinesh

Below are the output for /dev/vg07/lvol1 and /dev/vg06/lvol1 (another SAN disk)

# fstyp -v /dev/vg07/lvol1
unknown_fstyp (no matches)

# fstyp -v /dev/vg06/lvol1
vxfs
version: 4
f_bsize: 8192
f_frsize: 8192
f_blocks: 52420608
f_bfree: 51192057
f_bavail: 50792120
f_files: 12820032
f_ffree: 12797984
f_favail: 12797984
f_fsid: 1074135041
f_basetype: vxfs
f_namemax: 254
f_magic: a501fcf5
f_featurebits: 0
f_flag: 16
f_fsindex: 7
f_size: 52420608

What's unknown_fstyp (no matches)?


Torsten.
Acclaimed Contributor

Re: mount /dev/vg07/lvol1 /u06 unrecognized file system? what's vg07?

The /dev/vg07/lvol1 is 0MB - so it cannot have any file system on it.

Thats why you get the "unknown" result, because "none" is not a well known one.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Gary L
Super Advisor

Re: mount /dev/vg07/lvol1 /u06 unrecognized file system? what's vg07?

Hi Torsten

Thanks for you reply

> What result you get from pvdisplay -v /dev/dsk/c12t1d0

The SAN disk is c12t1d2 not c12t1d0 but anyway below is the outpout for both of them

# pvdisplay -v /dev/dsk/c12t1d2
...
02553 current ??? 02553
02554 current ??? 02554
02555 current ??? 02555
02556 current ??? 02556
02557 current ??? 02557
02558 current ??? 02558

# pvdisplay -v /dev/dsk/c12t1d0

...
03194 current /dev/vg09/lveva2 03194
03195 current /dev/vg09/lveva2 03195
03196 current /dev/vg09/lveva2 03196
03197 current /dev/vg09/lveva2 03197
03198 current /dev/vg09/lveva2 03198

Torsten.
Acclaimed Contributor

Re: mount /dev/vg07/lvol1 /u06 unrecognized file system? what's vg07?

Please do this again:

# pvdisplay -v /dev/dsk/c12t1d2 | head -n 30

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Gary L
Super Advisor

Re: mount /dev/vg07/lvol1 /u06 unrecognized file system? what's vg07?

Hi Torsten

Thanks a lot.

You saide: The /dev/vg07/lvol1 is 0MB - so it cannot have any file system on it. Thats why you get the "unknown" result, because "none" is not a well known one.

Could you please tell me which actions caused this result. As you know there is no any doc record vg07 and the 40GB SAN disks. But it real be configured into system and has some purpose. That vg07 is interesting, no any /dev/vg07 and LVs inforamtion, but it could be detected through vgscan -v and no errro responds directly be created into /etc/lvmtab, i means, no error said c12t1d2 no LVM configure please "vgimport" it...

Does it be assigned to be a swap, I have no idea.

If it's not a important purpose how to re-use, re-pvcreate ,vgcreate, lvcreate, newfs, mount it. i wanna re-use it or let SAN admin remove it if stil could not know what's it. As you know, I wanna use this vg07 for anthor 50GB new SAN disk. our syste's maxvgs is default 10 and I could not reboot this server within min 3 months, no vg number left, I could not add the new SAN disk to a existing Vg01-vg09, but I wanna configre a new SAN, so vg07 ...
Gary L
Super Advisor

Re: mount /dev/vg07/lvol1 /u06 unrecognized file system? what's vg07?

# pvdisplay -v /dev/dsk/c12t1d2 | head -n 30
--- Physical volumes ---
PV Name /dev/dsk/c12t1d2
VG Name /dev/vg07
PV Status available
Allocatable yes
VGDA 2
Cur LV 0
PE Size (Mbytes) 16
Total PE 2559
Free PE 0
Allocated PE 2559
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On


--- Physical extents ---
PE Status LV LE
00000 current ??? 00000
00001 current ??? 00001
00002 current ??? 00002
00003 current ??? 00003
00004 current ??? 00004
00005 current ??? 00005
00006 current ??? 00006
00007 current ??? 00007
00008 current ??? 00008
00009 current ??? 00009
00010 current ??? 00010
00011 current ??? 00011
piyush mathiya
Trusted Contributor

Re: mount /dev/vg07/lvol1 /u06 unrecognized file system? what's vg07?

Gary,
For reusing it, you need to use pvcreate with "-f" option, thats all, then you can simply create new file system on it, You are asking about the steps to do it?

Regards,
Piyush Mathiya
Gary L
Super Advisor

Re: mount /dev/vg07/lvol1 /u06 unrecognized file system? what's vg07?

Hi pivush

Please provide me steps if you want.

How abut vgexport /dev/vg07?

Before I implement re-use c12t1d2 or let the new c12t1d4 use vg07, would you please tell me from my above informations, whether c12t1d2 current vg07 is a critial file, it doesn't looks like a alt swap, someone could use 8-16GB for swap, but 40GB be used and so far no mount points link to it.

Thanks
Torsten.
Acclaimed Contributor

Re: mount /dev/vg07/lvol1 /u06 unrecognized file system? what's vg07?

Strange ...

Please post the output of this command:

# vgcfgrestore -n /dev/vg07 -l

(lower case L)

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Gary L
Super Advisor

Re: mount /dev/vg07/lvol1 /u06 unrecognized file system? what's vg07?

# vgcfgrestore -n /dev/vg07 -l
Volume Group Configuration information in "/etc/lvmconf/vg07.conf"
VG Name /dev/vg07
---- Physical volumes : 1 ----
/dev/rdsk/c12t1d2 (Non-bootable)
Torsten.
Acclaimed Contributor

Re: mount /dev/vg07/lvol1 /u06 unrecognized file system? what's vg07?

I can't tell you what exactly happened to this VG.

vgdisplay says there is 1 disk with 2 LVOLS.

your LVOL1 is 0MB in size, the other is missing

pvdisplay says, there is lvol on it, but there are "unknown" and current extends.

???

Anyway, if you don't miss anything and want to get rid of it, use vgexport to export this vg.

Now you can either re-use it (pvcreate -f ...) or delete it from the array.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!