Virtualize physical SCO 5.0.6


 
Thread Tools Search this Thread
Operating Systems SCO Virtualize physical SCO 5.0.6
# 8  
Old 08-10-2010
Thx a lot. This command, it seems to work well:
Code:
scounix# cd / ; find ./ -print -name ./mnt -prune | cpio -ovfB > /mnt/backupfile.cpio &


Before, I've done the following command and hope is doing this job as well:
Code:
scounix# cd / ; find . | cpio -ovfB -O /mnt/test.cpio &

or are there any differences?

And now I have 2 backup files and both have the same size 2097152KB.


BTW is this command correct, to recover on other machine, I mean on VM?
Code:
# mount -f NFS 192.168.1.246:nfs /mnt

# cpio –ivdmlu < /mnt/backupfile.cpio &

# 9  
Old 08-10-2010
There is a 2gb limit on file sizes in 5.0.6
This User Gave Thanks to jgt For This Post:
# 10  
Old 08-11-2010
sorry i don't saw:

Quote:
Originally Posted by ccc
I've done:
Code:
 
scounix# cd / ; find ./ -print cpio -ovfB > /mnt/backupfile.cpio

There will be a 5120KB file, very quickly created.
It cannot be a copy of the whole system:
Code:
scounix# dfspace
/         :     Disk space: 3402,84 MB of 4000,00 MB available (85,07%).
/stand    :     Disk space:  14,15 MB of  24,41 MB available (57,97%).
/usr2     :     Disk space: 53678,51 MB of 64423,23 MB available (83,32%).

You ought find directory that size about 1.5G
You try:
example:
Code:
cd /; du -ms *

If example /home 600M and /usr 1000M
you can do for filesystem /
Code:
scounix# mount -f NFS 192.168.1.246:nfs /mnt
scounix# cd / ; find ./ -print -name ./home -prune -name ./usr -prune -xdev| cpio -ovfB > /mnt/backupfile.cpio &
scounix# cd / ; find ./home -print -xdev | cpio -ovfB > /mnt/backupfile_home.cpio &
scounix# cd / ; find ./usr -print -xdev| cpio -ovfB > /mnt/backupfile_usr.cpio &

if you haven't free space you can do backup.....cpio by one in the order.
And you can on target system do:
Code:
cpio -ivdmlu < /mnt/backupfile.cpio &
cpio -ivdmlu < /mnt/backupfile_home.cpio &
cpio -ivdmlu < /mnt/backupfile_usr.cpio &

other filesystems you can transfer the method or start new SCO and transfer next filesystems by ...nfs...ftp...rcp....

you can see man find and man cpio at system SCO.
This User Gave Thanks to john1212 For This Post:
# 11  
Old 08-11-2010
Quote:
Originally Posted by john1212

If example /home 600M and /usr 1000M
Thx again, but my SCO 5.0.6 has a Problem with -m
Code:
scounix# cd /; du -ms *
usage: du [-afkrsuxV] [name ...]


/ and /usr2 are bigger than 2GB:
Code:
scounix# dfspace
15563 Signal 31 - core dumped
14824 Signal 31 - core dumped
/         :     Disk space: 3403,25 MB of 4000,00 MB available (85,08%).
/stand    :     Disk space:  14,15 MB of  24,41 MB available (57,97%).
/usr2     :     Disk space: 53678,50 MB of 64423,23 MB available (83,32%).


Last edited by ccc; 08-11-2010 at 12:59 PM..
# 12  
Old 08-11-2010
Quote:
Originally Posted by ccc
Thx again, but my SCO 5.0.6 has a Problem with -m
Code:
scounix# cd /; du -ms *
usage: du [-afkrsuxV] [name ...]

I used UNIX SCO 16 years ago.
At other unix option -m count in MB
you can use -k it's print count in KB
do "man du"
My proposion is for count how many place used in directory and all files in
Option "-name ./xxxxx -prune" means print name files(and directory) without (exclude) all in directory ./xxxxxx
I wants that you find directory example /usr 1000M /xxxx 500M
in your filesystem "/" without /usr /xxxxx is 1000M, you can archive it in file less then 2GB.

Quote:
Originally Posted by ccc
Code:
scounix# dfspace
15563 Signal 31 - core dumped
14824 Signal 31 - core dumped

it's a problem with you system
file core is file with information about problems with programs.
when you move your server it's no nessesery to copy.
Please "rm core".
My proposition do:
Code:
cd / ; find ./ -name core -print -exec rm {} \;

change name directory if it nesesery.
if you don't undestand please send output;
Code:
cd /; du -ks *

PLEASE DO THE CODE.
change name directory if it nesesery.
Code:
scounix# mount -f NFS 192.168.1.246:nfs /mnt
scounix# cd / ; find ./ -print -name ./home -prune -name ./usr -prune -xdev| cpio -ovfB > /mnt/backupfile.cpio &
scounix# cd / ; find ./xxxx -print -xdev | cpio -ovfB > /mnt/backupfile_xxxx.cpio &
scounix# cd / ; find ./usr -print -xdev| cpio -ovfB > /mnt/backupfile_usr.cpio &

