Monday, December 14, 2009

Solaris Volume Manager

Solaris Volume Manager (SVM; formerly known as Online: DiskSuite, and later Solstice DiskSuite) is a software package for creating, modifying and controlling RAID-0 (concatenation and stripe) volumes, RAID-1 (mirror) volumes, RAID 0+1 volumes, RAID 1+0 volumes, RAID-5 volumes, and soft partitions.
Version 1.0 of Online: DiskSuite was released as an add-on product for SunOS [...]
As we may know already that, tape device are in “/dev/rmt” directory. Actually tapes creates symbolic links in the “/dev/rmt” directory to the actual tape device special files under the “/devices” directory tree. tapes searches the kernel device tree to see what tape devices are attached to the system.
Each tape LUN seen by the system is represented by 24 minor nodes in the form of /dev/rmt/N, /dev/rmt/Nb, and /dev/rmt/Nbn, where N is an integer counter starting from 0. This number is picked by devfsadm during enumeration of new devices. Every new tape logical unit number (LUN) found by devfsadm gets the next available number in /dev/rmt.
Example:
#tar cvf /dev/rmt/0cbn / {backup root (/) + no rewind + compress}
#tar cvf /dev/rmt/0 / {backup root (/) + no compress + rewind tape when finished}
#mt -f /dev/rmt/0 offline {rewind and eject the tape}
#tar cvzf /dev/rmt/0cbn /
#tar tvf /dev/rmt/0cbn {to list the file in the archive}
#tar tf /dev/rmt/0
#tar xvf /dev/rmt/0 {retrieve/restore all file from tape}
tar -czf /dev/rmt/0cbn /home
ufsdump 0uf
ex:
ufsdump 0uf /dev/rmt/0 /home
ufsrestore -i
ufsrestore f /dev/rmt/0 filename {restore filename}
ufsrestore rf sparc1:/dev/rmt/0 filename {restore entire directory sparc1}
ufsrestore rf /dev/rmt/0 {restore the entire content on tape drive}
ufsrestore ivf /dev/rmt/0

1 comment:

  1. oh, have you heard about the service of how to repair mdf files not detached from sql server? it is the fastest way to open not accessible files

    ReplyDelete