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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

add 2nd disk

Status
Not open for further replies.

rvarman

IS-IT--Management
Apr 24, 2003
91
FR
i've two physical disks, but only one is used (mounted)at present.
is it possible to use the 2nd disk to mirror the first one.
My server is a sun Blade 2000 and using UFS filesystem.
My idea is to start with the one of the disks in case of system crash.

Thanks for your suggestions.



(root@blade ~)format < /dev/null
Searching for disks...done


AVAILABLE DISK SELECTIONS:
0. c1t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w500000e01011d581,0
1. c1t2d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000004cfa632de,0





(root@blade ~)df -k
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c1t1d0s0 10327372 7064674 3159425 70% /
/proc 0 0 0 0% /proc
fd 0 0 0 0% /dev/fd
mnttab 0 0 0 0% /etc/mnttab
swap 1558720 24 1558696 1% /var/run
swap 1559144 448 1558696 1% /tmp
/dev/dsk/c1t1d0s3 20655529 8916256 11532718 44% /users
/dev/dsk/c1t1d0s4 20655529 2248647 18200327 11% /applis
/dev/dsk/c1t1d0s5 18425930 7653449 10588222 42% /data
(root@blade ~)


 
i'm not sure that i can add a second diskwithout loosing the data in the 1st disk.
When adding the 2nd disk, shd i initiate both of the disks.
i don't want to loose any data present already.
 
So, make a backup to tape is most important. No one can promise you no data lost after changing enviornment.
 
OK,i accept.
the files are backedup now by tar and i'm able to read the tape by tar.
but i try to put up UFSDUMP so that it seems i can rebuild the system by UFSRESTORE.
the UFSDUMP works but not the UFSRESTORE.
UFSRESTORE tvf ..... doesn't show me the contents of the tape DAT.

Thanks
 
Silly question - are you rewinding the tape (mt -f /dev/rmt/0 rewind) before you try the ufsrestore tvf /dev/rmt/0?
 
hehe... you are the same person who posted a 'help ufsrestore' one.

Really a unknown reason. Something you can do as follows:

1)
#I tried this command in two machines and the results are same. If yours is not, that means the program corrupted. Copy this command from other machine that should be work.

web-dev:tikual:#> cksum /usr/sbin/ufsrestore
2089518023 782412 /usr/sbin/ufsrestore

2)
Install the latest patches

Hope the first point matches your case. More easy to solve.
 
cksum /usr/sbin/ufsrestore
4294967295 0 /usr/sbin/ufsrestore
(root@blade ~)

what does it mean '0'?????????
 
Hi rvarman,

On trip now, unable to answer what is the meaning of '0'. You may know that by 'man cksum'
 
The 0 represents the number of octets, for example on a Solaris 7 system of ours it's:

2641060525 876788 /usr/sbin/ufsrestore

Not being an expert in octets, but 0 looks pretty strange to me. I think I'd be trying to restore a good version or copying one from another system. Others, of course, may know differently...

Good luck.




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top