if you haven't free space you can do backup.....cpio by one in the order.
And you can on target system do:
Code:
cpio -ivdmlu < /mnt/backupfile.cpio &
cpio -ivdmlu < /mnt/backupfile_xxxx.cpio &
cpio -ivdmlu < /mnt/backupfile_usr.cpio &

other filesystems you can transfer the method or start new SCO and transfer next filesystems by ...nfs...ftp...rcp....
you can see man find and man cpio at system SCO.
This User Gave Thanks to john1212 For This Post:
# 13  
Old 08-11-2010
after SCO restart, I'm getting this:
Code:
scounix# dfspace
/         :     Disk space: 3066,48 MB of 4000,00 MB available (76,66%).
/stand    :     Disk space:  14,15 MB of  24,41 MB available (57,97%).
/usr2     :     Disk space: 53678,50 MB of 64423,23 MB available (83,32%).

Total Disk Space: 56759,14 MB of 68447,65 MB available (82,92%).

Code:
scounix# cd /; du -ks *
0	
2	$[LOGFILE}
3946	EFS
4	Main.dt
2	Personal.dt
14414	addon
86	bin
250	core
2221	cpm
788	dev
847	etc
2	gesamtsi
84	ibin
2	install
294	lib
3	local
2	lost+found
4	mailfolders
11161764	mnt
381291	opt
0	pmd
2	root.jc
5	sbin
10	shlib
10072	stand
49	tcb
2	test
1140	tftpboot
36	tmp
6	trash.dt
0	unix
2	unix.nlsym
6	user.log
36168	usr
8947288	usr2
72489	var
139170	xaa
205664	xab

The problems is, I cannot backup /usr2, because cpio cannot deal with files > 2GB,
so I've tried to split output file to 1GB files using this command, but it won't work:
Code:
scounix# cd / ; find ./usr2 -depth -print -xdev | cpio -ovfB | gzip -c | split -b 1000m > /mnt/backupfile_usr2.gz_ &

There will be a file with 0KB created.
# 14  
Old 08-11-2010
Hi,
in your system ./xxxx can be:
./opt ./xaa ./xab ..... I don't see 3066,48 MB at filesystem "/"

du normal show more then df.............. it isn't normal.
bye

you can read man find, cpio, gzip, split
This User Gave Thanks to john1212 For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. SCO

Virtualize SCO 5.0.6 with Microfocus COBOL - Help needed

Hi all, I am trying to virtualize a running SCO 5.0.6 system with microfocus cobol installed. I have already managed (thanks to the people in this forum) to install the operating system. I dont have the cobol installation media anymore. I have copied (using cpio) all directories from... (3 Replies)
Discussion started by: sopela123
3 Replies

2. UNIX for Dummies Questions & Answers

Confusion Regarding Physical Volume,Volume Group,Logical Volume,Physical partition

Hi, I am new to unix. I am working on Red Hat Linux and side by side on AIX also. After reading the concepts of Storage, I am now really confused regarding the terminologies 1)Physical Volume 2)Volume Group 3)Logical Volume 4)Physical Partition Please help me to understand these concepts. (6 Replies)
Discussion started by: kashifsd17
6 Replies

3. Solaris

svc:/network/physical:default: Method "/lib/svc/method/net-physical" failed with exit status 96. [ n

After a memory upgrade all network interfaces are misconfigued. How do i resolve this issue. Below are some out puts.thanks. ifconfig: plumb: SIOCLIFADDIF: eg000g0:2: no such interface # ifconfig eg1000g0:2 plumb ifconfig: plumb: SIOCLIFADDIF: eg1000g0:2: no such interface # ifconfig... (2 Replies)
Discussion started by: andersonedouard
2 Replies

4. Solaris

Virtualize x86 on Sparc ?

Hello, is it somehow possible to run a x86 Linux OS in a virtual machine in Solaris running on Sparc ? Virtualbox ? Containers ? I know it would be easier just get a Intel hardware and run the Linux but I might be in a scenario where only Sparc hardware is allowed by corporate policy and still... (6 Replies)
Discussion started by: Tex-Twil
6 Replies

5. AIX

Maximum Limit of HMC to handle Physical Power Virtualization Physical Machine

Hello All, Can anybody please tell me what is the maximum limit of Physical IBM Power Machine which can be handled by single HMC at a single point of time? Thanks, Jenish (1 Reply)
Discussion started by: jenish_shah
1 Replies

6. UNIX for Dummies Questions & Answers

Physical volume- no free physical partitions

I was in smit, checking on disc space, etc. and it appears that one of our physical volumes that is part of a large volume group, has no free physical partitions. The server is running AIX 5.1. What would be the advisable step to take in this instance? (9 Replies)
Discussion started by: markper
9 Replies

7. UNIX for Dummies Questions & Answers

physical volume and physical disk.

Hello, I need explanations about physical disks and physical volumes. What is the difference between these 2 things? In fact, i am trying to understand what the AIX lspv2command does. Thank you in advance. (2 Replies)
Discussion started by: VeroL
2 Replies
Login or Register to Ask a Question