Gadget Review: D-Link DNS-321 NAS
August 1, 2010 – 10:51 am | No Comment

The D-Link DNS-321 is among the least expensive dual-disk RAID NAS systems currently on the market. This small device offers an impressive array of features such as FTP, Samba, NFS, iTunes, DHCP, HTTP and UPnP …

Read the full story »
Networking

Unix and Linux network configuration. Multiple network interfaces. Bridged NICs. High-availability network configurations.

Applications

Reviews of latest Unix and Linux software. Helpful tips for application support admins. Automating application support.

Data

Disk partitioning, filesystems, directories, and files. Volume management, logical volumes, HA filesystems. Backups and disaster recovery.

Monitoring

Distributed server monitoring. Server performance and capacity planning. Monitoring applications, network status and user activity.

Commands and Shells

Cool Unix shell commands and options. Command-line tools and application. Things every Unix sysadmin needs to know.

Home » Commands and Shells, Filesystems

Moving filesystems with ufsdump

Submitted by admin on November 19, 2005 – 11:22 pmNo Comment
Moving filesystems with ufsdump

to move /opt on new partition (disk or file system)

1) from system prompt: format –> partition –> label
2) newfs -v /dev/dsk/c0t1d0s1 (target location)
3) mkdir /new_dir
4) mount /dev/dsk/c0t1d0s1 /new_dir
5) cd /new_dir
6) ufsdump 0f – /opt | ufsrestore xvf -

Set directory mode, owner, and times.
set owner/mode for ‘.’? [yn] n
Directories already exist, set modes anyway? [yn] n

7) update /etc/vfstab (target partitions for /opt)

8) create/update boot record:
installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c0t1d0s0

9) reboot:
sync:sync;halt
>ok boot /sbus@3,0/SUNW,fas@3,8800000/sd@d,0

Popularity: 6% [?]

Related posts

Leave a comment!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.