Re: Unformatting a GFS cluster disk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Lombard, David N wrote:
On Fri, Mar 28, 2008 at 04:54:22PM -0500, Wendy Cheng wrote:
christopher barry wrote:
On Fri, 2008-03-28 at 07:42 -0700, Lombard, David N wrote:
On Thu, Mar 27, 2008 at 03:26:55PM -0400, christopher barry wrote:
On Wed, 2008-03-26 at 13:58 -0700, Lombard, David N wrote:
A fun feature is that the multiple snapshots of a file have the identical
inode value
Wait ! First, the "multiple snapshots sharing one inode" interpretation about WAFL is not correct.

Same inode value.  I've experienced this multiple times, and, as
I noted, is a consequence of copy-on-write.

Yes, you're correct, if you use Netapp filer as NAS server via NFS/CIFS protocol. However, if you use Netapp filer as a block device (SAN) where the disk resources are presented to linux host as LUNs that host GFS filesystem(s), then how WAFL handles its inode is not relevant to this discussion, since all user sees are GFS files (and gfs inodes).

I apologize for my terse sentence though.

-- Wendy
I've also had to help other people understand why various utilities
didn't work as expected, like gnu diff, which immediately reported
identical files as soon as it saw the identical values for st_dev
and st_ino in the two files it was asked to compare.

>From the current diffutils (2.8.1) source:

  /* Do struct stat *S, *T describe the same file?  Answer -1 if unknown.  */
  #ifndef same_file
  # define same_file(s, t) \
      ((((s)->st_ino == (t)->st_ino) && ((s)->st_dev == (t)->st_dev)) \
       || same_special_file (s, t))
  #endif

Second, there are plenty documents talking about how to do snapshots with Linux filesystems (e.g. ext3) on Netapp NOW web site where its customers can get accesses.

I didn't say snapshots don't work on Linux.  I've used NetApp on
Linux and directly benefitted from snapshots.



--
Linux-cluster mailing list
Linux-cluster@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-cluster

[Index of Archives]     [Corosync Cluster Engine]     [GFS]     [Linux Virtualization]     [Centos Virtualization]     [Centos]     [Linux RAID]     [Fedora Users]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Camping]

  Powered by Linux