Operating System - HP-UX
1754355 Members
4592 Online
108813 Solutions
New Discussion юеВ

filesystem disappears after reboot

 
akil-al
Advisor

filesystem disappears after reboot

hi,
seems that after the reboot of the hp-ux machine, two filesystems disappeared. there are no entries in the fstab for the filesystems. that is a configuration mistake.
there are two volume groups, vg00 and drootvg both of them are active. the filesystems i am talking about were in the droot volume group. the logical volumes exist,both of them, but seem to be unused.
is there any way to recover the data?
is there any way to mount the logical volumes?
thanks
8 REPLIES 8
sajeer_2
Regular Advisor

Re: filesystem disappears after reboot


do ls -l /dev/vg00

Note the names of logical volumes/filesystems which are not mounted.

Use mount command to mount it.

mkdir /mountpoint

mount -F vxfs /dev/vg00/lvolXX /mountpoint



akil-al
Advisor

Re: filesystem disappears after reboot

hi,
the volume group is drootvg
do you mean ls -l /dev/dootvg
sajeer_2
Regular Advisor

Re: filesystem disappears after reboot


right

ls -l /dev/drootvg

make same change for mount command also
Ninad_1
Honored Contributor

Re: filesystem disappears after reboot

Hi,

If there are no entries for the filesystems in /etc/fstab then after reboot the filesystems wont be mounted automatically.
The entry into /etc/fstab is not automatic - but you need to put the entries manually yourself for the filesystems you wish to be mounted when you system comes up.
Please see the format in which the entries must be added by cat /etc/fstab and man fstab to understand the format. Then if say your filesystem is /dev/dgroot/lvol1 then your entry at the end of the /etc/fstab file will be something like this
/dev/dgroot/lvol1 /mountpoint vxfs rw 0 2

and so on for all the filesystems.

Regards,
Ninad
akil-al
Advisor

Re: filesystem disappears after reboot

hi
yep the logical volumes are in the volume group /dev/drootvg/ directory.
mounting them to a mount directory , no matter what the previous mount directory was, will work?
Ninad_1
Honored Contributor

Re: filesystem disappears after reboot

Yes.
Mounting to any directory this time will work , no matter what directory/mount-point you had used earlier.
But again as I said, please make entry in /etc/fstab if you wish the filesystem to be automatically mounted at system startup.

Regards,
Ninad
sajeer_2
Regular Advisor

Re: filesystem disappears after reboot



you can mount it on any directory you want.
akil-al
Advisor

Re: filesystem disappears after reboot

a quick report for this thread
check the volume group
vgdisplay -v volume_group
see if is activated
check the logical volumes if they are created
use sam , disk and group logical volumes
or ls -ltr /dev/volume_group
check fstab entries
if there are entries and the filesystems are not mounted
check the file /etc/rc.log check also dmesg
if entries do not exists in the fstab file (etc/fstab)
then
create a mount point and mount the filesystem
thank you