Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ufsdump root slice

Status
Not open for further replies.

dbase77

Technical User
Apr 23, 2002
591
IE
Hi,

I have filesystem under veritas volume manager. The root disk is mirror. How do I go about using ufsdump command to take a backup of root partition? Let say:

pri-disk = c1t0d0s2
mir-disk = c1t1d0s2

Can I just use:
"ufsdump 0uf /dev/rmt/0cbn /dev/rdsk/c1t0d0s0"?

Or do I need to use veritas volume manager path eg. /dev/vx/dsk/rootvol

If the disk is mirror, do I need to take ufsdump on both disks or I can just use either one? I dont have to unmount / partition.

Thank you in advance.

regards,
dbase77
 
dbase77, Veritas Volume Manager boot's just like a System without VxVM or SDS; bootloader needs to find the kernel on a diskslice pointed to by OBP, the kernel loads, starts a lot of services etc. and mount's the filesystems according to vfstab (the metadevice or the veritasvolume)

If you know this, you can give yourself the answer: both and!
If you prefere to have a consistant backup (all files closed) I suggest to run a backup the following way:

- shutdown host
- boot cdrom
- ufsdump 0f /dev/rmt/0cn /dev/rdsk/c1t0d0s0

of you run online backups you better use .../rootvol

Regards
-- Franz
Sorry I'm not a native spaeker, I'm from Munich, Germany - "Home of the Whopper", oh no, "Home of the Oktoberfest" ;-)
Solaris System Manager; I used to work for Sun Microsystems Support (EMEA) for 5 years
 
Hi,

Thanks for replying. My system need to be up 24/7. Im thinking of doing online backup for / partition. I will create a script and put into cronjob. And schedule during normal system load, example early in the morning around 1 AM.

You said if I do online backup, I better use rootvol. Why is that? Does it make any difference if I use
/dev/dsk/c1t0d0s0?

dbase77
 
it does not realy make a difference but
- Veritas VM will do a loadbalancing
- it is "good style" to backup what is mounted

Regards
-- Franz
Sorry I'm not a native spaeker, I'm from Munich, Germany - "Home of the Whopper", oh no, "Home of the Oktoberfest" ;-)
Solaris System Manager; I used to work for Sun Microsystems Support (EMEA) for 5 years
 
Hi,

OK. Thanks. If I want to restore to other machine, I just do the following:

- boot using cdrom
- make new filesystem
- mount filesystem
- cd mount_point
- ufsrestore rf /dev/rmt/0cbn

It doesnt matter from which device that I backup from the first place, right.

dbase77
 
>> It doesnt matter from which device that I backup from the first place, right.

sorry I do not understand!? what does this mean?

restore to another machine:
yes, scenario is ok, but do not forget installboot -> man installboot
eeprom variable boot-device may not point to / (see Solaris command eeprom and OBP Command devalias)

Regards
-- Franz
Sorry I'm not a native spaeker, I'm from Munich, Germany - "Home of the Whopper", oh no, "Home of the Oktoberfest" ;-)
Solaris System Manager; I used to work for Sun Microsystems Support (EMEA) for 5 years
 
Hi,

If I do online backup, I will use rootvol (/dev/vx/dsk/rootvol). But if I restore to other machine I'm going to use /dev/dsk/c1t0d0s0 before I can use veritas VM. Does it make any difference?

dbase77
 
For the backup/restore itself it means no difference, but you may have problems starting the volumes whenever you do not habe a Veritas License on the other host...; you can edit /etc/vfstab and boot without Veritas Volumes...

Regards
-- Franz
Sorry I'm not a native spaeker, I'm from Munich, Germany - "Home of the Whopper", oh no, "Home of the Oktoberfest" ;-)
Solaris System Manager; I used to work for Sun Microsystems Support (EMEA) for 5 years
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top