Forum Discussion

minimike's avatar
minimike
Level 2
14 years ago

Mounting a Volume after reboot

Hello list

 

I want to learn more about Veritas Storage Foundation Basic. First to test if will be useful for my projects and second to get the knowledge. It hink it could be very useful on a larger XEN environment

Step one

So under VMware Worksation I have got installed RHEL 5.5 with two virtual drives. One with 10 GB for the OS and one with 100 GB to play with Veritas. The System is a minimal installation. Only the dependencies for Veritas Storage Foundation Basic are installed. Veritas is installed as minimal a installion, configured without networkservices. After installation I have got rebooted my system and all Initscripts for Veritas has got started successfully. 

 

Step two

My 100 GB Drive is /dev/sdb so I have begun to create a Volume

/opt/VRTS/bin/vxdisksetup -i sdb

vxdg init storage0 disk01=sdb

vxassist -g storage0 maxsize

vxassist -g storage0 make vol0 5000m

mkfs -t vxfs /dev/vx/rdsk/storage0/vol0

mount -t vxfs /dev/vx/rdsk/storage0/vol0 /mnt

 

So everything has happened successful. But after reboot the system it doesn't works any more. I cant mount Volumes.

mount -t vxfs /dev/vx/rdsk/storage0/vol0 /mnt

UX: vxfs mount.vxfs : Error: V-3-21266: /dev/vx/rdsk/storage0/vol0 not a block device

 

vxdg list

NAME                STATE                    ID

storage0            enabeled,cds                    1290381399.7.BOX01.my.tld

 

So anybody can tell me whats going or what I am doing wrong? 

 

best regards

Darko Hojnik

  •  

    mount -t vxfs /dev/vx/rdsk/storage0/vol0 /mnt ----- is wrong, dsk, not rdsk

     

     

    mount -t vxfs /dev/vx/dsk/storage0/vol0 /mnt

5 Replies

  •  

    mount -t vxfs /dev/vx/rdsk/storage0/vol0 /mnt ----- is wrong, dsk, not rdsk

     

     

    mount -t vxfs /dev/vx/dsk/storage0/vol0 /mnt

  • you are using a raw device (/dev/vx/rdsk/storage0/vol0)  & that is erroring.... you should you a block device i.e /dev/vx/dsk/storage0/vol0

     

    Gaurav

  • Ok thank you guy's! It's working :D

    Is there any good Howto or quick reference to suggest for me for working with Snapshots on Veritas?

     

    best regards

    Darko Hojnik

     

  • Best is to look in vxvm admin guides...

    https://sort.symantec.com/documents

     

    select your OS & version & you will see product guides for your product..

     

    Gaurav

  • Hi,

     

    Have a look at this

     

    http://sfdoccentral.symantec.com/sf/5.1SP1/linux/html/sf_adv_admin/pt04.htm