Moving file systems from one server to the other


 
Thread Tools Search this Thread
Operating Systems Solaris Moving file systems from one server to the other
# 8  
Old 08-08-2018
You should be able to select c9t4d0 in 'format' and print its partition (slices).

If you can do that then you can attempt to 'fsck' those filesystems,

for example:

Code:
# fsck /dev/rdsk/c9t4d0s0

If you re-slice, label and newfs you will wipe-out the data!!!!!

Try to just 'fsck' and then 'mount' the LUN.
# 9  
Old 08-08-2018
If within 'format' you:

Select the NetApp Lun c9t4d0

Enter option 'p'

Enter option 'p' (again)

What output do you get? Does it output a slice table?

DON'T use 'format' to change anything on the disk at this time. Just 'Quit' out.
# 10  
Old 08-08-2018
this is what I get:
Code:
bash-3.00# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c0t5000C5003A0028FFd0 <SUN300G cyl 46873 alt 2 hd 20 sec 625>
          /scsi_vhci/disk@g5000c5003a0028ff
       1. c0t5000C5003A034CFFd0 <SUN300G cyl 46873 alt 2 hd 20 sec 625>
          /scsi_vhci/disk@g5000c5003a034cff
       2. c9t4d0 <NETAPP-LUN-8020 cyl 5630 alt 2 hd 16 sec 256>
          /iscsi/disk@0000iqn.1992-08.com.netapp%3Asn.14224149003E8,0
Specify disk (enter its number): 2
selecting c9t4d0
[disk formatted]


FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        repair     - repair a defective sector
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        inquiry    - show vendor, product and revision
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit
format> p


PARTITION MENU:
        0      - change `0' partition
        1      - change `1' partition
        2      - change `2' partition
        3      - change `3' partition
        4      - change `4' partition
        5      - change `5' partition
        6      - change `6' partition
        7      - change `7' partition
        select - select a predefined table
        modify - modify a predefined partition table
        name   - name the current table
        print  - display the current table
        label  - write partition map and label to the disk
        !<cmd> - execute <cmd>, then return
        quit
partition>

partition> p
Current partition table (original):
Total disk cylinders available: 5630 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders        Size            Blocks
  0       root    wm       0 -   63      128.00MB    (64/0/0)     262144
  1       swap    wu      64 -  127      128.00MB    (64/0/0)     262144
  2     backup    wu       0 - 5629       11.00GB    (5630/0/0) 23060480
  3 unassigned    wm       0               0         (0/0/0)           0
  4 unassigned    wm       0               0         (0/0/0)           0
  5 unassigned    wm       0               0         (0/0/0)           0
  6        usr    wm     128 - 5629       10.75GB    (5502/0/0) 22536192
  7 unassigned    wm       0               0         (0/0/0)           0

partition>

------ Post updated at 11:20 AM ------

I beleive should be /dev/dsk/c9t4d0s6....
# 11  
Old 08-08-2018
Yes, well that proves that the LUN is intact and perfectly readable.

Only you will know what these slices are. You should have the relevant filesystem locations documented. However, yes, slice 6 is the largest and certainly looks relevant so I would attempt to 'fsck' that device:

Code:
# fsck -n /dev/rdsk/c9t4d0s6

As always use the -n (no changes to be made) switch initially to explore what damage, if any, there is. If you only get a few problems flagged then run again without the -n and correct them when asked.
This User Gave Thanks to hicksd8 For This Post:
# 12  
Old 08-08-2018
Slice 2 on Solaris always represents the whole disk and you should NEVER try to do anything with that.
This User Gave Thanks to hicksd8 For This Post:
# 13  
Old 08-08-2018
worked perfectely:

Code:
bash-3.00# fsck -n /dev/rdsk/c9t4d0s6
** /dev/rdsk/c9t4d0s6 (NO WRITE)
** Last Mounted on /fs1
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3a - Check Connectivity
** Phase 3b - Verify Shadows/ACLs
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cylinder Groups
277 files, 16163 used, 11069777 free (185 frags, 1383699 blocks, 0.0% fragmentation)
bash-3.00#
bash-3.00# mount /dev/dsk/c9t4d0s6 /data1
bash-3.00#

Code:
/dev/md/dsk/d50        9.8G   378M   9.4G     4%    /opt
/dev/md/dsk/d60        112G   6.1G   105G     6%    /internaldisk
/dev/dsk/c9t4d0s6       11G    27M    10G     1%    /data1
bash-3.00# ls -lrt /data1
total 88
drwx------   2 root     root        8192 Oct 24  2012 lost+found
-rwxr-xr-x   1 nagios   103         7306 Jul 11  2017 fonseca1.sh
drwxrwxrwx   2 nagios   103          512 Feb 20 09:06 AG
drwsrwsrwt   4 nagios   103        27648 May 22 16:11 danilo
bash-3.00#

