Operating System - HP-UX
1834516 Members
1985 Online
110068 Solutions
New Discussion

I cannot mount lv after reboot

 
SOLVED
Go to solution
Murat SULUHAN
Honored Contributor

I cannot mount lv after reboot

Hi

I created a LUN in shared disk array then volume group and one big logical volume (100 GB). Then I created the fs with mkfs using -o largefiles option. I successfully mounted it but after reboot

mount -F vxfs -o largefiles /dev/vgalcatel/lvback /backup/
mount - Cannot open /dev/vgalcatel/lvback: No such device or address

but I have the device files

# ll /dev/vgalcatel
total 0
crw-rw-rw- 1 root sys 64 0x090000 Jun 4 16:53 group
brw-rw-rw- 1 root sys 64 0x090001 Jun 4 17:00 lvback
crw-rw-rw- 1 root sys 64 0x090001 Jun 4 17:00 rlvback

/etc/lvmtab has not entry about vgalcatel

# strings /etc/lvmtab | grep alca
#


# vgimport -p /dev/vgalcatel /dev/dsk/c7t5d0 /dev/dsk/c5t5d0
vgimport: Warning: Volume Group contains "1" PVs, "2" specified. Continuing.
Warning: A backup of this volume group may not exist on this machine.
Please remember to take a backup using the vgcfgbackup command after activating the volume group.

So I run

mv /etc/lvmtab /etc/lvmtab_07062004_01
vgscan -a -v
...........
.............
...........
Following Physical Volumes belong to one Volume Group.
Unable to match these Physical Volumes to a Volume Group.
Use the vgimport command to complete the process.
/dev/dsk/c5t5d0
/dev/dsk/c7t5d0
...............
.
..............

vgchange -a y /dev/vgalcatel
vgchange: Volume group "/dev/vgalcatel" does not exist in the "/etc/lvmtab" file.

So how can I mount it ?

Best Regards
Murat SULUHAN
Murat Suluhan
10 REPLIES 10
Joseph Loo
Honored Contributor

Re: I cannot mount lv after reboot

hi,

have u done:

# newfs -F vxfs /dev/vgalcatel/rlvback
# mount /dev/vgalcatel/lvback /backup

regards.
what you do not see does not mean you should not believe
Murat SULUHAN
Honored Contributor

Re: I cannot mount lv after reboot

Hi Joseph

I already create the filesystem and I successfully created the file before reboot.

Thanx

Best Regards
Murat SULUHAN
Murat Suluhan
John Carr_2
Honored Contributor

Re: I cannot mount lv after reboot

Hi

try doing a vgcfgrestore

John.
Shaikh Imran
Honored Contributor
Solution

Re: I cannot mount lv after reboot

hi,
After this
mv /etc/lvmtab /etc/lvmtab_07062004_01
vgscan -a -v
...........
.............
...........
Following Physical Volumes belong to one Volume Group.
Unable to match these Physical Volumes to a Volume Group.
Use the vgimport command to complete the process.
/dev/dsk/c5t5d0
/dev/dsk/c7t5d0
...............
.
..............


USe This:
#vgimport -v /dev/dsk/c5t5d0 /dev/dsk/c7t5d0
Then
#vgchange -a y /dev/vgalcatel
#strings /etc/lvmtab.

I think you made a mistake by using -p with vgimport and -p is just preview not the action ( see man vgimport for details)


Regards,

I'll sleep when i am dead.
Murat SULUHAN
Honored Contributor

Re: I cannot mount lv after reboot

Hi John

I am working in a shared disk array and man page of vgcgfrestore has an entry about shared environments


Remarks
vgcfgrestore cannot be performed if the volume group is activated in
shared mode.


Best Regards
Murat SULUHAN
Murat Suluhan
Murat SULUHAN
Honored Contributor

Re: I cannot mount lv after reboot

Hi Shaikh Imran

thank you so much,

I think I need double expresso :=)


Best Regards
Murat SULUHAN
Murat Suluhan
Fabio Ettore
Honored Contributor

Re: I cannot mount lv after reboot

Hi Murat,

I think that Joseph's suggestion about newfs is good.
I suggest you to recreate logical volume and filesystem:

# lvremove /dev/vgalcatel/lvback
# lvcreate -L -n lvback /dev/vgalcatel
# newfs -F vxfs -o largefiles /dev/vgalcatel/rlvback
# mount /dev/vgalcatel/lvback /backup

Anyway it is very strange that /etc/lvmtab has not info about vgalcatel.

Try you launch

# vgdisplay -v vgalcatel

Does it obtain anything?

If you has a backup of vgalcatel I would suggest you to recreate volume group, logical volume and filesystem, then restore.

That would be the best thing.

Best regards,
Ettore
WISH? IMPROVEMENT!
Fabio Ettore
Honored Contributor

Re: I cannot mount lv after reboot

I am writing when you solved your problem.....very good!

No points....

Best regards,
Ettore
WISH? IMPROVEMENT!
Joseph Loo
Honored Contributor

Re: I cannot mount lv after reboot

just back from a short discussion.

ok. so your problem is not mounting but vgimport or is that really your problem??

i think u should try to explain yourself clearly in future to avoid any mis-understanding or mis-interpretation to your questions.

regards.
what you do not see does not mean you should not believe
Murat SULUHAN
Honored Contributor

Re: I cannot mount lv after reboot

Hi joseph

I already wrote I created the filesystem using mkfs in the first paragraph

"I created a LUN in shared disk array then volume group and one big logical volume (100 GB). Then I created the fs with mkfs using -o largefiles option. I successfully mounted it but after reboot ."

Thanks for your response

Best Regards
Murat SULUHAN
Murat Suluhan