thank you very much,
I now going to do for the rest of it

Thank you again
# 14  
Old 08-08-2018
You are welcome.

Be aware that when you try to mount c9t4d0s6 is might complain that the device (e.g. /dev/dsk/c9t4d0s6) does not exist on the root filesystem you are booted from. If so we'll need to get the system to create the required device nodes, which we can do later.

You might also need to create mount points (i.e. top level directories) using mkdir if they are also not there already.

It all depends on whether your root disk is or is not an exactly copy from the old system. Let's see how it goes.

EDIT: Okay I see that you already successfully mounted c9t4d0s6. Looking good!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Moving boot SSD from a dead server to a new server

Hi all, We have a disk array that has the boot drive on an OCZ SSD on a PCIe card. Well, the motherboard died and we got a new motherboard. We moved the controllers, NICs, etc, to the exact same slots on the new motherboard, except now it won't boot. I guess it doesn't recognize the OS on the... (1 Reply)
Discussion started by: glowe57
1 Replies

2. Programming

Problem with Perl script after moving from a Windows/Apache Server to a UNIX server.

I have a Perl script that worked fine before moving it to justhost.com. It was on a Windows/Apache server. Just host is using UNIX. Other Perl scripts on other sites that were also moved work fine so I know Perl is functioning. The script is called cwrmail.pl and is located in my cgi-bin. When I... (9 Replies)
Discussion started by: BigBobbyB
9 Replies

3. Solaris

Key Points when Moving from Server A to Server B??

Hi Everyone, I'm still learning daily about UNIX (specifically Solaris 10). I'm tasked with moving my current application and database from Datacenter A to Datacenter B. There will be no updates and no changes other than a new server and new location. So far, I have Solaris... (3 Replies)
Discussion started by: smckech1972
3 Replies

4. Linux

Moving Whole OS Centos Server

I currently have a web server its on a small harddrive I didn't know my site would grow so fast but now I need a bigger hard drive. Instead of adding another harddrive (host charge monthly of how many hard drives connected to server) is there anyway to just move the whole os to a bigger hard drive... (2 Replies)
Discussion started by: awww
2 Replies

5. Shell Programming and Scripting

Moving a database from one server to another

I hope I'm posting this in the correct section. I'm trying to move a database from one server to another. This is the code I'm using... tar czf - vbdatabase.sql | ssh username@full.domain.com 'cat > /home/cpanelusername/vbdatabase.tar.gz ... but all I'm getting is a ">" and then nothing... (4 Replies)
Discussion started by: Chimpie
4 Replies

6. Shell Programming and Scripting

Moving files from one server to another server every 5 min

HI All, I am trying to automate my stuff to make 'to-do-easier'. I am new to shell scripting. I need help to you regarding the below problem. I have one directory in my server, frequently files will store in that directory. I want to move that files into another server on every 5... (5 Replies)
Discussion started by: ravvamohan
5 Replies

7. AIX

moving to new server

I'm moving an application from an old RS6000 running 4.3.2 to a p5 running 5.3. Could someone point me a the direction on docs to perform such a function? Critical OS files, moving of printers and print queues especially. thanks (5 Replies)
Discussion started by: sullivjp
5 Replies

8. Solaris

Do I need to reboot Solaris 10 server for changes in /etc/systems ?

Hi, I have upgraded my Solaris 10 2005 to Solaris 10 2007. I am facing one bug, id: 6550904. To override this issue I have done following changes in /etc/systems: set max_uheap_lpsize = 0x2000 set max_ustack_lpsize = 0x2000 set max_privmap_lpsize = 0x2000 set max_shm_lpsize =... (6 Replies)
Discussion started by: neel.gurjar
6 Replies

9. UNIX for Dummies Questions & Answers

moving files from one server to another

Hi guys, I have few files on my laptop(win XP). I am connected to a network called 'asx'(intranet). I have ssh2 and reflections on my system. I need to copy these few files from my system to a folder on the UNIX server(called 'CSSX'). Please can anyone explain me how to acheive this? I am... (1 Reply)
Discussion started by: uniksbro
1 Replies

10. UNIX for Dummies Questions & Answers

Moving from one web server to another

Hi All, Thanks for taking the time to read and respond to my post. I am a Unix neophyte. I can install scripts, move around some and perform basic functions - mostly related to websites and alway with a resource guide in front of me. I currently have 12 websites hosted on a VPS and I would... (2 Replies)
Discussion started by: lcurrie
2 Replies
Login or Register to Ask a Question